Skip to content

Commit fb9aac5

Browse files
committed
🧑‍💻 ToString: improve test and bench setup
- add [][]int case
1 parent e00da2a commit fb9aac5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

convert_test.go

+2
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ func init() {
3535
[]string{"Hello", "World"},
3636
[]int{42, 21},
3737
[2]int{42, 21},
38+
[][]int{{42, 21}, {42, 21}},
3839
[]interface{}{[]int{42, 21}, 42, "Hello", true, []string{"Hello", "World"}},
3940
}
4041
}
@@ -122,6 +123,7 @@ func Test_ToString(t *testing.T) {
122123
{[]string{"Hello", "World"}, "[Hello World]"},
123124
{[]int{42, 21}, "[42 21]"},
124125
{[2]int{42, 21}, "[42 21]"},
126+
{[][]int{{42, 21}, {42, 21}}, "[[42 21] [42 21]]"},
125127
{[]interface{}{[]int{42, 21}, 42, "Hello", true, []string{"Hello", "World"}}, "[[42 21] 42 Hello true [Hello World]]"},
126128
}
127129

0 commit comments

Comments
 (0)