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:
Philip Chimento 2025-11-27 12:09:27 -08:00 committed by Ms2ger
parent 806b1b76a9
commit 4d851c7e41
6 changed files with 12 additions and 12 deletions

View File

@ -56,10 +56,10 @@ assert.throws(RangeError, function () {
TemporalHelpers.assertPlainDate( TemporalHelpers.assertPlainDate(
longLeapMonth2.add(years19n), 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 () { assert.throws(RangeError, function () {
longLeapMonth2.add(years19n, options); 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 // Constraining day 30 of each regular month to day 29

View File

@ -56,10 +56,10 @@ assert.throws(RangeError, function () {
TemporalHelpers.assertPlainDate( TemporalHelpers.assertPlainDate(
longLeapMonth2.subtract(years19n), 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 () { assert.throws(RangeError, function () {
longLeapMonth2.subtract(years19n, options); 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 // Constraining day 30 of each regular month to day 29

View File

@ -56,10 +56,10 @@ assert.throws(RangeError, function () {
TemporalHelpers.assertPlainDateTime( TemporalHelpers.assertPlainDateTime(
longLeapMonth2.add(years19n), 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 () { assert.throws(RangeError, function () {
longLeapMonth2.add(years19n, options); 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 // Constraining day 30 of each regular month to day 29

View File

@ -56,10 +56,10 @@ assert.throws(RangeError, function () {
TemporalHelpers.assertPlainDateTime( TemporalHelpers.assertPlainDateTime(
longLeapMonth2.subtract(years19n), 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 () { assert.throws(RangeError, function () {
longLeapMonth2.subtract(years19n, options); 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 // Constraining day 30 of each regular month to day 29

View File

@ -56,10 +56,10 @@ assert.throws(RangeError, function () {
TemporalHelpers.assertPlainDateTime( TemporalHelpers.assertPlainDateTime(
longLeapMonth2.add(years19n).toPlainDateTime(), 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 () { assert.throws(RangeError, function () {
longLeapMonth2.add(years19n, options); 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 // Constraining day 30 of each regular month to day 29

View File

@ -56,10 +56,10 @@ assert.throws(RangeError, function () {
TemporalHelpers.assertPlainDateTime( TemporalHelpers.assertPlainDateTime(
longLeapMonth2.subtract(years19n).toPlainDateTime(), 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 () { assert.throws(RangeError, function () {
longLeapMonth2.subtract(years19n, options); 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 // Constraining day 30 of each regular month to day 29