1
0
mirror of https://github.com/duke-git/lancet.git synced 2026-02-09 15:12:26 +08:00

test: add examples for slice package

This commit is contained in:
dudaodong
2023-01-04 14:44:10 +08:00
parent 1de2e2cedd
commit 5f0211f0c4
3 changed files with 593 additions and 27 deletions

View File

@@ -257,7 +257,7 @@ func TestFlatten(t *testing.T) {
input := [][][]string{{{"a", "b"}}, {{"c", "d"}}}
expected := [][]string{{"a", "b"}, {"c", "d"}}
assert := internal.NewAssert(t, "TestFlattenDeep")
assert := internal.NewAssert(t, "TestFlatten")
assert.Equal(expected, Flatten(input))
}