Skip to content

Commit ad14e35

Browse files
committed
[242] Add pattern tests for numbers, objects, arrays, and null
1 parent c4d3e0f commit ad14e35

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

tests/draft2019-09/pattern.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,31 @@
1717
"description": "ignores non-strings",
1818
"data": true,
1919
"valid": true
20+
},
21+
{
22+
"description": "ignores integers",
23+
"data": 123,
24+
"valid": true
25+
},
26+
{
27+
"description": "ignores floats",
28+
"data": 1.0,
29+
"valid": true
30+
},
31+
{
32+
"description": "ignores objects",
33+
"data": {},
34+
"valid": true
35+
},
36+
{
37+
"description": "ignores arrays",
38+
"data": [],
39+
"valid": true
40+
},
41+
{
42+
"description": "ignores null",
43+
"data": null,
44+
"valid": true
2045
}
2146
]
2247
},

0 commit comments

Comments
 (0)