From 4aed9135b8000e2ce0b507f8707c3d8f0e0d0445 Mon Sep 17 00:00:00 2001 From: Ari Lazier Date: Tue, 12 Apr 2016 11:01:33 -0700 Subject: [PATCH] add keypath tests --- src/object-store/tests/query.json | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/src/object-store/tests/query.json b/src/object-store/tests/query.json index 22ef1c72..6cbbee55 100644 --- a/src/object-store/tests/query.json +++ b/src/object-store/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"] ] }