Skip to content

Commit

Permalink
test(664): Medium
Browse files Browse the repository at this point in the history
  • Loading branch information
DziedzicGrzegorz committed Aug 23, 2024
1 parent 6ec9a23 commit e95eb62
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions internal/Leetcode/664/664_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
package _664

import (
"testing"
)

func Test_strangePrinter(t *testing.T) {
type args struct {
s string
}
tests := []struct {
name string
args args
want int
}{
{
"Example 1",
args{"aaabbb"},
2,
},
{
"Example 2",
args{"aba"},
2,
},
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
if got := strangePrinter(tt.args.s); got != tt.want {
t.Errorf("strangePrinter() = %v, want %v", got, tt.want)
}
})
}
}

0 comments on commit e95eb62

Please sign in to comment.