-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathweek-expanded-reduced-basic.test.json
More file actions
86 lines (86 loc) · 1.98 KB
/
Copy pathweek-expanded-reduced-basic.test.json
File metadata and controls
86 lines (86 loc) · 1.98 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
{
"x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE",
"target": "../../../../../schemas/iso/datetime/2019/date/week-expanded-reduced-basic.json",
"tests": [
{
"description": "Invalid type - integer",
"data": 1985155,
"valid": false
},
{
"description": "Invalid type - boolean",
"data": true,
"valid": false
},
{
"description": "Invalid type - null",
"data": null,
"valid": false
},
{
"description": "Valid - week 15 of 1985 with positive sign",
"data": "+001985W15",
"valid": true
},
{
"description": "Valid - week 1 of year 1 BCE with negative sign",
"data": "-000001W01",
"valid": true
},
{
"description": "Valid - week 53 of year 999999 with positive sign",
"data": "+999999W53",
"valid": true
},
{
"description": "Valid - week 1 of year 0 with positive sign",
"data": "+000000W01",
"valid": true
},
{
"description": "Valid - week 52 of year 10000 BCE with negative sign",
"data": "-010000W52",
"valid": true
},
{
"description": "Invalid - week 00",
"data": "+001985W00",
"valid": false
},
{
"description": "Invalid - week 54",
"data": "+001985W54",
"valid": false
},
{
"description": "Invalid - missing sign",
"data": "001985W15",
"valid": false
},
{
"description": "Invalid - missing W designator",
"data": "+00198515",
"valid": false
},
{
"description": "Invalid - lowercase w",
"data": "+001985w15",
"valid": false
},
{
"description": "Invalid - extended format (with hyphen)",
"data": "+001985-W15",
"valid": false
},
{
"description": "Invalid - with day component",
"data": "+001985W155",
"valid": false
},
{
"description": "Invalid - empty string",
"data": "",
"valid": false
}
]
}