Skip to content

Commit

Permalink
add test assertion that unwrapping works correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
camdencheek committed Jan 8, 2024
1 parent 9d7733f commit fb2473d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions iter/map_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
})
Expand Down

0 comments on commit fb2473d

Please sign in to comment.