MCPcopy Create free account
hub / github.com/austingebauer/go-leetcode / Test_rotateString

Function Test_rotateString

rotate_string_796/solution_test.go:8–32  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

6)
7
8func Test_rotateString(t *testing.T) {
9 type args struct {
10 A string
11 B string
12 }
13 tests := []struct {
14 name string
15 args args
16 want bool
17 }{
18 {
19 name: "",
20 args: args{
21 A: "bbbacddceeb",
22 B: "ceebbbbacdd",
23 },
24 want: true,
25 },
26 }
27 for _, tt := range tests {
28 t.Run(tt.name, func(t *testing.T) {
29 assert.Equal(t, tt.want, rotateString(tt.args.A, tt.args.B))
30 })
31 }
32}

Callers

nothing calls this directly

Calls 1

rotateStringFunction · 0.85

Tested by

no test coverage detected