1
0
mirror of https://github.com/duke-git/lancet.git synced 2026-02-07 06:02:27 +08:00

test: fix test function name TestAppendIfAbsent

This commit is contained in:
dudaodong
2022-07-27 15:38:51 +08:00
parent 70e213b3f7
commit 5c66f38a5b

View File

@@ -610,8 +610,8 @@ func TestToSlicePointer(t *testing.T) {
assert.Equal([]*string{&str1, &str2}, ToSlicePointer(str1, str2))
}
func TestToAppendIfAbsent(t *testing.T) {
assert := internal.NewAssert(t, "TestToAppendIfAbsent")
func TestAppendIfAbsent(t *testing.T) {
assert := internal.NewAssert(t, "TestAppendIfAbsent")
str1 := []string{"a", "b"}
assert.Equal([]string{"a", "b"}, AppendIfAbsent(str1, "a"))