From a7516f1a13cec8531cf3a7ef334092fe2de0ab15 Mon Sep 17 00:00:00 2001 From: Tony Holdstock-Brown Date: Wed, 6 Nov 2024 09:27:37 -0800 Subject: [PATCH] update all tests for != --- expr_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/expr_test.go b/expr_test.go index 374e6fd..e3e6059 100644 --- a/expr_test.go +++ b/expr_test.go @@ -810,8 +810,8 @@ func TestAddRemove(t *testing.T) { require.Equal(t, ok, float64(1)) require.Equal(t, 1, e.Len()) require.Equal(t, 0, e.SlowLen()) - require.Equal(t, 0, e.FastLen()) - require.Equal(t, 1, e.MixedLen()) + require.Equal(t, 1, e.FastLen()) + require.Equal(t, 0, e.MixedLen()) // Matching this expr should now fail. eval, count, err := e.Evaluate(ctx, map[string]any{ @@ -837,7 +837,7 @@ func TestAddRemove(t *testing.T) { }, }) - require.EqualValues(t, 1, count) + require.EqualValues(t, 0, count) require.EqualValues(t, 0, len(eval)) require.NoError(t, err) })