From 21c7cb23418f9b2db4c042d19583483205ec55fb Mon Sep 17 00:00:00 2001 From: Tobie Morgan Hitchcock Date: Tue, 12 Dec 2017 01:07:24 +0000 Subject: [PATCH] Remove unnecessary brackets in sql test expressions --- db/define_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/db/define_test.go b/db/define_test.go index fde85b90..87163219 100644 --- a/db/define_test.go +++ b/db/define_test.go @@ -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;