mirror of
https://github.com/tc39/test262.git
synced 2025-12-02 19:43:04 +01:00
Intl Era Monthcode: Fix assertion messages
I made a copy-paste error in https://github.com/tc39/test262/pull/4717.
This commit is contained in:
parent
806b1b76a9
commit
4d851c7e41
@ -56,10 +56,10 @@ assert.throws(RangeError, function () {
|
||||
|
||||
TemporalHelpers.assertPlainDate(
|
||||
longLeapMonth2.add(years19n),
|
||||
1993, 4, "M03L", 29, "long M06L constrains to 29 when subtraction lands in year with short M06L");
|
||||
1993, 4, "M03L", 29, "long M03L constrains to 29 when subtraction lands in year with short M03L");
|
||||
assert.throws(RangeError, function () {
|
||||
longLeapMonth2.add(years19n, options);
|
||||
}, "long M06L rejects when subtraction lands in year with short M06L");
|
||||
}, "long M03L rejects when subtraction lands in year with short M03L");
|
||||
|
||||
// Constraining day 30 of each regular month to day 29
|
||||
|
||||
|
||||
@ -56,10 +56,10 @@ assert.throws(RangeError, function () {
|
||||
|
||||
TemporalHelpers.assertPlainDate(
|
||||
longLeapMonth2.subtract(years19n),
|
||||
1993, 4, "M03L", 29, "long M06L constrains to 29 when subtraction lands in year with short M06L");
|
||||
1993, 4, "M03L", 29, "long M03L constrains to 29 when subtraction lands in year with short M03L");
|
||||
assert.throws(RangeError, function () {
|
||||
longLeapMonth2.subtract(years19n, options);
|
||||
}, "long M06L rejects when subtraction lands in year with short M06L");
|
||||
}, "long M03L rejects when subtraction lands in year with short M03L");
|
||||
|
||||
// Constraining day 30 of each regular month to day 29
|
||||
|
||||
|
||||
@ -56,10 +56,10 @@ assert.throws(RangeError, function () {
|
||||
|
||||
TemporalHelpers.assertPlainDateTime(
|
||||
longLeapMonth2.add(years19n),
|
||||
1993, 4, "M03L", 29, 12, 34, 0, 0, 0, 0, "long M06L constrains to 29 when subtraction lands in year with short M06L");
|
||||
1993, 4, "M03L", 29, 12, 34, 0, 0, 0, 0, "long M03L constrains to 29 when subtraction lands in year with short M03L");
|
||||
assert.throws(RangeError, function () {
|
||||
longLeapMonth2.add(years19n, options);
|
||||
}, "long M06L rejects when subtraction lands in year with short M06L");
|
||||
}, "long M03L rejects when subtraction lands in year with short M03L");
|
||||
|
||||
// Constraining day 30 of each regular month to day 29
|
||||
|
||||
|
||||
@ -56,10 +56,10 @@ assert.throws(RangeError, function () {
|
||||
|
||||
TemporalHelpers.assertPlainDateTime(
|
||||
longLeapMonth2.subtract(years19n),
|
||||
1993, 4, "M03L", 29, 12, 34, 0, 0, 0, 0, "long M06L constrains to 29 when subtraction lands in year with short M06L");
|
||||
1993, 4, "M03L", 29, 12, 34, 0, 0, 0, 0, "long M03L constrains to 29 when subtraction lands in year with short M03L");
|
||||
assert.throws(RangeError, function () {
|
||||
longLeapMonth2.subtract(years19n, options);
|
||||
}, "long M06L rejects when subtraction lands in year with short M06L");
|
||||
}, "long M03L rejects when subtraction lands in year with short M03L");
|
||||
|
||||
// Constraining day 30 of each regular month to day 29
|
||||
|
||||
|
||||
@ -56,10 +56,10 @@ assert.throws(RangeError, function () {
|
||||
|
||||
TemporalHelpers.assertPlainDateTime(
|
||||
longLeapMonth2.add(years19n).toPlainDateTime(),
|
||||
1993, 4, "M03L", 29, 12, 34, 0, 0, 0, 0, "long M06L constrains to 29 when subtraction lands in year with short M06L");
|
||||
1993, 4, "M03L", 29, 12, 34, 0, 0, 0, 0, "long M03L constrains to 29 when subtraction lands in year with short M03L");
|
||||
assert.throws(RangeError, function () {
|
||||
longLeapMonth2.add(years19n, options);
|
||||
}, "long M06L rejects when subtraction lands in year with short M06L");
|
||||
}, "long M03L rejects when subtraction lands in year with short M03L");
|
||||
|
||||
// Constraining day 30 of each regular month to day 29
|
||||
|
||||
|
||||
@ -56,10 +56,10 @@ assert.throws(RangeError, function () {
|
||||
|
||||
TemporalHelpers.assertPlainDateTime(
|
||||
longLeapMonth2.subtract(years19n).toPlainDateTime(),
|
||||
1993, 4, "M03L", 29, 12, 34, 0, 0, 0, 0, "long M06L constrains to 29 when subtraction lands in year with short M06L");
|
||||
1993, 4, "M03L", 29, 12, 34, 0, 0, 0, 0, "long M03L constrains to 29 when subtraction lands in year with short M03L");
|
||||
assert.throws(RangeError, function () {
|
||||
longLeapMonth2.subtract(years19n, options);
|
||||
}, "long M06L rejects when subtraction lands in year with short M06L");
|
||||
}, "long M03L rejects when subtraction lands in year with short M03L");
|
||||
|
||||
// Constraining day 30 of each regular month to day 29
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user