-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathlatitude.test.json
More file actions
76 lines (76 loc) · 1.54 KB
/
latitude.test.json
File metadata and controls
76 lines (76 loc) · 1.54 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
{
"x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE",
"target": "../../../../schemas/2020-12/iso/coordinate/2022/latitude.json",
"tests": [
{
"description": "Valid - equator",
"data": 0,
"valid": true
},
{
"description": "Valid - north pole",
"data": 90,
"valid": true
},
{
"description": "Valid - south pole",
"data": -90,
"valid": true
},
{
"description": "Valid - positive decimal",
"data": 37.7749,
"valid": true
},
{
"description": "Valid - negative decimal",
"data": -33.8688,
"valid": true
},
{
"description": "Invalid - above north pole",
"data": 90.1,
"valid": false
},
{
"description": "Invalid - below south pole",
"data": -90.1,
"valid": false
},
{
"description": "Invalid - way above range",
"data": 180,
"valid": false
},
{
"description": "Invalid - way below range",
"data": -180,
"valid": false
},
{
"description": "Invalid type - string",
"data": "37.7749",
"valid": false
},
{
"description": "Invalid type - boolean",
"data": true,
"valid": false
},
{
"description": "Invalid type - null",
"data": null,
"valid": false
},
{
"description": "Invalid type - array",
"data": [],
"valid": false
},
{
"description": "Invalid type - object",
"data": {},
"valid": false
}
]
}