summaryrefslogtreecommitdiffstats
path: root/tpl/compare/compare_test.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2020-01-23 10:48:28 +0100
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2020-01-23 10:48:28 +0100
commit2fefc01606fddb119f368c89fb2dedd452ad6547 (patch)
tree2b498123453b3002e7c3f628afe73f2ab9d33646 /tpl/compare/compare_test.go
parent0c251be66bf3ad4abafbc47583e394ca4e6ffcf1 (diff)
tpl/compare: Fix eq when > 2 args
Fixes #6786
Diffstat (limited to 'tpl/compare/compare_test.go')
-rw-r--r--tpl/compare/compare_test.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/tpl/compare/compare_test.go b/tpl/compare/compare_test.go
index aeadb02f9..3eb793d30 100644
--- a/tpl/compare/compare_test.go
+++ b/tpl/compare/compare_test.go
@@ -275,6 +275,9 @@ func TestEqualExtend(t *testing.T) {
{1, []interface{}{1, 2}, true},
{1, []interface{}{2, 1}, true},
{1, []interface{}{2, 3}, false},
+ {tstEqerType1("a"), []interface{}{tstEqerType1("a"), tstEqerType1("b")}, true},
+ {tstEqerType1("a"), []interface{}{tstEqerType1("b"), tstEqerType1("a")}, true},
+ {tstEqerType1("a"), []interface{}{tstEqerType1("b"), tstEqerType1("c")}, false},
} {
result := ns.Eq(test.first, test.others...)