mirror of
https://github.com/duke-git/lancet.git
synced 2026-03-01 00:35:28 +08:00
test: update slice unit test
This commit is contained in:
@@ -617,7 +617,7 @@ func TestToSlicePointer(t *testing.T) {
|
|||||||
assert.Equal([]*interface{}{&str1, &str2}, ToSlicePointer(str1, str2))
|
assert.Equal([]*interface{}{&str1, &str2}, ToSlicePointer(str1, str2))
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestToAppendIfAbsent(t *testing.T) {
|
func TestAppendIfAbsent(t *testing.T) {
|
||||||
assert := internal.NewAssert(t, "TestToAppendIfAbsent")
|
assert := internal.NewAssert(t, "TestToAppendIfAbsent")
|
||||||
|
|
||||||
str1 := []string{"a", "b"}
|
str1 := []string{"a", "b"}
|
||||||
|
|||||||
Reference in New Issue
Block a user