-
Notifications
You must be signed in to change notification settings - Fork 21
/
date.json
38 lines (38 loc) · 1.01 KB
/
date.json
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
[
{
"name": "date - 1970-01-01 00:00:00",
"raw": ["@0"],
"header_type": "item",
"expected": [{"__type": "date", "value": 0}, []]
},
{
"name": "date - 2022-08-04 01:57:13",
"raw": ["@1659578233"],
"header_type": "item",
"expected": [{"__type": "date", "value": 1659578233}, []]
},
{
"name": "date - 1917-05-30 22:02:47",
"raw": ["@-1659578233"],
"header_type": "item",
"expected": [{"__type": "date", "value": -1659578233}, []]
},
{
"name": "date - 2^31",
"raw": ["@2147483648"],
"header_type": "item",
"expected": [{"__type": "date", "value": 2147483648}, []]
},
{
"name": "date - 2^32",
"raw": ["@4294967296"],
"header_type": "item",
"expected": [{"__type": "date", "value": 4294967296}, []]
},
{
"name": "date - decimal",
"raw": ["@1659578233.12"],
"header_type": "item",
"must_fail": true
}
]