From 21a4d5e590c222b963a6170fad7af4f4d625b70c Mon Sep 17 00:00:00 2001 From: Ari Lazier Date: Tue, 12 Apr 2016 11:01:33 -0700 Subject: [PATCH] add keypath tests --- tests/query.json | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/tests/query.json b/tests/query.json index 22ef1c72..6cbbee55 100644 --- a/tests/query.json +++ b/tests/query.json @@ -351,6 +351,7 @@ ], "tests": [ ["ObjectSet", [1], "OptionalTypesObject", "intCol == null"], + ["ObjectSet", [1], "OptionalTypesObject", "null == intCol"], ["ObjectSet", [0], "OptionalTypesObject", "intCol != null"], ["ObjectSet", [1], "OptionalTypesObject", "floatCol == null"], ["ObjectSet", [0], "OptionalTypesObject", "floatCol != null"], @@ -361,7 +362,19 @@ ["ObjectSet", [1], "OptionalTypesObject", "dateCol == null"], ["ObjectSet", [0], "OptionalTypesObject", "dateCol != null"], ["ObjectSet", [1], "OptionalTypesObject", "dataCol == null"], - ["ObjectSet", [0], "OptionalTypesObject", "dataCol != null"] + ["ObjectSet", [0], "OptionalTypesObject", "dataCol != null"], + + ["ObjectSet", [1], "LinkTypesObject", "basicLink.intCol == null"], + ["ObjectSet", [0], "LinkTypesObject", "basicLink.intCol != null"], + ["ObjectSet", [1], "LinkTypesObject", "basicLink.floatCol == null"], + ["ObjectSet", [0], "LinkTypesObject", "basicLink.floatCol != null"], + ["ObjectSet", [1], "LinkTypesObject", "basicLink.doubleCol == null"], + ["ObjectSet", [0], "LinkTypesObject", "basicLink.doubleCol != null"], + ["ObjectSet", [1], "LinkTypesObject", "basicLink.stringCol == null"], + ["ObjectSet", [0], "LinkTypesObject", "basicLink.stringCol != null"], + ["ObjectSet", [1], "LinkTypesObject", "basicLink.dateCol == null"], + ["ObjectSet", [0], "LinkTypesObject", "basicLink.dateCol != null"], + ["QueryThrows", "LinkTypesObject", "basicLink.dataCol == null"] ] }