File tree Expand file tree Collapse file tree 3 files changed +63
-0
lines changed Expand file tree Collapse file tree 3 files changed +63
-0
lines changed Original file line number Diff line number Diff line change 9
9
"valid" : true
10
10
}
11
11
]
12
+ },
13
+ {
14
+ "description" : " float comparison with high precision" ,
15
+ "schema" : {
16
+ "maximum" : 972783798187987123879878123.18878137 ,
17
+ "exclusiveMaximum" : true
18
+ },
19
+ "tests" : [
20
+ {
21
+ "description" : " comparison works for high numbers" ,
22
+ "data" : 972783798187987123879878123.188781371 ,
23
+ "valid" : false
24
+ }
25
+ ]
12
26
}
13
27
]
Original file line number Diff line number Diff line change
1
+ [
2
+ {
3
+ "description" : " ECMA 262 regex dialect recognition" ,
4
+ "schema" : { "format" : " pattern" },
5
+ "tests" : [
6
+ {
7
+ "description" : " [^] is a valid regex" ,
8
+ "data" : " [^]" ,
9
+ "valid" : true
10
+ },
11
+ {
12
+ "description" : " ECMA 262 has no support for lookbehind" ,
13
+ "data" : " (?<=foo)bar" ,
14
+ "valid" : false
15
+ }
16
+ ]
17
+ }
18
+ ]
Original file line number Diff line number Diff line change 70
70
"valid" : false
71
71
}
72
72
]
73
+ },
74
+ {
75
+ "description" : " regexes are not anchored by default and are case sensitive" ,
76
+ "schema" : {
77
+ "patternProperties" : {
78
+ "[0-9]{2,}" : { "type" : " boolean" },
79
+ "X_" : { "type" : " string" }
80
+ }
81
+ },
82
+ "tests" : [
83
+ {
84
+ "description" : " non recognized members are ignored" ,
85
+ "data" : { "answer 1" : " 42" },
86
+ "valid" : true
87
+ },
88
+ {
89
+ "description" : " recognized members are accounted for" ,
90
+ "data" : { "a31b" : null },
91
+ "valid" : false
92
+ },
93
+ {
94
+ "description" : " regexes are case sensitive" ,
95
+ "data" : { "a_x_3" : 3 },
96
+ "valid" : true
97
+ },
98
+ {
99
+ "description" : " regexes are case sensitive, 2" ,
100
+ "data" : { "a_X_3" : 3 },
101
+ "valid" : false
102
+ }
103
+ ]
73
104
}
74
105
]
You can’t perform that action at this time.
0 commit comments