From 67e43f976e2e07252b786e584e0290a516630df6 Mon Sep 17 00:00:00 2001 From: Sam Anthony Date: Thu, 22 Aug 2024 21:18:57 -0400 Subject: test Val --- slice_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'slice_test.go') diff --git a/slice_test.go b/slice_test.go index f8a1d0b..14fcd10 100644 --- a/slice_test.go +++ b/slice_test.go @@ -9,14 +9,14 @@ import ( func TestConstSlice(t *testing.T) { orig := []string{"foo", "bar", "baz"} shared := share.NewConstSlice(orig) - verifySame(shared, orig, t) + verifySameSlice(shared, orig, t) go func() { defer shared.Close() - verifySame(shared, orig, t) + verifySameSlice(shared, orig, t) }() } -func verifySame[T comparable](cs share.ConstSlice[T], s []T, t *testing.T) { +func verifySameSlice[T comparable](cs share.ConstSlice[T], s []T, t *testing.T) { i := 0 for elem := range cs.Elems() { if i < len(s) { -- cgit v1.2.3