diff --git a/test/built-ins/Temporal/Duration/prototype/add/relativeto-number.js b/test/built-ins/Temporal/Duration/prototype/add/relativeto-number.js index c1da71b211..fc636a2ea6 100644 --- a/test/built-ins/Temporal/Duration/prototype/add/relativeto-number.js +++ b/test/built-ins/Temporal/Duration/prototype/add/relativeto-number.js @@ -22,6 +22,6 @@ for (const relativeTo of numbers) { assert.throws( TypeError, () => instance.add(new Temporal.Duration(0, 0, 0, 0, -24), { relativeTo }), - `Number ${relativeTo} does not convert to a valid ISO string for relativeTo` + `A number (${relativeTo}) is not a valid ISO string for relativeTo` ); } diff --git a/test/built-ins/Temporal/Duration/prototype/add/relativeto-propertybag-calendar-number.js b/test/built-ins/Temporal/Duration/prototype/add/relativeto-propertybag-calendar-number.js index 925d3cc317..1c8e6d3d9a 100644 --- a/test/built-ins/Temporal/Duration/prototype/add/relativeto-propertybag-calendar-number.js +++ b/test/built-ins/Temporal/Duration/prototype/add/relativeto-propertybag-calendar-number.js @@ -21,6 +21,6 @@ for (const calendar of numbers) { assert.throws( TypeError, () => instance.add(new Temporal.Duration(0, 0, 0, 0, -24), { relativeTo }), - "A number is not a valid ISO string for relativeTo.calendar" + `A number (${calendar}) is not a valid ISO string for relativeTo.calendar` ); } diff --git a/test/built-ins/Temporal/Duration/prototype/add/relativeto-zoneddatetime-nanoseconds-to-days-range-errors.js b/test/built-ins/Temporal/Duration/prototype/add/relativeto-zoneddatetime-nanoseconds-to-days-range-errors.js index a0f79a441b..ff3aed12f7 100644 --- a/test/built-ins/Temporal/Duration/prototype/add/relativeto-zoneddatetime-nanoseconds-to-days-range-errors.js +++ b/test/built-ins/Temporal/Duration/prototype/add/relativeto-zoneddatetime-nanoseconds-to-days-range-errors.js @@ -60,7 +60,8 @@ assert.throws(RangeError, () => // Adding day to day sets largestUnit to 'day', avoids having any week/month/year components in differences dayDuration.add(dayDuration, { relativeTo: zdt, - }) + }), + "days < 0 and sign = 1" ); // NanosecondsToDays.20: days > 0 and sign = -1 @@ -87,7 +88,8 @@ assert.throws(RangeError, () => // Adding day to day sets largestUnit to 'day', avoids having any week/month/year components in differences dayDuration.add(dayDuration, { relativeTo: zdt, - }) + }), + "days > 0 and sign = -1" ); // NanosecondsToDays.22: nanoseconds > 0 and sign = -1 @@ -115,5 +117,6 @@ assert.throws(RangeError, () => // Adding day to day sets largestUnit to 'day', avoids having any week/month/year components in differences dayDuration.add(dayDuration, { relativeTo: zdt, - }) + }), + "nanoseconds > 0 and sign = -1" ); diff --git a/test/built-ins/Temporal/Duration/prototype/round/relativeto-number.js b/test/built-ins/Temporal/Duration/prototype/round/relativeto-number.js index fef28c58c8..b1b87f369c 100644 --- a/test/built-ins/Temporal/Duration/prototype/round/relativeto-number.js +++ b/test/built-ins/Temporal/Duration/prototype/round/relativeto-number.js @@ -22,6 +22,6 @@ for (const relativeTo of numbers) { assert.throws( TypeError, () => instance.round({ largestUnit: "years", relativeTo }), - `Number ${relativeTo} does not convert to a valid ISO string for relativeTo` + `A number (${relativeTo}) is not a valid ISO string for relativeTo` ); } diff --git a/test/built-ins/Temporal/Duration/prototype/round/relativeto-propertybag-calendar-number.js b/test/built-ins/Temporal/Duration/prototype/round/relativeto-propertybag-calendar-number.js index 46cd5d4a16..4d36ffa8e7 100644 --- a/test/built-ins/Temporal/Duration/prototype/round/relativeto-propertybag-calendar-number.js +++ b/test/built-ins/Temporal/Duration/prototype/round/relativeto-propertybag-calendar-number.js @@ -21,6 +21,6 @@ for (const calendar of numbers) { assert.throws( TypeError, () => instance.round({ largestUnit: "years", relativeTo }), - "A number is not a valid ISO string for relativeTo.calendar" + `A number (${calendar}) is not a valid ISO string for relativeTo.calendar` ); } diff --git a/test/built-ins/Temporal/Duration/prototype/subtract/relativeto-number.js b/test/built-ins/Temporal/Duration/prototype/subtract/relativeto-number.js index 05b38ccd46..5e09d5bcbb 100644 --- a/test/built-ins/Temporal/Duration/prototype/subtract/relativeto-number.js +++ b/test/built-ins/Temporal/Duration/prototype/subtract/relativeto-number.js @@ -22,6 +22,6 @@ for (const relativeTo of numbers) { assert.throws( TypeError, () => instance.subtract(new Temporal.Duration(0, 0, 0, 0, 24), { relativeTo }), - `Number ${relativeTo} does not convert to a valid ISO string for relativeTo` + `A number (${relativeTo}) is not a valid ISO string for relativeTo` ); } diff --git a/test/built-ins/Temporal/Duration/prototype/subtract/relativeto-propertybag-calendar-number.js b/test/built-ins/Temporal/Duration/prototype/subtract/relativeto-propertybag-calendar-number.js index 0c21296c7a..aaee5f53ec 100644 --- a/test/built-ins/Temporal/Duration/prototype/subtract/relativeto-propertybag-calendar-number.js +++ b/test/built-ins/Temporal/Duration/prototype/subtract/relativeto-propertybag-calendar-number.js @@ -23,6 +23,6 @@ for (const calendar of numbers) { assert.throws( TypeError, () => instance.subtract(new Temporal.Duration(0, 0, 0, 0, 24), { relativeTo }), - "A number is not a valid ISO string for relativeTo.calendar" + `A number (${calendar}) is not a valid ISO string for relativeTo.calendar` ); } diff --git a/test/built-ins/Temporal/Duration/prototype/total/relativeto-number.js b/test/built-ins/Temporal/Duration/prototype/total/relativeto-number.js index c96fce82d1..eb1266bfea 100644 --- a/test/built-ins/Temporal/Duration/prototype/total/relativeto-number.js +++ b/test/built-ins/Temporal/Duration/prototype/total/relativeto-number.js @@ -22,6 +22,6 @@ for (const relativeTo of numbers) { assert.throws( TypeError, () => instance.total({ unit: "days", relativeTo }), - `Number ${relativeTo} does not convert to a valid ISO string for relativeTo` + `A number (${relativeTo}) is not a valid ISO string for relativeTo` ); } diff --git a/test/built-ins/Temporal/Duration/prototype/total/relativeto-propertybag-calendar-number.js b/test/built-ins/Temporal/Duration/prototype/total/relativeto-propertybag-calendar-number.js index 9a7ecee754..c84815264f 100644 --- a/test/built-ins/Temporal/Duration/prototype/total/relativeto-propertybag-calendar-number.js +++ b/test/built-ins/Temporal/Duration/prototype/total/relativeto-propertybag-calendar-number.js @@ -21,6 +21,6 @@ for (const calendar of numbers) { assert.throws( TypeError, () => instance.total({ unit: "days", relativeTo }), - "A number is not a valid ISO string for relativeTo.calendar" + `A number (${calendar}) is not a valid ISO string for relativeTo.calendar` ); } diff --git a/test/built-ins/Temporal/PlainDate/prototype/toPlainDateTime/argument-number.js b/test/built-ins/Temporal/PlainDate/prototype/toPlainDateTime/argument-number.js index ddba97d033..11a176e8c5 100644 --- a/test/built-ins/Temporal/PlainDate/prototype/toPlainDateTime/argument-number.js +++ b/test/built-ins/Temporal/PlainDate/prototype/toPlainDateTime/argument-number.js @@ -20,6 +20,6 @@ for (const arg of numbers) { assert.throws( TypeError, () => instance.toPlainDateTime(arg), - "A number is not a valid ISO string for PlainTime" + `A number (${arg}) is not a valid ISO string for PlainTime` ); } diff --git a/test/built-ins/Temporal/PlainDate/prototype/toZonedDateTime/argument-number.js b/test/built-ins/Temporal/PlainDate/prototype/toZonedDateTime/argument-number.js index ca8330368c..433bcc6236 100644 --- a/test/built-ins/Temporal/PlainDate/prototype/toZonedDateTime/argument-number.js +++ b/test/built-ins/Temporal/PlainDate/prototype/toZonedDateTime/argument-number.js @@ -20,6 +20,6 @@ for (const arg of numbers) { assert.throws( TypeError, () => instance.toZonedDateTime({ plainTime: arg, timeZone: "UTC" }), - "A number is not a valid ISO string for PlainTime" + `A number (${arg}) is not a valid ISO string for PlainTime` ); } diff --git a/test/built-ins/Temporal/PlainDateTime/compare/argument-number.js b/test/built-ins/Temporal/PlainDateTime/compare/argument-number.js index ba930aee3d..60e67f6582 100644 --- a/test/built-ins/Temporal/PlainDateTime/compare/argument-number.js +++ b/test/built-ins/Temporal/PlainDateTime/compare/argument-number.js @@ -18,11 +18,11 @@ for (const arg of numbers) { assert.throws( TypeError, () => Temporal.PlainDateTime.compare(arg, new Temporal.PlainDateTime(1976, 11, 18)), - "A number is not a valid ISO string for PlainDateTime (first argument)" + `A number (${arg}) is not a valid ISO string for PlainDateTime (first argument)` ); assert.throws( TypeError, () => Temporal.PlainDateTime.compare(new Temporal.PlainDateTime(1976, 11, 18), arg), - "A number is not a valid ISO string for PlainDateTime (second argument)" + `A number (${arg}) is not a valid ISO string for PlainDateTime (second argument)` ); } diff --git a/test/built-ins/Temporal/PlainDateTime/from/argument-number.js b/test/built-ins/Temporal/PlainDateTime/from/argument-number.js index 3e9156f66c..a18095504f 100644 --- a/test/built-ins/Temporal/PlainDateTime/from/argument-number.js +++ b/test/built-ins/Temporal/PlainDateTime/from/argument-number.js @@ -18,6 +18,6 @@ for (const arg of numbers) { assert.throws( TypeError, () => Temporal.PlainDateTime.from(arg), - "A number is not a valid ISO string for PlainDateTime" + `A number (${arg}) is not a valid ISO string for PlainDateTime` ); } diff --git a/test/built-ins/Temporal/PlainDateTime/prototype/equals/argument-number.js b/test/built-ins/Temporal/PlainDateTime/prototype/equals/argument-number.js index 92d61f0b22..97c2bb6089 100644 --- a/test/built-ins/Temporal/PlainDateTime/prototype/equals/argument-number.js +++ b/test/built-ins/Temporal/PlainDateTime/prototype/equals/argument-number.js @@ -20,6 +20,6 @@ for (const arg of numbers) { assert.throws( TypeError, () => instance.equals(arg), - "A number is not a valid ISO string for PlainDateTime" + `A number (${arg}) is not a valid ISO string for PlainDateTime` ); } diff --git a/test/built-ins/Temporal/PlainDateTime/prototype/since/argument-number.js b/test/built-ins/Temporal/PlainDateTime/prototype/since/argument-number.js index 021aed9431..6a32f3061d 100644 --- a/test/built-ins/Temporal/PlainDateTime/prototype/since/argument-number.js +++ b/test/built-ins/Temporal/PlainDateTime/prototype/since/argument-number.js @@ -20,6 +20,6 @@ for (const arg of numbers) { assert.throws( TypeError, () => instance.since(arg), - "A number is not a valid ISO string for PlainDateTime" + `A number (${arg}) is not a valid ISO string for PlainDateTime` ); } diff --git a/test/built-ins/Temporal/PlainDateTime/prototype/until/argument-number.js b/test/built-ins/Temporal/PlainDateTime/prototype/until/argument-number.js index c7baeacb75..1379021354 100644 --- a/test/built-ins/Temporal/PlainDateTime/prototype/until/argument-number.js +++ b/test/built-ins/Temporal/PlainDateTime/prototype/until/argument-number.js @@ -20,6 +20,6 @@ for (const arg of numbers) { assert.throws( TypeError, () => instance.until(arg), - "A number is not a valid ISO string for PlainDateTime" + `A number (${arg}) is not a valid ISO string for PlainDateTime` ); } diff --git a/test/built-ins/Temporal/PlainDateTime/prototype/withPlainTime/argument-number.js b/test/built-ins/Temporal/PlainDateTime/prototype/withPlainTime/argument-number.js index e37fbba82a..83caebba2b 100644 --- a/test/built-ins/Temporal/PlainDateTime/prototype/withPlainTime/argument-number.js +++ b/test/built-ins/Temporal/PlainDateTime/prototype/withPlainTime/argument-number.js @@ -20,6 +20,6 @@ for (const arg of numbers) { assert.throws( TypeError, () => instance.withPlainTime(arg), - "A number is not a valid ISO string for PlainTime" + `A number (${arg}) is not a valid ISO string for PlainTime` ); } diff --git a/test/built-ins/Temporal/PlainMonthDay/from/argument-number.js b/test/built-ins/Temporal/PlainMonthDay/from/argument-number.js index 47ece43883..4fd6810cfc 100644 --- a/test/built-ins/Temporal/PlainMonthDay/from/argument-number.js +++ b/test/built-ins/Temporal/PlainMonthDay/from/argument-number.js @@ -20,6 +20,6 @@ for (const arg of numbers) { assert.throws( TypeError, () => Temporal.PlainMonthDay.from(arg), - "A number is not a valid ISO string for PlainMonthDay" + `A number (${arg}) is not a valid ISO string for PlainMonthDay` ); } diff --git a/test/built-ins/Temporal/PlainMonthDay/prototype/equals/argument-number.js b/test/built-ins/Temporal/PlainMonthDay/prototype/equals/argument-number.js index 733cb81750..a2dd31dffd 100644 --- a/test/built-ins/Temporal/PlainMonthDay/prototype/equals/argument-number.js +++ b/test/built-ins/Temporal/PlainMonthDay/prototype/equals/argument-number.js @@ -20,6 +20,6 @@ for (const arg of numbers) { assert.throws( TypeError, () => instance.equals(arg), - "A number is not a valid ISO string for PlainMonthDay" + `A number (${arg}) is not a valid ISO string for PlainMonthDay` ); } diff --git a/test/built-ins/Temporal/PlainTime/compare/argument-number.js b/test/built-ins/Temporal/PlainTime/compare/argument-number.js index 810bb61784..8eb74201c5 100644 --- a/test/built-ins/Temporal/PlainTime/compare/argument-number.js +++ b/test/built-ins/Temporal/PlainTime/compare/argument-number.js @@ -18,11 +18,11 @@ for (const arg of numbers) { assert.throws( TypeError, () => Temporal.PlainTime.compare(arg, new Temporal.PlainTime(12, 34, 56, 987, 654, 321)), - "A number is not a valid ISO string for PlainTime (first argument)" + `A number (${arg}) is not a valid ISO string for PlainTime (first argument)` ); assert.throws( TypeError, () => Temporal.PlainTime.compare(new Temporal.PlainTime(12, 34, 56, 987, 654, 321), arg), - "A number is not a valid ISO string for PlainTime (second argument)" + `A number (${arg}) is not a valid ISO string for PlainTime (second argument)` ); } diff --git a/test/built-ins/Temporal/PlainTime/from/argument-number.js b/test/built-ins/Temporal/PlainTime/from/argument-number.js index 39f0a62fad..5a9c0dca6d 100644 --- a/test/built-ins/Temporal/PlainTime/from/argument-number.js +++ b/test/built-ins/Temporal/PlainTime/from/argument-number.js @@ -18,6 +18,6 @@ for (const arg of numbers) { assert.throws( TypeError, () => Temporal.PlainTime.from(arg), - "A number is not a valid ISO string for PlainTime" + `A number (${arg}) is not a valid ISO string for PlainTime` ); } diff --git a/test/built-ins/Temporal/PlainTime/prototype/equals/argument-number.js b/test/built-ins/Temporal/PlainTime/prototype/equals/argument-number.js index 57cf4f90be..af9532a65d 100644 --- a/test/built-ins/Temporal/PlainTime/prototype/equals/argument-number.js +++ b/test/built-ins/Temporal/PlainTime/prototype/equals/argument-number.js @@ -20,6 +20,6 @@ for (const arg of numbers) { assert.throws( TypeError, () => instance.equals(arg), - "A number is not a valid ISO string for PlainTime" + `A number (${arg}) is not a valid ISO string for PlainTime` ); } diff --git a/test/built-ins/Temporal/PlainTime/prototype/since/argument-number.js b/test/built-ins/Temporal/PlainTime/prototype/since/argument-number.js index 388013e0fe..46a381d8f7 100644 --- a/test/built-ins/Temporal/PlainTime/prototype/since/argument-number.js +++ b/test/built-ins/Temporal/PlainTime/prototype/since/argument-number.js @@ -20,6 +20,6 @@ for (const arg of numbers) { assert.throws( TypeError, () => instance.since(arg), - "A number is not a valid ISO string for PlainTime" + `A number (${arg}) is not a valid ISO string for PlainTime` ); } diff --git a/test/built-ins/Temporal/PlainTime/prototype/until/argument-number.js b/test/built-ins/Temporal/PlainTime/prototype/until/argument-number.js index fc277bd86f..e08a86abb0 100644 --- a/test/built-ins/Temporal/PlainTime/prototype/until/argument-number.js +++ b/test/built-ins/Temporal/PlainTime/prototype/until/argument-number.js @@ -20,6 +20,6 @@ for (const arg of numbers) { assert.throws( TypeError, () => instance.until(arg), - "A number is not a valid ISO string for PlainTime" + `A number (${arg}) is not a valid ISO string for PlainTime` ); } diff --git a/test/built-ins/Temporal/PlainYearMonth/compare/argument-number.js b/test/built-ins/Temporal/PlainYearMonth/compare/argument-number.js index 007d8625a3..6115b92445 100644 --- a/test/built-ins/Temporal/PlainYearMonth/compare/argument-number.js +++ b/test/built-ins/Temporal/PlainYearMonth/compare/argument-number.js @@ -20,11 +20,11 @@ for (const arg of numbers) { assert.throws( TypeError, () => Temporal.PlainYearMonth.compare(arg, new Temporal.PlainYearMonth(2019, 6)), - "A number is not a valid ISO string for PlainYearMonth (first argument)" + `A number (${arg}) is not a valid ISO string for PlainYearMonth (first argument)` ); assert.throws( TypeError, () => Temporal.PlainYearMonth.compare(new Temporal.PlainYearMonth(2019, 6), arg), - "A number is not a valid ISO string for PlainYearMonth (first argument)" + `A number (${arg}) is not a valid ISO string for PlainYearMonth (first argument)` ); } diff --git a/test/built-ins/Temporal/PlainYearMonth/from/argument-number.js b/test/built-ins/Temporal/PlainYearMonth/from/argument-number.js index 1f4a6fd21f..419296b2ac 100644 --- a/test/built-ins/Temporal/PlainYearMonth/from/argument-number.js +++ b/test/built-ins/Temporal/PlainYearMonth/from/argument-number.js @@ -18,6 +18,6 @@ for (const arg of numbers) { assert.throws( TypeError, () => Temporal.PlainYearMonth.from(arg), - "A number is not a valid ISO string for PlainYearMonth" + `A number (${arg}) is not a valid ISO string for PlainYearMonth` ); } diff --git a/test/built-ins/Temporal/PlainYearMonth/prototype/equals/argument-number.js b/test/built-ins/Temporal/PlainYearMonth/prototype/equals/argument-number.js index d60992631d..75fe07e88c 100644 --- a/test/built-ins/Temporal/PlainYearMonth/prototype/equals/argument-number.js +++ b/test/built-ins/Temporal/PlainYearMonth/prototype/equals/argument-number.js @@ -20,6 +20,6 @@ for (const arg of numbers) { assert.throws( TypeError, () => instance.equals(arg), - "A number is not a valid ISO string for PlainYearMonth" + `A number (${arg}) is not a valid ISO string for PlainYearMonth` ); } diff --git a/test/built-ins/Temporal/PlainYearMonth/prototype/since/argument-number.js b/test/built-ins/Temporal/PlainYearMonth/prototype/since/argument-number.js index b47721c158..64212155bb 100644 --- a/test/built-ins/Temporal/PlainYearMonth/prototype/since/argument-number.js +++ b/test/built-ins/Temporal/PlainYearMonth/prototype/since/argument-number.js @@ -20,6 +20,6 @@ for (const arg of numbers) { assert.throws( TypeError, () => instance.since(arg), - "A number is not a valid ISO string for PlainYearMonth" + `A number (${arg}) is not a valid ISO string for PlainYearMonth` ); } diff --git a/test/built-ins/Temporal/PlainYearMonth/prototype/until/argument-number.js b/test/built-ins/Temporal/PlainYearMonth/prototype/until/argument-number.js index 5e1c73b1e4..096634b8e4 100644 --- a/test/built-ins/Temporal/PlainYearMonth/prototype/until/argument-number.js +++ b/test/built-ins/Temporal/PlainYearMonth/prototype/until/argument-number.js @@ -20,6 +20,6 @@ for (const arg of numbers) { assert.throws( TypeError, () => instance.until(arg), - "A number is not a valid ISO string for PlainYearMonth" + `A number (${arg}) is not a valid ISO string for PlainYearMonth` ); } diff --git a/test/built-ins/Temporal/TimeZone/prototype/getInstantFor/argument-number.js b/test/built-ins/Temporal/TimeZone/prototype/getInstantFor/argument-number.js index b408a00f74..8b27f0df8f 100644 --- a/test/built-ins/Temporal/TimeZone/prototype/getInstantFor/argument-number.js +++ b/test/built-ins/Temporal/TimeZone/prototype/getInstantFor/argument-number.js @@ -20,6 +20,6 @@ for (const arg of numbers) { assert.throws( TypeError, () => instance.getInstantFor(arg), - "A number is not a valid ISO string for PlainDateTime" + `A number (${arg}) is not a valid ISO string for PlainDateTime` ); } diff --git a/test/built-ins/Temporal/TimeZone/prototype/getPossibleInstantsFor/argument-number.js b/test/built-ins/Temporal/TimeZone/prototype/getPossibleInstantsFor/argument-number.js index 1fcf44f0a9..306b3f24fe 100644 --- a/test/built-ins/Temporal/TimeZone/prototype/getPossibleInstantsFor/argument-number.js +++ b/test/built-ins/Temporal/TimeZone/prototype/getPossibleInstantsFor/argument-number.js @@ -20,6 +20,6 @@ for (const arg of numbers) { assert.throws( TypeError, () => instance.getPossibleInstantsFor(arg), - "A number is not a valid ISO string for PlainDateTime" + `A number (${arg}) is not a valid ISO string for PlainDateTime` ); } diff --git a/test/built-ins/Temporal/ZonedDateTime/from/zoneddatetime-string-multiple-offsets.js b/test/built-ins/Temporal/ZonedDateTime/from/zoneddatetime-string-multiple-offsets.js index c2f53b2a3e..90c1ea58ba 100644 --- a/test/built-ins/Temporal/ZonedDateTime/from/zoneddatetime-string-multiple-offsets.js +++ b/test/built-ins/Temporal/ZonedDateTime/from/zoneddatetime-string-multiple-offsets.js @@ -10,7 +10,7 @@ features: [Temporal] let str = "1970-01-01T01:35:30+01:35:00.000000000[+01:35]"; const result = Temporal.ZonedDateTime.from(str); -assert.sameValue(result.timeZoneId, "+01:35", "Time zone determined from bracket name"); +assert.sameValue(result.timeZoneId, "+01:35", "ISO offset, sub-minute offset trailing-zeroes"); str = "1970-01-01T01:35:30+01:35:00.000000000[+01:35:00.000000000]"; assert.throws( diff --git a/test/built-ins/Temporal/ZonedDateTime/prototype/equals/zoneddatetime-string-multiple-offsets.js b/test/built-ins/Temporal/ZonedDateTime/prototype/equals/zoneddatetime-string-multiple-offsets.js index 6af0737c75..72686fb969 100644 --- a/test/built-ins/Temporal/ZonedDateTime/prototype/equals/zoneddatetime-string-multiple-offsets.js +++ b/test/built-ins/Temporal/ZonedDateTime/prototype/equals/zoneddatetime-string-multiple-offsets.js @@ -12,7 +12,7 @@ const instance = new Temporal.ZonedDateTime(0n, timeZone); let str = "1970-01-01T01:35:30+01:35:00.000000000[+01:35]"; const result = instance.equals(str); -assert.sameValue(result, false, "Time zone determined from bracket name"); +assert.sameValue(result, false, "ISO offset, sub-minute offset trailing-zeroes"); str = "1970-01-01T01:35:30+01:35:00.000000000[+01:35:00.000000000]"; assert.throws( diff --git a/test/built-ins/Temporal/ZonedDateTime/prototype/withPlainTime/argument-number.js b/test/built-ins/Temporal/ZonedDateTime/prototype/withPlainTime/argument-number.js index a5fb985982..08a4a3109f 100644 --- a/test/built-ins/Temporal/ZonedDateTime/prototype/withPlainTime/argument-number.js +++ b/test/built-ins/Temporal/ZonedDateTime/prototype/withPlainTime/argument-number.js @@ -20,6 +20,6 @@ for (const arg of numbers) { assert.throws( TypeError, () => instance.withPlainTime(arg), - "A number is not a valid ISO string for PlainTime" + `A number (${arg}) is not a valid ISO string for PlainTime` ); }