-
-
Notifications
You must be signed in to change notification settings - Fork 211
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #170 from epoberezkin/boolean
Boolean
- Loading branch information
Showing
12 changed files
with
480 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,104 @@ | ||
[ | ||
{ | ||
"description": "boolean schema 'true'", | ||
"schema": true, | ||
"tests": [ | ||
{ | ||
"description": "number is valid", | ||
"data": 1, | ||
"valid": true | ||
}, | ||
{ | ||
"description": "string is valid", | ||
"data": "foo", | ||
"valid": true | ||
}, | ||
{ | ||
"description": "boolean true is valid", | ||
"data": true, | ||
"valid": true | ||
}, | ||
{ | ||
"description": "boolean false is valid", | ||
"data": false, | ||
"valid": true | ||
}, | ||
{ | ||
"description": "null is valid", | ||
"data": null, | ||
"valid": true | ||
}, | ||
{ | ||
"description": "object is valid", | ||
"data": {"foo": "bar"}, | ||
"valid": true | ||
}, | ||
{ | ||
"description": "empty object is valid", | ||
"data": {}, | ||
"valid": true | ||
}, | ||
{ | ||
"description": "array is valid", | ||
"data": ["foo"], | ||
"valid": true | ||
}, | ||
{ | ||
"description": "empty array is valid", | ||
"data": [], | ||
"valid": true | ||
} | ||
] | ||
}, | ||
{ | ||
"description": "boolean schema 'false'", | ||
"schema": false, | ||
"tests": [ | ||
{ | ||
"description": "number is invalid", | ||
"data": 1, | ||
"valid": false | ||
}, | ||
{ | ||
"description": "string is invalid", | ||
"data": "foo", | ||
"valid": false | ||
}, | ||
{ | ||
"description": "boolean true is invalid", | ||
"data": true, | ||
"valid": false | ||
}, | ||
{ | ||
"description": "boolean false is invalid", | ||
"data": false, | ||
"valid": false | ||
}, | ||
{ | ||
"description": "null is invalid", | ||
"data": null, | ||
"valid": false | ||
}, | ||
{ | ||
"description": "object is invalid", | ||
"data": {"foo": "bar"}, | ||
"valid": false | ||
}, | ||
{ | ||
"description": "empty object is invalid", | ||
"data": {}, | ||
"valid": false | ||
}, | ||
{ | ||
"description": "array is invalid", | ||
"data": ["foo"], | ||
"valid": false | ||
}, | ||
{ | ||
"description": "empty array is invalid", | ||
"data": [], | ||
"valid": false | ||
} | ||
] | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.