-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathordinal-expanded-basic.test.json
More file actions
116 lines (116 loc) · 2.62 KB
/
Copy pathordinal-expanded-basic.test.json
File metadata and controls
116 lines (116 loc) · 2.62 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
{
"x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE",
"target": "../../../../../schemas/iso/datetime/2019/date/ordinal-expanded-basic.json",
"tests": [
{
"description": "Invalid type - integer",
"data": 1985102,
"valid": false
},
{
"description": "Invalid type - boolean",
"data": true,
"valid": false
},
{
"description": "Invalid type - null",
"data": null,
"valid": false
},
{
"description": "Valid - day 102 of 1985 with positive sign",
"data": "+001985102",
"valid": true
},
{
"description": "Valid - day 1 of year 1 BCE with negative sign",
"data": "-000001001",
"valid": true
},
{
"description": "Valid - day 366 of year 999999 with positive sign",
"data": "+999999366",
"valid": true
},
{
"description": "Valid - day 1 of year 0 with positive sign",
"data": "+000000001",
"valid": true
},
{
"description": "Valid - day 365 of year 10000 BCE with negative sign",
"data": "-010000365",
"valid": true
},
{
"description": "Valid - day 001 (first day)",
"data": "+001985001",
"valid": true
},
{
"description": "Valid - day 200",
"data": "+001985200",
"valid": true
},
{
"description": "Valid - day 299",
"data": "+001985299",
"valid": true
},
{
"description": "Invalid - day 000",
"data": "+001985000",
"valid": false
},
{
"description": "Invalid - day 367",
"data": "+001985367",
"valid": false
},
{
"description": "Invalid - missing sign",
"data": "001985102",
"valid": false
},
{
"description": "Invalid - extended format (with hyphen)",
"data": "+001985-102",
"valid": false
},
{
"description": "Invalid - empty string",
"data": "",
"valid": false
},
{
"description": "Valid - 366th day of leap year 2004",
"data": "+002004366",
"valid": true
},
{
"description": "Valid - 365th day of non-leap year 2100",
"data": "+002100365",
"valid": true
},
{
"description": "Invalid - Day 368",
"data": "+002023368",
"valid": false
},
{
"description": "Invalid - Day 400",
"data": "+002023400",
"valid": false
},
{
"description": "Invalid - Day 500 with negative year",
"data": "-002023500",
"valid": false
},
{
"description": "Invalid - Day 999",
"data": "+002023999",
"valid": false
}
]
}