@@ -43,7 +43,7 @@ func TestCompareOpsAndForms(t *testing.T) {
4343 for _ , c := range cases {
4444 f := func (expected string , lhs , rhs vector.Any ) {
4545 t .Helper ()
46- cmp := NewCompare (super .NewContext (), & testEval {lhs }, & testEval {rhs }, c . op )
46+ cmp := NewCompare (super .NewContext (), c . op , & testEval {lhs }, & testEval {rhs })
4747 assert .Equal (t , expected , cmp .Eval (nil ).(* vector.Bool ).Bits .String (), "op: %s" , c .op )
4848 }
4949
@@ -67,11 +67,10 @@ func TestCompareOpsAndForms(t *testing.T) {
6767 f (c .expectedForConstLHS , Const , rhsView )
6868
6969 // Comparing two vector.Consts yields another vector.Const.
70- cmp := NewCompare (super .NewContext (), & testEval {Const }, & testEval {Const }, c . op )
70+ cmp := NewCompare (super .NewContext (), c . op , & testEval {Const }, & testEval {Const })
7171 val := cmp .Eval (nil ).(* vector.Const )
7272 assert .Equal (t , uint32 (3 ), val .Len (), "op: %s" , c .op )
7373 expected := super .NewBool (c .expectedForConstLHS == "111" )
7474 assert .Equal (t , expected , val .Value (), "op: %s" , c .op )
7575 }
76-
7776}
0 commit comments