mirror of https://github.com/tc39/test262.git
Temporal: Move UTC offset ±24:00 into invalid string tests
It was in the "limits of representable range" tests, but it is invalid syntax, so it belongs somewhere else.
This commit is contained in:
parent
585d7ac2b3
commit
116bc2cc47
|
@ -35,6 +35,8 @@ const invalidStrings = [
|
|||
"2020-01-01T001Z",
|
||||
"2020-01-01T01:001Z",
|
||||
"2020-01-01T01:01:001Z",
|
||||
"2020-01-01T00:00-24:00",
|
||||
"2020-01-01T00:00+24:00",
|
||||
// valid, but forms not supported in Temporal:
|
||||
"2020-W01-1T00:00Z",
|
||||
"2020-001T00:00Z",
|
||||
|
|
|
@ -35,11 +35,9 @@ const outOfRangeInstantStrings = [
|
|||
"-271821-04-19T23:59:59.999999999Z",
|
||||
"-271821-04-19T23:00-00:59:59.999999999",
|
||||
"-271821-04-19T00:00:00-23:59:59.999999999",
|
||||
"-271821-04-19T00:00:00-24:00",
|
||||
"+275760-09-13T00:00:00.000000001Z",
|
||||
"+275760-09-13T01:00+00:59:59.999999999",
|
||||
"+275760-09-14T00:00+23:59:59.999999999",
|
||||
"+275760-09-14T00:00+24:00",
|
||||
];
|
||||
|
||||
for (const str of outOfRangeInstantStrings) {
|
||||
|
|
|
@ -35,6 +35,8 @@ const invalidStrings = [
|
|||
"2020-01-01T001Z",
|
||||
"2020-01-01T01:001Z",
|
||||
"2020-01-01T01:01:001Z",
|
||||
"2020-01-01T00:00-24:00",
|
||||
"2020-01-01T00:00+24:00",
|
||||
// valid, but forms not supported in Temporal:
|
||||
"2020-W01-1T00:00Z",
|
||||
"2020-001T00:00Z",
|
||||
|
|
|
@ -33,11 +33,9 @@ const outOfRangeInstantStrings = [
|
|||
"-271821-04-19T23:59:59.999999999Z",
|
||||
"-271821-04-19T23:00-00:59:59.999999999",
|
||||
"-271821-04-19T00:00:00-23:59:59.999999999",
|
||||
"-271821-04-19T00:00:00-24:00",
|
||||
"+275760-09-13T00:00:00.000000001Z",
|
||||
"+275760-09-13T01:00+00:59:59.999999999",
|
||||
"+275760-09-14T00:00+23:59:59.999999999",
|
||||
"+275760-09-14T00:00+24:00",
|
||||
];
|
||||
|
||||
for (const str of outOfRangeInstantStrings) {
|
||||
|
|
|
@ -35,6 +35,8 @@ const invalidStrings = [
|
|||
"2020-01-01T001Z",
|
||||
"2020-01-01T01:001Z",
|
||||
"2020-01-01T01:01:001Z",
|
||||
"2020-01-01T00:00-24:00",
|
||||
"2020-01-01T00:00+24:00",
|
||||
// valid, but forms not supported in Temporal:
|
||||
"2020-W01-1T00:00Z",
|
||||
"2020-001T00:00Z",
|
||||
|
|
|
@ -33,11 +33,9 @@ const outOfRangeInstantStrings = [
|
|||
"-271821-04-19T23:59:59.999999999Z",
|
||||
"-271821-04-19T23:00-00:59:59.999999999",
|
||||
"-271821-04-19T00:00:00-23:59:59.999999999",
|
||||
"-271821-04-19T00:00:00-24:00",
|
||||
"+275760-09-13T00:00:00.000000001Z",
|
||||
"+275760-09-13T01:00+00:59:59.999999999",
|
||||
"+275760-09-14T00:00+23:59:59.999999999",
|
||||
"+275760-09-14T00:00+24:00",
|
||||
];
|
||||
|
||||
for (const str of outOfRangeInstantStrings) {
|
||||
|
|
|
@ -35,6 +35,8 @@ const invalidStrings = [
|
|||
"2020-01-01T001Z",
|
||||
"2020-01-01T01:001Z",
|
||||
"2020-01-01T01:01:001Z",
|
||||
"2020-01-01T00:00-24:00",
|
||||
"2020-01-01T00:00+24:00",
|
||||
// valid, but forms not supported in Temporal:
|
||||
"2020-W01-1T00:00Z",
|
||||
"2020-001T00:00Z",
|
||||
|
|
|
@ -34,11 +34,9 @@ const outOfRangeInstantStrings = [
|
|||
"-271821-04-19T23:59:59.999999999Z",
|
||||
"-271821-04-19T23:00-00:59:59.999999999",
|
||||
"-271821-04-19T00:00:00-23:59:59.999999999",
|
||||
"-271821-04-19T00:00:00-24:00",
|
||||
"+275760-09-13T00:00:00.000000001Z",
|
||||
"+275760-09-13T01:00+00:59:59.999999999",
|
||||
"+275760-09-14T00:00+23:59:59.999999999",
|
||||
"+275760-09-14T00:00+24:00",
|
||||
];
|
||||
|
||||
for (const str of outOfRangeInstantStrings) {
|
||||
|
|
|
@ -35,6 +35,8 @@ const invalidStrings = [
|
|||
"2020-01-01T001Z",
|
||||
"2020-01-01T01:001Z",
|
||||
"2020-01-01T01:01:001Z",
|
||||
"2020-01-01T00:00-24:00",
|
||||
"2020-01-01T00:00+24:00",
|
||||
// valid, but forms not supported in Temporal:
|
||||
"2020-W01-1T00:00Z",
|
||||
"2020-001T00:00Z",
|
||||
|
|
|
@ -34,11 +34,9 @@ const outOfRangeInstantStrings = [
|
|||
"-271821-04-19T23:59:59.999999999Z",
|
||||
"-271821-04-19T23:00-00:59:59.999999999",
|
||||
"-271821-04-19T00:00:00-23:59:59.999999999",
|
||||
"-271821-04-19T00:00:00-24:00",
|
||||
"+275760-09-13T00:00:00.000000001Z",
|
||||
"+275760-09-13T01:00+00:59:59.999999999",
|
||||
"+275760-09-14T00:00+23:59:59.999999999",
|
||||
"+275760-09-14T00:00+24:00",
|
||||
];
|
||||
|
||||
for (const str of outOfRangeInstantStrings) {
|
||||
|
|
Loading…
Reference in New Issue