From 2f504ce8512054a51a4bb4d102eaa668e91c2e7d Mon Sep 17 00:00:00 2001 From: dudaodong Date: Mon, 16 May 2022 11:11:40 +0800 Subject: [PATCH] test: add unit test for func LastIndexOf --- slice/slice_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/slice/slice_test.go b/slice/slice_test.go index e7471ac..8980374 100644 --- a/slice/slice_test.go +++ b/slice/slice_test.go @@ -544,5 +544,5 @@ func TestLastIndexOf(t *testing.T) { arr := []string{"a", "a", "b", "c"} assert.Equal(1, LastIndexOf(arr, "a")) - assert.Equal(-1, IndexOf(arr, "d")) + assert.Equal(-1, LastIndexOf(arr, "d")) }