t_operator_test.go: test on -- and ++ prefix operators

This commit is contained in:
Celestino Amoroso 2025-01-05 12:49:36 +01:00
parent 0f848071c2
commit ff4db34f7b

View File

@ -31,6 +31,8 @@ func TestOperator(t *testing.T) {
/* 18 */ {`1^2`, int64(3), nil},
/* 19 */ {`3^2`, int64(1), nil},
/* 19 */ {`a=1; a^=2`, int64(3), nil},
/* 20 */ {`a=1; ++a`, int64(2), nil},
/* 21 */ {`a=1; --a`, int64(0), nil},
}
// t.Setenv("EXPR_PATH", ".")