Remove unnecessary brackets in sql test expressions

This commit is contained in:
Tobie Morgan Hitchcock 2017-12-12 01:07:24 +00:00
parent 3eef62067a
commit 21c7cb2341

View file

@ -296,7 +296,7 @@ func TestDefine(t *testing.T) {
txt := `
USE NS test DB test;
DEFINE FIELD test ON person TYPE number ASSERT ($after >= 0) AND ($after <= 10);
DEFINE FIELD test ON person TYPE number ASSERT $after >= 0 AND $after <= 10;
UPDATE person:1;
UPDATE person:2 SET test = 5;
UPDATE person:3 SET test = 50;
@ -319,7 +319,7 @@ func TestDefine(t *testing.T) {
txt := `
USE NS test DB test;
DEFINE FIELD test ON person TYPE number ASSERT IF $after != null THEN ($after >= 0) AND ($after <= 10) ELSE true END;
DEFINE FIELD test ON person TYPE number ASSERT IF $after != null THEN $after >= 0 AND $after <= 10 ELSE true END;
UPDATE person:1;
UPDATE person:2 SET test = 5;
UPDATE person:3 SET test = 50;