Skip to content

Commit

Permalink
tpl/collections: Add some empty slice tests to intersect
Browse files Browse the repository at this point in the history
See #3686
  • Loading branch information
bep committed Jul 8, 2017
1 parent dbbc5c4 commit e0cf2e0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tpl/collections/collections_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,10 @@ func TestIntersect(t *testing.T) {
{pagesVals{p1v, p4v, p2v, p3v}, pagesVals{p1v, p3v, p3v}, pagesVals{p1v, p3v}},
{[]interface{}{p1, p4, p2, p3}, []interface{}{p4, p2, p2}, []interface{}{p4, p2}},
{[]interface{}{p1v, p4v, p2v, p3v}, []interface{}{p1v, p3v, p3v}, []interface{}{p1v, p3v}},
{pagesPtr{p1, p4, p2, p3}, pagesPtr{}, pagesPtr{}},
{pagesVals{}, pagesVals{p1v, p3v, p3v}, pagesVals{}},
{[]interface{}{p1, p4, p2, p3}, []interface{}{}, []interface{}{}},
{[]interface{}{}, []interface{}{p1v, p3v, p3v}, []interface{}{}},
} {

errMsg := fmt.Sprintf("[%d]", test)
Expand Down

0 comments on commit e0cf2e0

Please sign in to comment.