Imported Upstream version 0.18
[liburi-template-perl.git] / t / cases / negative-tests.json
index dca9c9e..552a6bf 100644 (file)
@@ -5,6 +5,9 @@
             "id"                : "thing",
             "var"               : "value",
             "hello"             : "Hello World!",
+            "with space"        : "fail",
+            " leading_space"    : "Hi!",
+            "trailing_space "   : "Bye!",
             "empty"             : "",
             "path"              : "/foo/bar",
             "x"                 : "1024",
@@ -26,6 +29,9 @@
             [ "{hello:2*}",  false  ] ,
             [ "{??hello}",  false  ] ,
             [ "{!hello}",  false  ] ,
+            [ "{with space}", false],
+            [ "{ leading_space}", false],
+            [ "{trailing_space }", false],
             [ "{=path}",  false  ] ,
             [ "{$var}", false ],
             [ "{|var*}", false ],
@@ -41,6 +47,8 @@
             [ "{;keys:1*}",  false  ],
             [ "?{-join|&|var,list}" , false ],
             [ "/people/{~thing}", false],
+            [ "/{default-graph-uri}", false ],
+            [ "/sparql{?query,default-graph-uri}", false ],
             [ "/sparql{?query){&default-graph-uri*}", false ],
             [ "/resolution{?x, y}" , false ]