mirror of
https://github.com/duke-git/lancet.git
synced 2026-02-12 16:52:29 +08:00
Slice: find v2 (#17)
* If slice len is zero then return false * Convert find to generic form. * If return T is nil then no items matched the predicate func
This commit is contained in:
@@ -220,7 +220,7 @@ func TestFind(t *testing.T) {
|
||||
t.Fatal("found nothing")
|
||||
}
|
||||
|
||||
if res != 2 {
|
||||
if *res != 2 {
|
||||
internal.LogFailedTestInfo(t, "Find", nums, 2, res)
|
||||
t.FailNow()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user