]> CyberLeo.Net >> Repos - FreeBSD/releng/10.2.git/blob - contrib/libucl/tests/schema/minLength.json
- Copy stable/10@285827 to releng/10.2 in preparation for 10.2-RC1
[FreeBSD/releng/10.2.git] / contrib / libucl / tests / schema / minLength.json
1 [
2     {
3         "description": "minLength validation",
4         "schema": {"minLength": 2},
5         "tests": [
6             {
7                 "description": "longer is valid",
8                 "data": "foo",
9                 "valid": true
10             },
11             {
12                 "description": "exact length is valid",
13                 "data": "fo",
14                 "valid": true
15             },
16             {
17                 "description": "too short is invalid",
18                 "data": "f",
19                 "valid": false
20             },
21             {
22                 "description": "ignores non-strings",
23                 "data": 1,
24                 "valid": true
25             }
26         ]
27     }
28 ]