diff --git a/internal/Leetcode/664/664_test.go b/internal/Leetcode/664/664_test.go new file mode 100644 index 0000000..59fb0aa --- /dev/null +++ b/internal/Leetcode/664/664_test.go @@ -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) + } + }) + } +}