File tree Expand file tree Collapse file tree 1 file changed +12
-9
lines changed Expand file tree Collapse file tree 1 file changed +12
-9
lines changed Original file line number Diff line number Diff line change @@ -6,22 +6,25 @@ use Test::More tests 5
6
6
use JSON
7
7
8
8
tree1=$( cat test/keys.json | JSON.load)
9
- ok $? " JSON.load succeeded"
9
+ ok $? \
10
+ " JSON.load succeeded"
10
11
11
- is " $( JSON.get ' /files/file 2.txt/type' tree1) " ' "text/plain"' \
12
- " JSON.get works"
12
+ is " $( JSON.get ' /files/file 2.txt/type' tree1) " \
13
+ ' "text/plain"' \
14
+ " JSON.get works"
13
15
14
16
file_object=$( JSON.object ' /files' tree1)
15
17
16
18
keys=" $( JSON.keys ' /' file_object) "
17
-
18
- is " $keys " " file1.txt" $' \n ' " file 2.txt" \
19
- " JSON.keys '/'"
19
+ is " $keys " \
20
+ " file1.txt" $' \n ' " file 2.txt" \
21
+ " JSON.keys '/'" # '
20
22
21
23
keys=" $( JSON.keys ' /files' tree1) "
22
- is " $keys " " file1.txt" $' \n ' " file 2.txt" \
23
- " JSON.keys 'files'"
24
+ is " $keys " \
25
+ " file1.txt" $' \n ' " file 2.txt" \
26
+ " JSON.keys '/files'" # '
24
27
25
28
keys=" $( JSON.keys ' /' tree1) "
26
29
is " $keys " " description" $' \n ' " files" \
27
- " JSON.keys '' "
30
+ " JSON.keys '/' " # '
You can’t perform that action at this time.
0 commit comments