Files
deb-python-jsonschema/json/tests/draft4/minLength.json
Julian Berman 161f3078ba Squashed 'json/' changes from 0ba6722..ddef9b0
ddef9b0 Add a note to the README about running sanity checks.
f93cc55 Shorten the descriptions slightly.
dd9a876 Merge remote-tracking branch 'fge/develop' into develop
bc84af3 Add string length tests for supplementary Unicode code points

git-subtree-dir: json
git-subtree-split: ddef9b0415461ca948f3c0605e2eb2cc40981b95
2014-04-13 19:35:57 -04:00

34 lines
886 B
JSON

[
{
"description": "minLength validation",
"schema": {"minLength": 2},
"tests": [
{
"description": "longer is valid",
"data": "foo",
"valid": true
},
{
"description": "exact length is valid",
"data": "fo",
"valid": true
},
{
"description": "too short is invalid",
"data": "f",
"valid": false
},
{
"description": "ignores non-strings",
"data": 1,
"valid": true
},
{
"description": "one supplementary Unicode code point is not long enough",
"data": "\uD83D\uDCA9",
"valid": false
}
]
}
]