From fb2473d64d1625f38003d9d8c20895f11147d62a Mon Sep 17 00:00:00 2001 From: Camden Cheek Date: Mon, 8 Jan 2024 11:22:10 -0700 Subject: [PATCH] add test assertion that unwrapping works correctly --- iter/map_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/iter/map_test.go b/iter/map_test.go index 7901da7..5749e9a 100644 --- a/iter/map_test.go +++ b/iter/map_test.go @@ -162,6 +162,7 @@ func TestMapErr(t *testing.T) { }) require.ErrorIs(t, err, err1) require.ErrorIs(t, err, err2) + require.ElementsMatch(t, err.(interface{ Unwrap() []error }).Unwrap(), []error{err1, err2}) require.Equal(t, []int{2, 3, 0, 0, 6}, res) require.Equal(t, []int{1, 2, 3, 4, 5}, ints) })