Debian Codegraph @

jsonpath-compliance-test-suite/tests/whitespace/slice.json

raw symbols SCIP
1 {
2 "tests": [
3 {
4 "name": "space between start and colon",
5 "selector" : "$[1 :5:2]",
6 "document" : [1,2,3,4,5,6],
7 "result": [ 2, 4 ]
8 },
9 {
10 "name": "newline between start and colon",
11 "selector" : "$[1\n:5:2]",
12 "document" : [1,2,3,4,5,6],
13 "result": [ 2, 4 ]
14 },
15 {
16 "name": "tab between start and colon",
17 "selector" : "$[1\t:5:2]",
18 "document" : [1,2,3,4,5,6],
19 "result": [ 2, 4 ]
20 },
21 {
22 "name": "return between start and colon",
23 "selector" : "$[1\r:5:2]",
24 "document" : [1,2,3,4,5,6],
25 "result": [ 2, 4 ]
26 },
27 {
28 "name": "space between colon and end",
29 "selector" : "$[1: 5:2]",
30 "document" : [1,2,3,4,5,6],
31 "result": [ 2, 4 ]
32 },
33 {
34 "name": "newline between colon and end",
35 "selector" : "$[1:\n5:2]",
36 "document" : [1,2,3,4,5,6],
37 "result": [ 2, 4 ]
38 },
39 {
40 "name": "tab between colon and end",
41 "selector" : "$[1:\t5:2]",
42 "document" : [1,2,3,4,5,6],
43 "result": [ 2, 4 ]
44 },
45 {
46 "name": "return between colon and end",
47 "selector" : "$[1:\r5:2]",
48 "document" : [1,2,3,4,5,6],
49 "result": [ 2, 4 ]
50 },
51 {
52 "name": "space between end and colon",
53 "selector" : "$[1:5 :2]",
54 "document" : [1,2,3,4,5,6],
55 "result": [ 2, 4 ]
56 },
57 {
58 "name": "newline between end and colon",
59 "selector" : "$[1:5\n:2]",
60 "document" : [1,2,3,4,5,6],
61 "result": [ 2, 4 ]
62 },
63 {
64 "name": "tab between end and colon",
65 "selector" : "$[1:5\t:2]",
66 "document" : [1,2,3,4,5,6],
67 "result": [ 2, 4 ]
68 },
69 {
70 "name": "return between end and colon",
71 "selector" : "$[1:5\r:2]",
72 "document" : [1,2,3,4,5,6],
73 "result": [ 2, 4 ]
74 },
75 {
76 "name": "space between colon and step",
77 "selector" : "$[1:5: 2]",
78 "document" : [1,2,3,4,5,6],
79 "result": [ 2, 4 ]
80 },
81 {
82 "name": "newline between colon and step",
83 "selector" : "$[1:5:\n2]",
84 "document" : [1,2,3,4,5,6],
85 "result": [ 2, 4 ]
86 },
87 {
88 "name": "tab between colon and step",
89 "selector" : "$[1:5:\t2]",
90 "document" : [1,2,3,4,5,6],
91 "result": [ 2, 4 ]
92 },
93 {
94 "name": "return between colon and step",
95 "selector" : "$[1:5:\r2]",
96 "document" : [1,2,3,4,5,6],
97 "result": [ 2, 4 ]
98 }
99 ]
100 }