From e5c5920db0123ee9c1f62f1c33228423ccbecfd9 Mon Sep 17 00:00:00 2001 From: Celestino Amoroso Date: Mon, 20 May 2024 05:32:28 +0200 Subject: [PATCH] parser_test.go: incompatible type error corrected --- parser_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parser_test.go b/parser_test.go index 5705da5..563fea2 100644 --- a/parser_test.go +++ b/parser_test.go @@ -98,7 +98,7 @@ func TestGeneralParser(t *testing.T) { /* 77 */ {`5 % 2`, int64(1), nil}, /* 78 */ {`5 % (-2)`, int64(1), nil}, /* 79 */ {`-5 % 2`, int64(-1), nil}, - /* 80 */ {`5 % 2.0`, nil, errors.New(`[1:4] left operand '5' [int64] and right operand '2' [float64] are not compatible with operator "%"`)}, + /* 80 */ {`5 % 2.0`, nil, errors.New(`[1:4] left operand '5' [integer] and right operand '2' [float] are not compatible with operator "%"`)}, /* 81 */ {`"a" < "b" AND NOT (2 < 1)`, true, nil}, /* 82 */ {`"a" < "b" AND NOT (2 == 1)`, true, nil}, /* 83 */ {`"a" < "b" AND ~ 2 == 1`, true, nil},