mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-27 00:25:38 +00:00
35 lines
857 B
JSON
35 lines
857 B
JSON
[
|
|
{
|
|
"description": "pattern validation",
|
|
"schema": {"pattern": "^a*$"},
|
|
"tests": [
|
|
{
|
|
"description": "a matching pattern is valid",
|
|
"data": "aaa",
|
|
"valid": true
|
|
},
|
|
{
|
|
"description": "a non-matching pattern is invalid",
|
|
"data": "abc",
|
|
"valid": false
|
|
},
|
|
{
|
|
"description": "ignores non-strings",
|
|
"data": true,
|
|
"valid": true
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"description": "pattern is not anchored",
|
|
"schema": {"pattern": "a+"},
|
|
"tests": [
|
|
{
|
|
"description": "matches a substring",
|
|
"data": "xxaayy",
|
|
"valid": true
|
|
}
|
|
]
|
|
}
|
|
]
|