summaryrefslogtreecommitdiffstats
path: root/runtime/poky/qemux86-64/core-image-ptest-json-glib/ptest-raw.log
blob: 7201f9def7e4c804129b4f89ab2fd9e46797711d (plain)
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
START: ptest-runner
2024-04-18T01:20
BEGIN: /usr/lib/json-glib/ptest
Running test: json-glib-1.0/invalid.test
TAP version 13
# random seed: R02S249cc9a74cbc131de8e4bffd65f99d98
1..29
# Start of invalid tests
# Start of json tests
# invalid data: 'rainbows'...
ok 1 /invalid/json/bareword-1
# invalid data: '[ unicorns ]'...
ok 2 /invalid/json/bareword-2
# invalid data: '{ "foo" : ponies }'...
ok 3 /invalid/json/bareword-3
# invalid data: '[ 3, 2, 1, lift_off ]'...
ok 4 /invalid/json/bareword-4
# invalid data: '{ foo : 42 }'...
ok 5 /invalid/json/bareword-5
# invalid data: '"st"ring"'...
ok 6 /invalid/json/bareword-6
# invalid data: '[ -false ]'...
# error: <data>:1:3: Parse error: unexpected character `-', expected number (integer)
ok 7 /invalid/json/values-1
# invalid data: '["\uD800\uD800"]'...
# error: <data>:1:15: Parse error: scanner: malformed surrogate pair
ok 8 /invalid/json/values-2
# invalid data: '["\uDB00\uD800"]'...
# error: <data>:1:15: Parse error: scanner: malformed surrogate pair
ok 9 /invalid/json/values-3
# invalid data: '["\uDB00"]'...
# error: <data>:1:11: Parse error: scanner: unterminated string constant
ok 10 /invalid/json/values-4
# invalid data: 'var foo'...
# error: <data>:1:7: Parse error: unexpected end of file, expected character `='
ok 11 /invalid/json/assignment-1
# invalid data: 'var foo = no'...
# error: <data>:1:12: Parse error: unexpected identifier `no', expected value
ok 12 /invalid/json/assignment-2
# invalid data: 'var = true'...
# error: <data>:1:5: Parse error: unexpected character `=', expected identifier
ok 13 /invalid/json/assignment-3
# invalid data: 'var blah = 42:'...
# error: <data>:1:14: Parse error: unexpected character `:', expected end of file
ok 14 /invalid/json/assignment-4
# invalid data: 'let foo = true;'...
# error: <data>:1:3: Parse error: unexpected identifier `let', expected value
ok 15 /invalid/json/assignment-5
# invalid data: '[ true, false'...
# error: <data>:1:13: Parse error: unexpected value `false', expected character `,'
ok 16 /invalid/json/array-1
# invalid data: '[ true }'...
# error: <data>:1:6: Parse error: unexpected value `true', expected character `,'
ok 17 /invalid/json/array-2
# invalid data: '[ "foo" : 42 ]'...
# error: <data>:1:7: Parse error: unexpected string constant "foo", expected character `,'
ok 18 /invalid/json/array-3
# invalid data: '{ foo : 42 }'...
# error: <data>:1:1: Parse error: unexpected character `{', expected string constant
ok 19 /invalid/json/object-1
# invalid data: '{ 42 : "foo" }'...
# error: <data>:1:1: Parse error: unexpected character `{', expected string constant
ok 20 /invalid/json/object-2
# invalid data: '{ "foo", 42 }'...
# error: <data>:1:7: Parse error: unexpected string constant "foo", expected character `:'
ok 21 /invalid/json/object-3
# invalid data: '{ "foo" : 42 ]'...
# error: <data>:1:12: Parse error: unexpected number `42', expected string constant
ok 22 /invalid/json/object-4
# invalid data: '{ "blah" }'...
# error: <data>:1:8: Parse error: unexpected string constant "blah", expected character `:'
ok 23 /invalid/json/object-5
# invalid data: '{ "a" : 0 "b" : 1 }'...
# error: <data>:1:9: Parse error: unexpected number `0', expected character `,'
ok 24 /invalid/json/object-6
# invalid data: '{ null: false }'...
# error: <data>:1:1: Parse error: unexpected character `{', expected string constant
ok 25 /invalid/json/object-7
# invalid data: '[ true false ]'...
ok 26 /invalid/json/missing-comma-1
# invalid data: '{ "foo" : 42 "bar": null }'...
ok 27 /invalid/json/missing-comma-2
# invalid data: '[ true, ]'...
ok 28 /invalid/json/trailing-comma-1
# invalid data: '{ "foo" : 42, }'...
ok 29 /invalid/json/trailing-comma-2
# End of json tests
# End of invalid tests
PASS: json-glib-1.0/invalid.test
Running test: json-glib-1.0/gvariant.test
TAP version 13
# random seed: R02Sb3692ca86fd61bdacb27a3a215c7131e
1..89
# Start of gvariant tests
# Start of to-json tests
ok 1 /gvariant/to-json/boolean
ok 2 /gvariant/to-json/byte
ok 3 /gvariant/to-json/int16
ok 4 /gvariant/to-json/uint16
ok 5 /gvariant/to-json/int32
ok 6 /gvariant/to-json/uint32
ok 7 /gvariant/to-json/int64
ok 8 /gvariant/to-json/uint64
ok 9 /gvariant/to-json/handle
ok 10 /gvariant/to-json/double
ok 11 /gvariant/to-json/double-whole
ok 12 /gvariant/to-json/string
ok 13 /gvariant/to-json/object-path
ok 14 /gvariant/to-json/signature
ok 15 /gvariant/to-json/tuple
ok 16 /gvariant/to-json/deep-nesting
ok 17 /gvariant/to-json/mixed1
ok 18 /gvariant/to-json/mixed2
# Start of maybe tests
# Start of simple tests
ok 19 /gvariant/to-json/maybe/simple/null
ok 20 /gvariant/to-json/maybe/simple/string
# End of simple tests
# Start of container tests
ok 21 /gvariant/to-json/maybe/container/null
ok 22 /gvariant/to-json/maybe/container/tuple
# End of container tests
# Start of variant tests
ok 23 /gvariant/to-json/maybe/variant/boolean
# End of variant tests
# End of maybe tests
# Start of array tests
ok 24 /gvariant/to-json/array/empty
ok 25 /gvariant/to-json/array/byte
ok 26 /gvariant/to-json/array/string
ok 27 /gvariant/to-json/array/variant
# Start of array tests
ok 28 /gvariant/to-json/array/array/int32
# End of array tests
# End of array tests
# Start of dictionary tests
ok 29 /gvariant/to-json/dictionary/empty
ok 30 /gvariant/to-json/dictionary/single-entry
ok 31 /gvariant/to-json/dictionary/string-int32
ok 32 /gvariant/to-json/dictionary/string-variant
ok 33 /gvariant/to-json/dictionary/int64-variant
ok 34 /gvariant/to-json/dictionary/uint64-boolean
ok 35 /gvariant/to-json/dictionary/boolean-variant
ok 36 /gvariant/to-json/dictionary/double-string
# End of dictionary tests
# Start of variant tests
ok 37 /gvariant/to-json/variant/string
ok 38 /gvariant/to-json/variant/dictionary
# Start of maybe tests
ok 39 /gvariant/to-json/variant/maybe/null
# End of maybe tests
# Start of variant tests
ok 40 /gvariant/to-json/variant/variant/array
# End of variant tests
# End of variant tests
# End of to-json tests
# Start of from-json tests
ok 41 /gvariant/from-json/boolean
ok 42 /gvariant/from-json/byte
ok 43 /gvariant/from-json/int16
ok 44 /gvariant/from-json/uint16
ok 45 /gvariant/from-json/int32
ok 46 /gvariant/from-json/uint32
ok 47 /gvariant/from-json/int64
ok 48 /gvariant/from-json/uint64
ok 49 /gvariant/from-json/handle
ok 50 /gvariant/from-json/double
ok 51 /gvariant/from-json/double-whole
ok 52 /gvariant/from-json/string
ok 53 /gvariant/from-json/object-path
ok 54 /gvariant/from-json/signature
ok 55 /gvariant/from-json/tuple
ok 56 /gvariant/from-json/deep-nesting
ok 57 /gvariant/from-json/mixed1
ok 58 /gvariant/from-json/mixed2
ok 59 /gvariant/from-json/string-to-boolean
ok 60 /gvariant/from-json/string-to-byte
ok 61 /gvariant/from-json/string-to-int16
ok 62 /gvariant/from-json/string-to-uint16
ok 63 /gvariant/from-json/string-to-int32
ok 64 /gvariant/from-json/string-to-int64
ok 65 /gvariant/from-json/string-to-uint64
ok 66 /gvariant/from-json/string-to-double
ok 67 /gvariant/from-json/string-to-double-whole
# Start of maybe tests
# Start of simple tests
ok 68 /gvariant/from-json/maybe/simple/null
ok 69 /gvariant/from-json/maybe/simple/string
# End of simple tests
# Start of container tests
ok 70 /gvariant/from-json/maybe/container/null
ok 71 /gvariant/from-json/maybe/container/tuple
# End of container tests
# Start of variant tests
ok 72 /gvariant/from-json/maybe/variant/boolean
# End of variant tests
# End of maybe tests
# Start of array tests
ok 73 /gvariant/from-json/array/empty
ok 74 /gvariant/from-json/array/byte
ok 75 /gvariant/from-json/array/string
ok 76 /gvariant/from-json/array/variant
# Start of array tests
ok 77 /gvariant/from-json/array/array/int32
# End of array tests
# End of array tests
# Start of dictionary tests
ok 78 /gvariant/from-json/dictionary/empty
ok 79 /gvariant/from-json/dictionary/single-entry
ok 80 /gvariant/from-json/dictionary/string-int32
ok 81 /gvariant/from-json/dictionary/string-variant
ok 82 /gvariant/from-json/dictionary/int64-variant
ok 83 /gvariant/from-json/dictionary/uint64-boolean
ok 84 /gvariant/from-json/dictionary/boolean-variant
ok 85 /gvariant/from-json/dictionary/double-string
# End of dictionary tests
# Start of variant tests
ok 86 /gvariant/from-json/variant/string
ok 87 /gvariant/from-json/variant/dictionary
# Start of maybe tests
ok 88 /gvariant/from-json/variant/maybe/null
# End of maybe tests
# Start of variant tests
ok 89 /gvariant/from-json/variant/variant/array
# End of variant tests
# End of variant tests
# End of from-json tests
# End of gvariant tests
PASS: json-glib-1.0/gvariant.test
Running test: json-glib-1.0/builder.test
TAP version 13
# random seed: R02S525acbc90528c04dc413e98899dec9f1
1..3
# Start of builder tests
# Builder complex: '{"depth1":[1,{"depth2":[3,[null,false],"after array"],"value2":true}],"object1":{},"value3":null,"value4":42,"":54}'
ok 1 /builder/complex
# Builder empty: '{"a":{}}'
ok 2 /builder/empty
ok 3 /builder/reset
# End of builder tests
PASS: json-glib-1.0/builder.test
Running test: json-glib-1.0/serialize-simple.test
TAP version 13
# random seed: R02S019fbedd77c03b1ed057e1bd3eb87cd6
1..1
# Start of serialize tests
# TestObject: {
#   "bar" : true,
#   "baz" : "Test"
# }
ok 1 /serialize/gobject
# End of serialize tests
PASS: json-glib-1.0/serialize-simple.test
Running test: json-glib-1.0/serialize-full.test
TAP version 13
# random seed: R02Sac44b2976b79abec6e5b74910bcc8443
1..1
# Start of deserialize tests
# *** TestObject ***
#  foo: <true>
#  bar: <true>
#  baz: <true>
#  meh: <true>
ok 1 /deserialize/json-to-gobject
# End of deserialize tests
PASS: json-glib-1.0/serialize-full.test
Running test: json-glib-1.0/generator.test
TAP version 13
# random seed: R02Sb11fa721f6f2ddbe6a16844dbad8a76e
1..16
# Start of generator tests
ok 1 /generator/empty-array
ok 2 /generator/empty-object
# checking simple array '[true,false,null,42,"foo"]' (expected: '[true,false,null,42,"foo"]')
ok 3 /generator/simple-array
ok 4 /generator/nested-array
# checking simple object '{"Bool1":true,"Bool2":false,"Null":null,"Int":42,"":54,"String":"foo"}' (expected: '{"Bool1":true,"Bool2":false,"Null":null,"Int":42,"":54,"String":"foo"}')
ok 5 /generator/simple-object
# checking nested object '{"Image":{"Width":800,"Height":600,"Title":"View from 15th Floor","Thumbnail":{"Url":"http://www.example.com/image/481989943","Height":125,"Width":"100"},"IDs":[116,943,234,38793]}}' (expected: '{"Image":{"Width":800,"Height":600,"Title":"View from 15th Floor","Thumbnail":{"Url":"http://www.example.com/image/481989943","Height":125,"Width":"100"},"IDs":[116,943,234,38793]}}')
ok 6 /generator/nested-object
# test_decimal_separator: value: '3.14' - string: '3.1400000000000001'
# test_decimal_separator: value: '3.14' - string: '3.1400000000000001'
# test_decimal_separator: value: '3.14' - string: '3.1400000000000001'
# test_decimal_separator: value: '3.14' - string: '3.1400000000000001'
ok 7 /generator/decimal-separator
ok 8 /generator/double-stays-double
# test_double_valid: value: '0.00' - string: '1e-08'
ok 9 /generator/double-valid
# checking pretty printing: []	expected: []
# checking pretty printing: {}	expected: {}
# checking pretty printing: [
# 	true,
# 	false,
# 	null,
# 	"hello"
# ]	expected: [
# 	true,
# 	false,
# 	null,
# 	"hello"
# ]
# checking pretty printing: {
# 	"foo" : 42,
# 	"bar" : true,
# 	"baz" : null
# }	expected: {
# 	"foo" : 42,
# 	"bar" : true,
# 	"baz" : null
# }
ok 10 /generator/pretty
# Start of string tests
ok 11 /generator/string/abc
ok 12 /generator/string/a\177xc
ok 13 /generator/string/a\033xc
ok 14 /generator/string/a\nxc
ok 15 /generator/string/a\\xc
ok 16 /generator/string/Barney B\303\244r
# End of string tests
# End of generator tests
PASS: json-glib-1.0/generator.test
Running test: json-glib-1.0/parser.test
TAP version 13
# random seed: R02Sc1403577a79040600ce9d7a917926e4d
1..15
# Start of parser tests
ok 1 /parser/empty-string
# Checking root node type 'NULL'...
# Checking root node type 'Integer'...
# Checking root node type 'Boolean'...
# Checking root node type 'String'...
# Checking root node type 'Floating Point'...
# Checking root node type 'Integer'...
# Checking root node type 'Floating Point'...
ok 2 /parser/base-value
ok 3 /parser/empty-array
# Parsing: '[ true ]'
# checking element 0 is of the desired type gboolean...
# Parsing: '[ true, false, null ]'
# checking element 2 is of the desired type (null)...
# Parsing: '[ 1, 2, 3.14, "test" ]'
# checking element 3 is of the desired type gchararray...
ok 4 /parser/simple-array
ok 5 /parser/nested-array
ok 6 /parser/empty-object
# checking root node is an object...
# checking object is of the desired size '1'...
# checking member 'test' exists and is of the desired type 'gint64'...
# checking root node is an object...
# checking object is of the desired size '2'...
# checking member 'name' exists and is of the desired type 'gchararray'...
# checking root node is an object...
# checking object is of the desired size '2'...
# checking member 'baz' exists and is of the desired type '(null)'...
# checking root node is an object...
# checking object is of the desired size '1'...
# checking member 'channel' exists and is of the desired type 'gchararray'...
# checking root node is an object...
# checking object is of the desired size '2'...
# checking member 'valign' exists and is of the desired type 'gdouble'...
# checking root node is an object...
# checking object is of the desired size '1'...
# checking member '' exists and is of the desired type 'gchararray'...
ok 7 /parser/simple-object
# checking root node is an object...
# checking object is not empty...
# checking root node is an object...
# checking object is not empty...
ok 8 /parser/nested-object
# checking variable 'foo' is assigned...
# checking for a root of the desired type...
# checking variable 'bar' is assigned...
# checking for a root of the desired type...
# checking variable 'baz' is assigned...
# checking for a root of the desired type...
ok 9 /parser/assignment
# checking root node is an object...
# checking object is not empty...
# checking for object member 'test'...
# checking simple string equality...
# checking for valid UTF-8...
ok 10 /parser/unicode-escape
# GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ?gio-vfs?
ok 11 /parser/stream-sync
ok 12 /parser/stream-async
ok 13 /parser/mapped
# Start of mapped tests
ok 14 /parser/mapped/file-error
ok 15 /parser/mapped/json-error
# End of mapped tests
# End of parser tests
PASS: json-glib-1.0/parser.test
Running test: json-glib-1.0/serialize-complex.test
TAP version 13
# random seed: R02Sa4355d03b2b5a1c560dbdbdee8db27d9
1..1
# Start of serialize tests
# TestObject: {
#   "foo" : 47,
#   "bar" : false,
#   "baz" : "Hello, World!",
#   "blah" : {
#     "foo" : 42,
#     "bar" : true
#   },
#   "meh" : 0.5
# }
ok 1 /serialize/gobject-boxed
# End of serialize tests
PASS: json-glib-1.0/serialize-complex.test
Running test: json-glib-1.0/object.test
TAP version 13
# random seed: R02S7eac7e67bca631d83d7dc46dbfd05911
1..9
# Start of object tests
ok 1 /object/empty-object
ok 2 /object/add-member
ok 3 /object/set-member
ok 4 /object/get-member-default
ok 5 /object/remove-member
ok 6 /object/foreach-member
ok 7 /object/iter
ok 8 /object/ordered-iter
ok 9 /object/empty-member
# End of object tests
PASS: json-glib-1.0/object.test
Running test: json-glib-1.0/boxed.test
TAP version 13
# random seed: R02Sb25210873605162c3c1150981529c1d5
1..2
# Start of boxed tests
# Registering transform functions
# Serialize: { foo: 42, bar: true }
# TestObject: {
#   "blah" : {
#     "foo" : 42,
#     "bar" : true
#   }
# }
ok 1 /boxed/serialize-property
# Deserialize: { foo: 42, bar: true }
ok 2 /boxed/deserialize-property
# End of boxed tests
PASS: json-glib-1.0/boxed.test
Running test: json-glib-1.0/node.test
TAP version 13
# random seed: R02S1ac7ee8344eed8567d2a8ac5c47a1089
1..28
# Start of nodes tests
ok 1 /nodes/gvalue
# Start of init tests
ok 2 /nodes/init/int
ok 3 /nodes/init/double
ok 4 /nodes/init/boolean
ok 5 /nodes/init/string
ok 6 /nodes/init/null
ok 7 /nodes/init/reinit
# End of init tests
# Start of copy tests
ok 8 /nodes/copy/null
ok 9 /nodes/copy/value
ok 10 /nodes/copy/object
# End of copy tests
# Start of get tests
ok 11 /nodes/get/int
ok 12 /nodes/get/double
# End of get tests
# Start of gvalue tests
# Autopromotion of int to int64
# Expecting an gint64, got a 'gint64'
# Autopromotion of float to double
# Expecting a gdouble, got a 'gdouble'
ok 13 /nodes/gvalue/autopromotion
# End of gvalue tests
# Start of seal tests
ok 14 /nodes/seal/int
ok 15 /nodes/seal/double
ok 16 /nodes/seal/boolean
ok 17 /nodes/seal/string
ok 18 /nodes/seal/null
ok 19 /nodes/seal/object
ok 20 /nodes/seal/array
# End of seal tests
# Start of immutable tests
ok 21 /nodes/immutable/int
ok 22 /nodes/immutable/double
ok 23 /nodes/immutable/boolean
ok 24 /nodes/immutable/string
ok 25 /nodes/immutable/object
ok 26 /nodes/immutable/array
ok 27 /nodes/immutable/value
ok 28 /nodes/immutable/parent
# End of immutable tests
# End of nodes tests
PASS: json-glib-1.0/node.test
Running test: json-glib-1.0/array.test
TAP version 13
# random seed: R02Sc3afe9c1e154611998f742adaa3ffee3
1..4
# Start of array tests
ok 1 /array/empty-array
ok 2 /array/add-element
ok 3 /array/remove-element
ok 4 /array/foreach-element
# End of array tests
PASS: json-glib-1.0/array.test
Running test: json-glib-1.0/reader.test
TAP version 13
# random seed: R02S14e76e17ed2dcae23c8a0bee2dac8cb0
1..6
# Start of reader tests
ok 1 /reader/base-array
ok 2 /reader/base-object
ok 3 /reader/level
# Bug Reference: http://bugzilla.gnome.org/show_bug.cgi?id=758580
ok 4 /reader/null-value
ok 5 /reader/bom
ok 6 /reader/currrent-node
# End of reader tests
PASS: json-glib-1.0/reader.test
Running test: json-glib-1.0/path.test
TAP version 13
# random seed: R02S098b7817b6ff7f83116c7dd86d497cef
1..32
# Start of path tests
# Start of expressions tests
# Start of valid tests
# * Title of the first book in the store, using objct notation. ('$.store.book[0].title')
ok 1 /path/expressions/valid/1
# * Title of the first book in the store, using array notation. ('$['store']['book'][0]['title']')
ok 2 /path/expressions/valid/2
# * All the authors from the every book. ('$.store.book[*].author')
ok 3 /path/expressions/valid/3
# * All the authors. ('$..author')
ok 4 /path/expressions/valid/4
# * Everything inside the store. ('$.store.*')
ok 5 /path/expressions/valid/5
# * All the prices in the store. ('$.store..price')
ok 6 /path/expressions/valid/6
# * The third book. ('$..book[2]')
ok 7 /path/expressions/valid/7
# * The last book. ('$..book[-1:]')
ok 8 /path/expressions/valid/8
# * The first two books. ('$..book[0,1]')
ok 9 /path/expressions/valid/9
# * The first two books, using a slice. ('$..book[:2]')
ok 10 /path/expressions/valid/10
# * All the books. ('$['store']['book'][*]')
ok 11 /path/expressions/valid/11
# * All the members of the bicycle object. ('$.store.bicycle.*')
ok 12 /path/expressions/valid/12
# * The root node. ('$')
ok 13 /path/expressions/valid/13
# End of valid tests
# Start of invalid tests
# * INVALID: invalid first character ('/')
ok 14 /path/expressions/invalid/1
# * INVALID: Invalid character following root ('$ponies')
ok 15 /path/expressions/invalid/2
# * INVALID: missing member name or wildcard after dot ('$.store.')
ok 16 /path/expressions/invalid/3
# * INVALID: Malformed slice (missing step) ('$.store.book[0:1:]')
ok 17 /path/expressions/invalid/4
# * INVALID: Malformed set ('$.store.book[0,1~2]')
ok 18 /path/expressions/invalid/5
# * INVALID: Malformed array notation ('${'store'}')
ok 19 /path/expressions/invalid/6
# * INVALID: Malformed slice (invalid separator) ('$.store.book[0~2]')
ok 20 /path/expressions/invalid/7
# End of invalid tests
# End of expressions tests
# Start of match tests
# * Title of the first book in the store, using objct notation. ('$.store.book[0].title') =>
# - result:   ["Sayings of the Century"]
# - expected: ["Sayings of the Century"]
ok 21 /path/match/1
# * Title of the first book in the store, using array notation. ('$['store']['book'][0]['title']') =>
# - result:   ["Sayings of the Century"]
# - expected: ["Sayings of the Century"]
ok 22 /path/match/2
# * All the authors from the every book. ('$.store.book[*].author') =>
# - result:   ["Nigel Rees","Evelyn Waugh","Herman Melville","J. R. R. Tolkien"]
# - expected: ["Nigel Rees","Evelyn Waugh","Herman Melville","J. R. R. Tolkien"]
ok 23 /path/match/3
# * All the authors. ('$..author') =>
# - result:   ["Nigel Rees","Evelyn Waugh","Herman Melville","J. R. R. Tolkien"]
# - expected: ["Nigel Rees","Evelyn Waugh","Herman Melville","J. R. R. Tolkien"]
ok 24 /path/match/4
# * All the prices in the store. ('$.store..price') =>
# - result:   ["8.95","12.99","8.99","22.99","19.95"]
# - expected: ["8.95","12.99","8.99","22.99","19.95"]
ok 25 /path/match/5
# * The third book. ('$..book[2]') =>
# - result:   [{"category":"fiction","author":"Herman Melville","title":"Moby Dick","isbn":"0-553-21311-3","price":"8.99"}]
# - expected: [{"category":"fiction","author":"Herman Melville","title":"Moby Dick","isbn":"0-553-21311-3","price":"8.99"}]
ok 26 /path/match/6
# * The last book. ('$..book[-1:]') =>
# - result:   [{"category":"fiction","author":"J. R. R. Tolkien","title":"The Lord of the Rings","isbn":"0-395-19395-8","price":"22.99"}]
# - expected: [{"category":"fiction","author":"J. R. R. Tolkien","title":"The Lord of the Rings","isbn":"0-395-19395-8","price":"22.99"}]
ok 27 /path/match/7
# * The first two books. ('$..book[0,1]') =>
# - result:   [{"category":"reference","author":"Nigel Rees","title":"Sayings of the Century","price":"8.95"},{"category":"fiction","author":"Evelyn Waugh","title":"Sword of Honour","price":"12.99"}]
# - expected: [{"category":"reference","author":"Nigel Rees","title":"Sayings of the Century","price":"8.95"},{"category":"fiction","author":"Evelyn Waugh","title":"Sword of Honour","price":"12.99"}]
ok 28 /path/match/8
# * The first two books, using a slice. ('$..book[:2]') =>
# - result:   [{"category":"reference","author":"Nigel Rees","title":"Sayings of the Century","price":"8.95"},{"category":"fiction","author":"Evelyn Waugh","title":"Sword of Honour","price":"12.99"}]
# - expected: [{"category":"reference","author":"Nigel Rees","title":"Sayings of the Century","price":"8.95"},{"category":"fiction","author":"Evelyn Waugh","title":"Sword of Honour","price":"12.99"}]
ok 29 /path/match/9
# * All the books. ('$['store']['book'][*]') =>
# - result:   [{"category":"reference","author":"Nigel Rees","title":"Sayings of the Century","price":"8.95"},{"category":"fiction","author":"Evelyn Waugh","title":"Sword of Honour","price":"12.99"},{"category":"fiction","author":"Herman Melville","title":"Moby Dick","isbn":"0-553-21311-3","price":"8.99"},{"category":"fiction","author":"J. R. R. Tolkien","title":"The Lord of the Rings","isbn":"0-395-19395-8","price":"22.99"}]
# - expected: [{"category":"reference","author":"Nigel Rees","title":"Sayings of the Century","price":"8.95"},{"category":"fiction","author":"Evelyn Waugh","title":"Sword of Honour","price":"12.99"},{"category":"fiction","author":"Herman Melville","title":"Moby Dick","isbn":"0-553-21311-3","price":"8.99"},{"category":"fiction","author":"J. R. R. Tolkien","title":"The Lord of the Rings","isbn":"0-395-19395-8","price":"22.99"}]
ok 30 /path/match/10
# * All the members of the bicycle object. ('$.store.bicycle.*') =>
# - result:   ["red","19.95"]
# - expected: ["red","19.95"]
ok 31 /path/match/11
# * The root node. ('$') =>
# - result:   [{"store":{"book":[{"category":"reference","author":"Nigel Rees","title":"Sayings of the Century","price":"8.95"},{"category":"fiction","author":"Evelyn Waugh","title":"Sword of Honour","price":"12.99"},{"category":"fiction","author":"Herman Melville","title":"Moby Dick","isbn":"0-553-21311-3","price":"8.99"},{"category":"fiction","author":"J. R. R. Tolkien","title":"The Lord of the Rings","isbn":"0-395-19395-8","price":"22.99"}],"bicycle":{"color":"red","price":"19.95"}}}]
# - expected: [{"store":{"book":[{"category":"reference","author":"Nigel Rees","title":"Sayings of the Century","price":"8.95"},{"category":"fiction","author":"Evelyn Waugh","title":"Sword of Honour","price":"12.99"},{"category":"fiction","author":"Herman Melville","title":"Moby Dick","isbn":"0-553-21311-3","price":"8.99"},{"category":"fiction","author":"J. R. R. Tolkien","title":"The Lord of the Rings","isbn":"0-395-19395-8","price":"22.99"}],"bicycle":{"color":"red","price":"19.95"}}}]
ok 32 /path/match/12
# End of match tests
# End of path tests
PASS: json-glib-1.0/path.test
SUMMARY: total=14; passed=14; skipped=0; failed=0; user=0.0s; system=0.0s; maxrss=5120
DURATION: 1
END: /usr/lib/json-glib/ptest
2024-04-18T01:20
STOP: ptest-runner
TOTAL: 1 FAIL: 0