From b2f682b94bc81273fc973b5d42f62032bb8035be Mon Sep 17 00:00:00 2001 From: Ari Lazier Date: Tue, 17 Nov 2015 17:54:25 -0800 Subject: [PATCH] more int tests --- tests/QueryTests.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tests/QueryTests.js b/tests/QueryTests.js index f6da4193..b217757e 100644 --- a/tests/QueryTests.js +++ b/tests/QueryTests.js @@ -111,6 +111,7 @@ var boolTests = { ["QueryThrows", "BoolObject", "boolCol == 0"], ["QueryThrows", "BoolObject", "boolCol == 1"], ["QueryThrows", "BoolObject", "boolCol == 'not a bool'"], + ["QueryThrows", "BoolObject", "boolCol == $0", "not a bool"], ["QueryThrows", "BoolObject", "boolCol > true"], ["QueryThrows", "BoolObject", "boolCol >= true"], ["QueryThrows", "BoolObject", "boolCol < true"], @@ -134,13 +135,18 @@ var intTests = { "tests": [ ["QueryCount", 1, "IntObject", "intCol == -1"], ["QueryCount", 1, "IntObject", "intCol == 0"], - ["QueryCount", 0, "IntObject", "intCol == 1"], + ["QueryCount", 0, "IntObject", "1 == intCol"], ["QueryCount", 2, "IntObject", "intCol != 0"], ["QueryCount", 2, "IntObject", "intCol > -1"], ["QueryCount", 3, "IntObject", "intCol >= -1"], ["QueryCount", 2, "IntObject", "intCol < 100"], ["QueryCount", 3, "IntObject", "intCol <= 100"], + ["QueryCount", 1, "IntObject", "intCol > 0x1F"], + ["QueryCount", 1, "IntObject", "intCol == $0", 100], + ["QueryThrows", "IntObject", "intCol == 'not an int'"], + ["QueryThrows", "IntObject", "intCol == true"], + ["QueryThrows", "IntObject", "intCol == $0", "not an int"], ["QueryThrows", "IntObject", "intCol BEGINSWITH 1"], ["QueryThrows", "IntObject", "intCol CONTAINS 1"], ["QueryThrows", "IntObject", "intCol ENDSWITH 1"],