Support unComparable args of uniq/complement/in

Fixes #6105
This commit is contained in:
satotake
2020-03-09 21:32:38 +09:00
committed by GitHub
parent c4fa2f0799
commit 8279d2e227
6 changed files with 30 additions and 24 deletions

View File

@@ -65,7 +65,10 @@ func TestComplement(t *testing.T) {
{[]string{"a", "b", "c"}, []interface{}{"error"}, false},
{"error", []interface{}{[]string{"c", "d"}, []string{"a", "b"}}, false},
{[]string{"a", "b", "c"}, []interface{}{[][]string{{"c", "d"}}}, false},
{[]interface{}{[][]string{{"c", "d"}}}, []interface{}{[]string{"c", "d"}, []string{"a", "b"}}, false},
{
[]interface{}{[][]string{{"c", "d"}}}, []interface{}{[]string{"c", "d"}, []string{"a", "b"}},
[]interface{}{[][]string{{"c", "d"}}},
},
} {
errMsg := qt.Commentf("[%d]", i)