summaryrefslogtreecommitdiff
path: root/json-glib/tests/path.c
diff options
context:
space:
mode:
Diffstat (limited to 'json-glib/tests/path.c')
-rw-r--r--json-glib/tests/path.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/json-glib/tests/path.c b/json-glib/tests/path.c
index d3aa74b..729a939 100644
--- a/json-glib/tests/path.c
+++ b/json-glib/tests/path.c
@@ -45,6 +45,20 @@ static const struct {
JsonPathError error_code;
} test_expressions[] = {
{
+ "INVALID: invalid character following root",
+ "$ponies",
+ NULL,
+ FALSE,
+ JSON_PATH_ERROR_INVALID_QUERY,
+ },
+ {
+ "INVALID: malformed splice",
+ "$.store.book[0:1:]",
+ NULL,
+ FALSE,
+ JSON_PATH_ERROR_INVALID_QUERY,
+ },
+ {
"Title of the first book in the store, using objct notation.",
"$.store.book[0].title",
"[\"Sayings of the Century\"]",