Skip to content

Commit bf92aaa

Browse files
committed
Temporal: Tests for parsing Y-M-D[u-ca=CALENDAR] as YearMonth/MonthDay
JSC fails these test cases.
1 parent 72ec758 commit bf92aaa

File tree

7 files changed

+7
-0
lines changed

7 files changed

+7
-0
lines changed

test/built-ins/Temporal/PlainMonthDay/from/argument-string-calendar-annotation.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ includes: [temporalHelpers.js]
99
---*/
1010

1111
const tests = [
12+
["1976-05-02[u-ca=iso8601]", "without time or time zone"],
1213
["1976-05-02T15:23[u-ca=iso8601]", "without time zone"],
1314
["1976-05-02T15:23[UTC][u-ca=iso8601]", "with time zone"],
1415
["1976-05-02T15:23[!u-ca=iso8601]", "with ! and no time zone"],

test/built-ins/Temporal/PlainMonthDay/prototype/equals/argument-string-calendar-annotation.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ features: [Temporal]
88
---*/
99

1010
const tests = [
11+
["1976-05-02[u-ca=iso8601]", "without time or time zone"],
1112
["1976-05-02T15:23[u-ca=iso8601]", "without time zone"],
1213
["1976-05-02T15:23[UTC][u-ca=iso8601]", "with time zone"],
1314
["1976-05-02T15:23[!u-ca=iso8601]", "with ! and no time zone"],

test/built-ins/Temporal/PlainYearMonth/compare/argument-string-calendar-annotation.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ features: [Temporal]
88
---*/
99

1010
const tests = [
11+
["1976-05-02[u-ca=iso8601]", "without time or time zone"],
1112
["2019-12-15T15:23[u-ca=iso8601]", "without time zone"],
1213
["2019-12-15T15:23[UTC][u-ca=iso8601]", "with time zone"],
1314
["2019-12-15T15:23[!u-ca=iso8601]", "with ! and no time zone"],

test/built-ins/Temporal/PlainYearMonth/from/argument-string-calendar-annotation.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ includes: [temporalHelpers.js]
99
---*/
1010

1111
const tests = [
12+
["2019-12-15[u-ca=iso8601]", "without time or time zone"],
1213
["2019-12-15T15:23[u-ca=iso8601]", "without time zone"],
1314
["2019-12-15T15:23[UTC][u-ca=iso8601]", "with time zone"],
1415
["2019-12-15T15:23[!u-ca=iso8601]", "with ! and no time zone"],

test/built-ins/Temporal/PlainYearMonth/prototype/equals/argument-string-calendar-annotation.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ features: [Temporal]
88
---*/
99

1010
const tests = [
11+
["2019-12-15[u-ca=iso8601]", "without time or time zone"],
1112
["2019-12-15T15:23[u-ca=iso8601]", "without time zone"],
1213
["2019-12-15T15:23[UTC][u-ca=iso8601]", "with time zone"],
1314
["2019-12-15T15:23[!u-ca=iso8601]", "with ! and no time zone"],

test/built-ins/Temporal/PlainYearMonth/prototype/since/argument-string-calendar-annotation.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ includes: [temporalHelpers.js]
99
---*/
1010

1111
const tests = [
12+
["2019-12-15[u-ca=iso8601]", "without time or time zone"],
1213
["2019-12-15T15:23[u-ca=iso8601]", "without time zone"],
1314
["2019-12-15T15:23[UTC][u-ca=iso8601]", "with time zone"],
1415
["2019-12-15T15:23[!u-ca=iso8601]", "with ! and no time zone"],

test/built-ins/Temporal/PlainYearMonth/prototype/until/argument-string-calendar-annotation.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ includes: [temporalHelpers.js]
99
---*/
1010

1111
const tests = [
12+
["2019-12-15[u-ca=iso8601]", "without time or time zone"],
1213
["2019-12-15T15:23[u-ca=iso8601]", "without time zone"],
1314
["2019-12-15T15:23[UTC][u-ca=iso8601]", "with time zone"],
1415
["2019-12-15T15:23[!u-ca=iso8601]", "with ! and no time zone"],

0 commit comments

Comments
 (0)