comparison spec/util_jsonschema_spec.lua @ 12756:cd7da871ce10 0.12

util.jsonschema: Sort test cases to skip Piped trough `sort -g`
author Kim Alvefur <zash@zash.se>
date Sun, 09 Oct 2022 14:58:07 +0200
parents ca6a43fe0231
children edbc888b1e05
comparison
equal deleted inserted replaced
12724:5b5b428d67e2 12756:cd7da871ce10
6 local test_suite_dir = "spec/JSON-Schema-Test-Suite/tests/draft2020-12" 6 local test_suite_dir = "spec/JSON-Schema-Test-Suite/tests/draft2020-12"
7 if lfs.attributes(test_suite_dir, "mode") ~= "directory" then return end 7 if lfs.attributes(test_suite_dir, "mode") ~= "directory" then return end
8 8
9 -- Tests to skip and short reason why (NYI = not yet implemented) 9 -- Tests to skip and short reason why (NYI = not yet implemented)
10 local skip = { 10 local skip = {
11 ["ref.json:0:3"] = "NYI additionalProperties";
12 ["ref.json:3:2"] = "FIXME investigate, util.jsonpath issue?",
13 ["ref.json:6:1"] = "NYI",
14 ["required.json:0:2"] = "distinguishing objects from arrays",
15 ["additionalProperties.json:0:2"] = "distinguishing objects from arrays", 11 ["additionalProperties.json:0:2"] = "distinguishing objects from arrays",
16 ["additionalProperties.json:0:5"] = "NYI", 12 ["additionalProperties.json:0:5"] = "NYI",
17 ["additionalProperties.json:1:0"] = "NYI", 13 ["additionalProperties.json:1:0"] = "NYI",
18 ["anchor.json"] = "$anchor NYI", 14 ["anchor.json"] = "$anchor NYI",
19 ["const.json:1"] = "deepcompare", 15 ["const.json:1"] = "deepcompare",
38 ["multipleOf.json:2"] = "multiples of IEEE 754 fractions", 34 ["multipleOf.json:2"] = "multiples of IEEE 754 fractions",
39 ["pattern.json"] = "NYI", 35 ["pattern.json"] = "NYI",
40 ["patternProperties.json"] = "NYI", 36 ["patternProperties.json"] = "NYI",
41 ["properties.json:1:2"] = "NYI", 37 ["properties.json:1:2"] = "NYI",
42 ["properties.json:1:3"] = "NYI", 38 ["properties.json:1:3"] = "NYI",
39 ["ref.json:0:3"] = "NYI additionalProperties",
40 ["ref.json:11"] = "NYI",
41 ["ref.json:12:1"] = "FIXME",
42 ["ref.json:13"] = "NYI",
43 ["ref.json:14"] = "NYI", 43 ["ref.json:14"] = "NYI",
44 ["ref.json:15"] = "NYI", 44 ["ref.json:15"] = "NYI",
45 ["ref.json:16"] = "NYI", 45 ["ref.json:16"] = "NYI",
46 ["ref.json:17"] = "NYI", 46 ["ref.json:17"] = "NYI",
47 ["ref.json:18"] = "NYI", 47 ["ref.json:18"] = "NYI",
48 ["ref.json:13"] = "NYI",
49 ["ref.json:19"] = "NYI", 48 ["ref.json:19"] = "NYI",
50 ["ref.json:11"] = "NYI", 49 ["ref.json:3:2"] = "FIXME investigate, util.jsonpath issue?",
51 ["ref.json:12:1"] = "FIXME", 50 ["ref.json:6:1"] = "NYI",
52 ["refRemote.json"] = "DEFINITELY NYI", 51 ["refRemote.json"] = "DEFINITELY NYI",
52 ["required.json:0:2"] = "distinguishing objects from arrays",
53 ["type.json:3:4"] = "distinguishing objects from arrays", 53 ["type.json:3:4"] = "distinguishing objects from arrays",
54 ["type.json:3:6"] = "null is weird", 54 ["type.json:3:6"] = "null is weird",
55 ["type.json:4:3"] = "distinguishing objects from arrays", 55 ["type.json:4:3"] = "distinguishing objects from arrays",
56 ["type.json:4:6"] = "null is weird", 56 ["type.json:4:6"] = "null is weird",
57 ["type.json:9:4"] = "null is weird", 57 ["type.json:9:4"] = "null is weird",