• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1{
2    "Failure Tests":{
3        "level":4,
4        "variables":{
5            "id"                : "thing",
6            "var"               : "value",
7            "hello"             : "Hello World!",
8            "with space"        : "fail",
9            " leading_space"    : "Hi!",
10            "trailing_space "   : "Bye!",
11            "empty"             : "",
12            "path"              : "/foo/bar",
13            "x"                 : "1024",
14            "y"                 : "768",
15            "list"              : ["red", "green", "blue"],
16            "keys"              : { "semi" : ";", "dot" : ".", "comma" : ","},
17            "example"           : "red",
18            "searchTerms"       : "uri templates",
19            "~thing"            : "some-user",
20            "default-graph-uri" : ["http://www.example/book/","http://www.example/papers/"],
21            "query"             : "PREFIX dc: <http://purl.org/dc/elements/1.1/> SELECT ?book ?who WHERE { ?book dc:creator ?who }"
22
23        },
24        "testcases":[
25            [ "{/id*",  false  ],
26            [ "/id*}",  false  ],
27            [ "{/?id}",  false  ],
28            [ "{var:prefix}",  false  ],
29            [ "{hello:2*}",  false  ] ,
30            [ "{??hello}",  false  ] ,
31            [ "{!hello}",  false  ] ,
32            [ "{with space}", false],
33            [ "{ leading_space}", false],
34            [ "{trailing_space }", false],
35            [ "{=path}",  false  ] ,
36            [ "{$var}", false ],
37            [ "{|var*}", false ],
38            [ "{*keys?}",  false  ],
39            [ "{?empty=default,var}",  false  ],
40            [ "{var}{-prefix|/-/|var}" , false ],
41            [ "?q={searchTerms}&amp;c={example:color?}" , false ],
42            [ "x{?empty|foo=none}" , false ],
43            [ "/h{#hello+}" , false ],
44            [ "/h#{hello+}" , false ],
45            [ "{keys:1}",  false  ],
46            [ "{+keys:1}",  false  ],
47            [ "{;keys:1*}",  false  ],
48            [ "?{-join|&|var,list}" , false ],
49            [ "/people/{~thing}", false],
50            [ "/{default-graph-uri}", false ],
51            [ "/sparql{?query,default-graph-uri}", false ],
52            [ "/sparql{?query){&default-graph-uri*}", false ],
53            [ "/resolution{?x, y}" , false ]
54
55        ]
56    }
57}