mirror of
https://github.com/tc39/test262.git
synced 2025-07-31 01:44:54 +02:00
Fixes {format,formatToParts}/en-us-numeric-auto.js (#2207)
The following lines expect each unit has property "-1" and "1" ``` const expected = unit in exceptions ? [exceptions[unit]["1"], exceptions[unit]["0"], exceptions[unit]["0"], exceptions[unit]["-1"]] : [`in 1 ${unit}`, `in 0 ${unit}s`, `0 ${unit}s ago`, `1 ${unit} ago`]; ```
This commit is contained in:
parent
7a1da555a5
commit
9d0072df3d
@ -51,10 +51,14 @@ const exceptions = {
|
|||||||
"1": "tomorrow",
|
"1": "tomorrow",
|
||||||
},
|
},
|
||||||
"hour": {
|
"hour": {
|
||||||
'0': 'this hour'
|
"-1": "1 hour ago",
|
||||||
|
'0': 'this hour',
|
||||||
|
"1": "in 1 hour",
|
||||||
},
|
},
|
||||||
"minute": {
|
"minute": {
|
||||||
'0': 'this minute'
|
"-1": "1 minute ago",
|
||||||
|
'0': 'this minute',
|
||||||
|
"1": "in 1 minute",
|
||||||
},
|
},
|
||||||
"second": {
|
"second": {
|
||||||
"-1": "1 second ago",
|
"-1": "1 second ago",
|
||||||
|
@ -46,6 +46,12 @@ function expected(key, unit, default_) {
|
|||||||
"0": "today",
|
"0": "today",
|
||||||
"1": "tomorrow",
|
"1": "tomorrow",
|
||||||
},
|
},
|
||||||
|
"hour": {
|
||||||
|
"0": "this hour",
|
||||||
|
},
|
||||||
|
"minute": {
|
||||||
|
"0": "this minute",
|
||||||
|
},
|
||||||
"second": {
|
"second": {
|
||||||
"0": "now",
|
"0": "now",
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user