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