diff --git a/t_parser_test.go b/t_parser_test.go index e8dd3b7..2a92d4f 100644 --- a/t_parser_test.go +++ b/t_parser_test.go @@ -115,7 +115,7 @@ func TestGeneralParser(t *testing.T) { /* 94 */ {`false or true`, true, nil}, /* 95 */ {`false or (x==2)`, nil, errors.New(`undefined variable or function "x"`)}, /* 96 */ {`a=5; a`, int64(5), nil}, - /* 97 */ {`2=5`, nil, errors.New(`assign operator ("=") must be preceded by a variable`)}, + /* 97 */ {`2=5`, nil, errors.New(`[1:2] left operand of "=" must be a variable`)}, /* 98 */ {`2+a=5`, nil, errors.New(`[1:3] left operand of "=" must be a variable`)}, /* 99 */ {`2+(a=5)`, int64(7), nil}, /* 100 */ {`x ?? "default"`, "default", nil},