Skip to content

Commit

Permalink
[242] Add pattern tests for numbers, objects, arrays, and null
Browse files Browse the repository at this point in the history
  • Loading branch information
ssilverman committed Apr 23, 2020
1 parent c4d3e0f commit ad14e35
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions tests/draft2019-09/pattern.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,31 @@
"description": "ignores non-strings",
"data": true,
"valid": true
},
{
"description": "ignores integers",
"data": 123,
"valid": true
},
{
"description": "ignores floats",
"data": 1.0,
"valid": true
},
{
"description": "ignores objects",
"data": {},
"valid": true
},
{
"description": "ignores arrays",
"data": [],
"valid": true
},
{
"description": "ignores null",
"data": null,
"valid": true
}
]
},
Expand Down

0 comments on commit ad14e35

Please sign in to comment.