diff options
Diffstat (limited to 'tpl/collections/collections_test.go')
-rw-r--r-- | tpl/collections/collections_test.go | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tpl/collections/collections_test.go b/tpl/collections/collections_test.go index c87490b2c..137c6fa3a 100644 --- a/tpl/collections/collections_test.go +++ b/tpl/collections/collections_test.go @@ -313,9 +313,14 @@ func TestIn(t *testing.T) { errMsg := fmt.Sprintf("[%d] %v", i, test) - result := ns.In(test.l1, test.l2) + result, err := ns.In(test.l1, test.l2) + assert.NoError(err) assert.Equal(test.expect, result, errMsg) } + + // Slices are not comparable + _, err := ns.In([]string{"a", "b"}, []string{"a", "b"}) + assert.Error(err) } type testPage struct { |