mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-24 15:15:38 +00:00
34 lines
886 B
JSON
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
|
|
}
|
|
]
|
|
}
|
|
]
|