From 9c4aed29b78106725306f5485b97f0ae4634278e Mon Sep 17 00:00:00 2001 From: Philip Chimento Date: Fri, 9 Sep 2022 10:19:57 -0700 Subject: [PATCH] Temporal: Remove now-valid rounding modes from roundingmode-invalid-string tests See https://github.com/tc39/proposal-temporal/pull/2262, which reached consensus in the July 2022 TC39 meeting. This change added several rounding modes from the NumberFormat V3 proposal, some of which were listed as invalid in the roundingmode-invalid-string tests. Remove these items from the list of invalid modes, since they are no longer invalid. --- .../Duration/prototype/round/roundingmode-invalid-string.js | 2 +- .../Duration/prototype/toString/roundingmode-invalid-string.js | 2 +- .../Instant/prototype/round/roundingmode-invalid-string.js | 2 +- .../Instant/prototype/since/roundingmode-invalid-string.js | 2 +- .../Instant/prototype/toString/roundingmode-invalid-string.js | 2 +- .../Instant/prototype/until/roundingmode-invalid-string.js | 2 +- .../PlainDate/prototype/since/roundingmode-invalid-string.js | 2 +- .../PlainDate/prototype/until/roundingmode-invalid-string.js | 2 +- .../prototype/round/roundingmode-invalid-string.js | 2 +- .../prototype/since/roundingmode-invalid-string.js | 2 +- .../prototype/toString/roundingmode-invalid-string.js | 2 +- .../prototype/until/roundingmode-invalid-string.js | 2 +- .../PlainTime/prototype/round/roundingmode-invalid-string.js | 2 +- .../PlainTime/prototype/since/roundingmode-invalid-string.js | 2 +- .../PlainTime/prototype/toString/roundingmode-invalid-string.js | 2 +- .../PlainTime/prototype/until/roundingmode-invalid-string.js | 2 +- .../prototype/since/roundingmode-invalid-string.js | 2 +- .../prototype/until/roundingmode-invalid-string.js | 2 +- .../prototype/round/roundingmode-invalid-string.js | 2 +- .../prototype/since/roundingmode-invalid-string.js | 2 +- .../prototype/toString/roundingmode-invalid-string.js | 2 +- .../prototype/until/roundingmode-invalid-string.js | 2 +- 22 files changed, 22 insertions(+), 22 deletions(-) diff --git a/test/built-ins/Temporal/Duration/prototype/round/roundingmode-invalid-string.js b/test/built-ins/Temporal/Duration/prototype/round/roundingmode-invalid-string.js index e895dd70f0..1d4035489e 100644 --- a/test/built-ins/Temporal/Duration/prototype/round/roundingmode-invalid-string.js +++ b/test/built-ins/Temporal/Duration/prototype/round/roundingmode-invalid-string.js @@ -8,6 +8,6 @@ features: [Temporal] ---*/ const duration = new Temporal.Duration(0, 0, 0, 0, 12, 34, 56, 123, 987, 500); -for (const roundingMode of ["other string", "cile", "CEIL", "ce\u0131l", "auto", "expand", "halfCeil", "halfFloor", "halfTrunc", "halfEven", "halfexpand", "floor\0"]) { +for (const roundingMode of ["other string", "cile", "CEIL", "ce\u0131l", "auto", "halfexpand", "floor\0"]) { assert.throws(RangeError, () => duration.round({ smallestUnit: "microsecond", roundingMode })); } diff --git a/test/built-ins/Temporal/Duration/prototype/toString/roundingmode-invalid-string.js b/test/built-ins/Temporal/Duration/prototype/toString/roundingmode-invalid-string.js index f1015122ce..f7792f5381 100644 --- a/test/built-ins/Temporal/Duration/prototype/toString/roundingmode-invalid-string.js +++ b/test/built-ins/Temporal/Duration/prototype/toString/roundingmode-invalid-string.js @@ -8,6 +8,6 @@ features: [Temporal] ---*/ const duration = new Temporal.Duration(0, 0, 0, 0, 12, 34, 56, 123, 987, 500); -for (const roundingMode of ["other string", "cile", "CEIL", "ce\u0131l", "auto", "expand", "halfCeil", "halfFloor", "halfTrunc", "halfEven", "halfexpand", "floor\0"]) { +for (const roundingMode of ["other string", "cile", "CEIL", "ce\u0131l", "auto", "halfexpand", "floor\0"]) { assert.throws(RangeError, () => duration.toString({ smallestUnit: "microsecond", roundingMode })); } diff --git a/test/built-ins/Temporal/Instant/prototype/round/roundingmode-invalid-string.js b/test/built-ins/Temporal/Instant/prototype/round/roundingmode-invalid-string.js index a826b1e72e..5026ecad96 100644 --- a/test/built-ins/Temporal/Instant/prototype/round/roundingmode-invalid-string.js +++ b/test/built-ins/Temporal/Instant/prototype/round/roundingmode-invalid-string.js @@ -8,6 +8,6 @@ features: [Temporal] ---*/ const instant = new Temporal.Instant(1_000_000_000_123_987_500n); -for (const roundingMode of ["other string", "cile", "CEIL", "ce\u0131l", "auto", "expand", "halfCeil", "halfFloor", "halfTrunc", "halfEven", "halfexpand", "floor\0"]) { +for (const roundingMode of ["other string", "cile", "CEIL", "ce\u0131l", "auto", "halfexpand", "floor\0"]) { assert.throws(RangeError, () => instant.round({ smallestUnit: "microsecond", roundingMode })); } diff --git a/test/built-ins/Temporal/Instant/prototype/since/roundingmode-invalid-string.js b/test/built-ins/Temporal/Instant/prototype/since/roundingmode-invalid-string.js index 27771f28e8..c43346f52b 100644 --- a/test/built-ins/Temporal/Instant/prototype/since/roundingmode-invalid-string.js +++ b/test/built-ins/Temporal/Instant/prototype/since/roundingmode-invalid-string.js @@ -9,6 +9,6 @@ features: [Temporal] const earlier = new Temporal.Instant(1_000_000_000_000_000_000n); const later = new Temporal.Instant(1_000_090_061_123_987_500n); -for (const roundingMode of ["other string", "cile", "CEIL", "ce\u0131l", "auto", "expand", "halfCeil", "halfFloor", "halfTrunc", "halfEven", "halfexpand", "floor\0"]) { +for (const roundingMode of ["other string", "cile", "CEIL", "ce\u0131l", "auto", "halfexpand", "floor\0"]) { assert.throws(RangeError, () => later.since(earlier, { smallestUnit: "microsecond", roundingMode })); } diff --git a/test/built-ins/Temporal/Instant/prototype/toString/roundingmode-invalid-string.js b/test/built-ins/Temporal/Instant/prototype/toString/roundingmode-invalid-string.js index 6bff72f3b3..9836da0958 100644 --- a/test/built-ins/Temporal/Instant/prototype/toString/roundingmode-invalid-string.js +++ b/test/built-ins/Temporal/Instant/prototype/toString/roundingmode-invalid-string.js @@ -8,6 +8,6 @@ features: [Temporal] ---*/ const instant = new Temporal.Instant(1_000_000_000_123_987_500n); -for (const roundingMode of ["other string", "cile", "CEIL", "ce\u0131l", "auto", "expand", "halfCeil", "halfFloor", "halfTrunc", "halfEven", "halfexpand", "floor\0"]) { +for (const roundingMode of ["other string", "cile", "CEIL", "ce\u0131l", "auto", "halfexpand", "floor\0"]) { assert.throws(RangeError, () => instant.toString({ smallestUnit: "microsecond", roundingMode })); } diff --git a/test/built-ins/Temporal/Instant/prototype/until/roundingmode-invalid-string.js b/test/built-ins/Temporal/Instant/prototype/until/roundingmode-invalid-string.js index 82a212cafd..f27f7f3c4c 100644 --- a/test/built-ins/Temporal/Instant/prototype/until/roundingmode-invalid-string.js +++ b/test/built-ins/Temporal/Instant/prototype/until/roundingmode-invalid-string.js @@ -9,6 +9,6 @@ features: [Temporal] const earlier = new Temporal.Instant(1_000_000_000_000_000_000n); const later = new Temporal.Instant(1_000_090_061_123_987_500n); -for (const roundingMode of ["other string", "cile", "CEIL", "ce\u0131l", "auto", "expand", "halfCeil", "halfFloor", "halfTrunc", "halfEven", "halfexpand", "floor\0"]) { +for (const roundingMode of ["other string", "cile", "CEIL", "ce\u0131l", "auto", "halfexpand", "floor\0"]) { assert.throws(RangeError, () => earlier.until(later, { smallestUnit: "microsecond", roundingMode })); } diff --git a/test/built-ins/Temporal/PlainDate/prototype/since/roundingmode-invalid-string.js b/test/built-ins/Temporal/PlainDate/prototype/since/roundingmode-invalid-string.js index 8aeeb56734..4977472469 100644 --- a/test/built-ins/Temporal/PlainDate/prototype/since/roundingmode-invalid-string.js +++ b/test/built-ins/Temporal/PlainDate/prototype/since/roundingmode-invalid-string.js @@ -9,6 +9,6 @@ features: [Temporal] const earlier = new Temporal.PlainDate(2000, 5, 2); const later = new Temporal.PlainDate(2001, 6, 3); -for (const roundingMode of ["other string", "cile", "CEIL", "ce\u0131l", "auto", "expand", "halfCeil", "halfFloor", "halfTrunc", "halfEven", "halfexpand", "floor\0"]) { +for (const roundingMode of ["other string", "cile", "CEIL", "ce\u0131l", "auto", "halfexpand", "floor\0"]) { assert.throws(RangeError, () => later.since(earlier, { smallestUnit: "microsecond", roundingMode })); } diff --git a/test/built-ins/Temporal/PlainDate/prototype/until/roundingmode-invalid-string.js b/test/built-ins/Temporal/PlainDate/prototype/until/roundingmode-invalid-string.js index 9139e8c151..e3bcf1009d 100644 --- a/test/built-ins/Temporal/PlainDate/prototype/until/roundingmode-invalid-string.js +++ b/test/built-ins/Temporal/PlainDate/prototype/until/roundingmode-invalid-string.js @@ -9,6 +9,6 @@ features: [Temporal] const earlier = new Temporal.PlainDate(2000, 5, 2); const later = new Temporal.PlainDate(2001, 6, 3); -for (const roundingMode of ["other string", "cile", "CEIL", "ce\u0131l", "auto", "expand", "halfCeil", "halfFloor", "halfTrunc", "halfEven", "halfexpand", "floor\0"]) { +for (const roundingMode of ["other string", "cile", "CEIL", "ce\u0131l", "auto", "halfexpand", "floor\0"]) { assert.throws(RangeError, () => earlier.until(later, { smallestUnit: "microsecond", roundingMode })); } diff --git a/test/built-ins/Temporal/PlainDateTime/prototype/round/roundingmode-invalid-string.js b/test/built-ins/Temporal/PlainDateTime/prototype/round/roundingmode-invalid-string.js index 1a231aad4c..d3bb342bc2 100644 --- a/test/built-ins/Temporal/PlainDateTime/prototype/round/roundingmode-invalid-string.js +++ b/test/built-ins/Temporal/PlainDateTime/prototype/round/roundingmode-invalid-string.js @@ -8,6 +8,6 @@ features: [Temporal] ---*/ const datetime = new Temporal.PlainDateTime(2000, 5, 2, 12, 34, 56, 123, 987, 500); -for (const roundingMode of ["other string", "cile", "CEIL", "ce\u0131l", "auto", "expand", "halfCeil", "halfFloor", "halfTrunc", "halfEven", "halfexpand", "floor\0"]) { +for (const roundingMode of ["other string", "cile", "CEIL", "ce\u0131l", "auto", "halfexpand", "floor\0"]) { assert.throws(RangeError, () => datetime.round({ smallestUnit: "microsecond", roundingMode })); } diff --git a/test/built-ins/Temporal/PlainDateTime/prototype/since/roundingmode-invalid-string.js b/test/built-ins/Temporal/PlainDateTime/prototype/since/roundingmode-invalid-string.js index 52f4b8fe3b..e03a49b93e 100644 --- a/test/built-ins/Temporal/PlainDateTime/prototype/since/roundingmode-invalid-string.js +++ b/test/built-ins/Temporal/PlainDateTime/prototype/since/roundingmode-invalid-string.js @@ -9,6 +9,6 @@ features: [Temporal] const earlier = new Temporal.PlainDateTime(2000, 5, 2, 12, 34, 56, 0, 0, 0); const later = new Temporal.PlainDateTime(2000, 5, 3, 13, 35, 57, 123, 987, 500); -for (const roundingMode of ["other string", "cile", "CEIL", "ce\u0131l", "auto", "expand", "halfCeil", "halfFloor", "halfTrunc", "halfEven", "halfexpand", "floor\0"]) { +for (const roundingMode of ["other string", "cile", "CEIL", "ce\u0131l", "auto", "halfexpand", "floor\0"]) { assert.throws(RangeError, () => later.since(earlier, { smallestUnit: "microsecond", roundingMode })); } diff --git a/test/built-ins/Temporal/PlainDateTime/prototype/toString/roundingmode-invalid-string.js b/test/built-ins/Temporal/PlainDateTime/prototype/toString/roundingmode-invalid-string.js index bc2e1e2c4a..efb96f17fb 100644 --- a/test/built-ins/Temporal/PlainDateTime/prototype/toString/roundingmode-invalid-string.js +++ b/test/built-ins/Temporal/PlainDateTime/prototype/toString/roundingmode-invalid-string.js @@ -8,6 +8,6 @@ features: [Temporal] ---*/ const datetime = new Temporal.PlainDateTime(2000, 5, 2, 12, 34, 56, 123, 987, 500); -for (const roundingMode of ["other string", "cile", "CEIL", "ce\u0131l", "auto", "expand", "halfCeil", "halfFloor", "halfTrunc", "halfEven", "halfexpand", "floor\0"]) { +for (const roundingMode of ["other string", "cile", "CEIL", "ce\u0131l", "auto", "halfexpand", "floor\0"]) { assert.throws(RangeError, () => datetime.toString({ smallestUnit: "microsecond", roundingMode })); } diff --git a/test/built-ins/Temporal/PlainDateTime/prototype/until/roundingmode-invalid-string.js b/test/built-ins/Temporal/PlainDateTime/prototype/until/roundingmode-invalid-string.js index 47455e7a19..721116ba97 100644 --- a/test/built-ins/Temporal/PlainDateTime/prototype/until/roundingmode-invalid-string.js +++ b/test/built-ins/Temporal/PlainDateTime/prototype/until/roundingmode-invalid-string.js @@ -9,6 +9,6 @@ features: [Temporal] const earlier = new Temporal.PlainDateTime(2000, 5, 2, 12, 34, 56, 0, 0, 0); const later = new Temporal.PlainDateTime(2000, 5, 3, 13, 35, 57, 123, 987, 500); -for (const roundingMode of ["other string", "cile", "CEIL", "ce\u0131l", "auto", "expand", "halfCeil", "halfFloor", "halfTrunc", "halfEven", "halfexpand", "floor\0"]) { +for (const roundingMode of ["other string", "cile", "CEIL", "ce\u0131l", "auto", "halfexpand", "floor\0"]) { assert.throws(RangeError, () => earlier.until(later, { smallestUnit: "microsecond", roundingMode })); } diff --git a/test/built-ins/Temporal/PlainTime/prototype/round/roundingmode-invalid-string.js b/test/built-ins/Temporal/PlainTime/prototype/round/roundingmode-invalid-string.js index ba3fa48a7e..d42e651d4e 100644 --- a/test/built-ins/Temporal/PlainTime/prototype/round/roundingmode-invalid-string.js +++ b/test/built-ins/Temporal/PlainTime/prototype/round/roundingmode-invalid-string.js @@ -8,6 +8,6 @@ features: [Temporal] ---*/ const time = new Temporal.PlainTime(12, 34, 56, 123, 987, 500); -for (const roundingMode of ["other string", "cile", "CEIL", "ce\u0131l", "auto", "expand", "halfCeil", "halfFloor", "halfTrunc", "halfEven", "halfexpand", "floor\0"]) { +for (const roundingMode of ["other string", "cile", "CEIL", "ce\u0131l", "auto", "halfexpand", "floor\0"]) { assert.throws(RangeError, () => time.round({ smallestUnit: "microsecond", roundingMode })); } diff --git a/test/built-ins/Temporal/PlainTime/prototype/since/roundingmode-invalid-string.js b/test/built-ins/Temporal/PlainTime/prototype/since/roundingmode-invalid-string.js index 623d946371..5bc78c8fa7 100644 --- a/test/built-ins/Temporal/PlainTime/prototype/since/roundingmode-invalid-string.js +++ b/test/built-ins/Temporal/PlainTime/prototype/since/roundingmode-invalid-string.js @@ -9,6 +9,6 @@ features: [Temporal] const earlier = new Temporal.PlainTime(12, 34, 56, 0, 0, 0); const later = new Temporal.PlainTime(13, 35, 57, 123, 987, 500); -for (const roundingMode of ["other string", "cile", "CEIL", "ce\u0131l", "auto", "expand", "halfCeil", "halfFloor", "halfTrunc", "halfEven", "halfexpand", "floor\0"]) { +for (const roundingMode of ["other string", "cile", "CEIL", "ce\u0131l", "auto", "halfexpand", "floor\0"]) { assert.throws(RangeError, () => later.since(earlier, { smallestUnit: "microsecond", roundingMode })); } diff --git a/test/built-ins/Temporal/PlainTime/prototype/toString/roundingmode-invalid-string.js b/test/built-ins/Temporal/PlainTime/prototype/toString/roundingmode-invalid-string.js index c66d624740..668520aa65 100644 --- a/test/built-ins/Temporal/PlainTime/prototype/toString/roundingmode-invalid-string.js +++ b/test/built-ins/Temporal/PlainTime/prototype/toString/roundingmode-invalid-string.js @@ -8,6 +8,6 @@ features: [Temporal] ---*/ const time = new Temporal.PlainTime(12, 34, 56, 123, 987, 500); -for (const roundingMode of ["other string", "cile", "CEIL", "ce\u0131l", "auto", "expand", "halfCeil", "halfFloor", "halfTrunc", "halfEven", "halfexpand", "floor\0"]) { +for (const roundingMode of ["other string", "cile", "CEIL", "ce\u0131l", "auto", "halfexpand", "floor\0"]) { assert.throws(RangeError, () => time.toString({ smallestUnit: "microsecond", roundingMode })); } diff --git a/test/built-ins/Temporal/PlainTime/prototype/until/roundingmode-invalid-string.js b/test/built-ins/Temporal/PlainTime/prototype/until/roundingmode-invalid-string.js index 1b2aa526d1..a5d598c7f4 100644 --- a/test/built-ins/Temporal/PlainTime/prototype/until/roundingmode-invalid-string.js +++ b/test/built-ins/Temporal/PlainTime/prototype/until/roundingmode-invalid-string.js @@ -9,6 +9,6 @@ features: [Temporal] const earlier = new Temporal.PlainTime(12, 34, 56, 0, 0, 0); const later = new Temporal.PlainTime(13, 35, 57, 123, 987, 500); -for (const roundingMode of ["other string", "cile", "CEIL", "ce\u0131l", "auto", "expand", "halfCeil", "halfFloor", "halfTrunc", "halfEven", "halfexpand", "floor\0"]) { +for (const roundingMode of ["other string", "cile", "CEIL", "ce\u0131l", "auto", "halfexpand", "floor\0"]) { assert.throws(RangeError, () => earlier.until(later, { smallestUnit: "microsecond", roundingMode })); } diff --git a/test/built-ins/Temporal/PlainYearMonth/prototype/since/roundingmode-invalid-string.js b/test/built-ins/Temporal/PlainYearMonth/prototype/since/roundingmode-invalid-string.js index ae3e9de8e3..b93b5deebf 100644 --- a/test/built-ins/Temporal/PlainYearMonth/prototype/since/roundingmode-invalid-string.js +++ b/test/built-ins/Temporal/PlainYearMonth/prototype/since/roundingmode-invalid-string.js @@ -9,6 +9,6 @@ features: [Temporal] const earlier = new Temporal.PlainYearMonth(2000, 5); const later = new Temporal.PlainYearMonth(2001, 6); -for (const roundingMode of ["other string", "cile", "CEIL", "ce\u0131l", "auto", "expand", "halfCeil", "halfFloor", "halfTrunc", "halfEven", "halfexpand", "floor\0"]) { +for (const roundingMode of ["other string", "cile", "CEIL", "ce\u0131l", "auto", "halfexpand", "floor\0"]) { assert.throws(RangeError, () => later.since(earlier, { smallestUnit: "microsecond", roundingMode })); } diff --git a/test/built-ins/Temporal/PlainYearMonth/prototype/until/roundingmode-invalid-string.js b/test/built-ins/Temporal/PlainYearMonth/prototype/until/roundingmode-invalid-string.js index d5f8d9884f..94339dbe09 100644 --- a/test/built-ins/Temporal/PlainYearMonth/prototype/until/roundingmode-invalid-string.js +++ b/test/built-ins/Temporal/PlainYearMonth/prototype/until/roundingmode-invalid-string.js @@ -9,6 +9,6 @@ features: [Temporal] const earlier = new Temporal.PlainYearMonth(2000, 5); const later = new Temporal.PlainYearMonth(2001, 6); -for (const roundingMode of ["other string", "cile", "CEIL", "ce\u0131l", "auto", "expand", "halfCeil", "halfFloor", "halfTrunc", "halfEven", "halfexpand", "floor\0"]) { +for (const roundingMode of ["other string", "cile", "CEIL", "ce\u0131l", "auto", "halfexpand", "floor\0"]) { assert.throws(RangeError, () => earlier.until(later, { smallestUnit: "microsecond", roundingMode })); } diff --git a/test/built-ins/Temporal/ZonedDateTime/prototype/round/roundingmode-invalid-string.js b/test/built-ins/Temporal/ZonedDateTime/prototype/round/roundingmode-invalid-string.js index b5b58bc40d..980636199f 100644 --- a/test/built-ins/Temporal/ZonedDateTime/prototype/round/roundingmode-invalid-string.js +++ b/test/built-ins/Temporal/ZonedDateTime/prototype/round/roundingmode-invalid-string.js @@ -8,6 +8,6 @@ features: [Temporal] ---*/ const datetime = new Temporal.ZonedDateTime(1_000_000_000_123_987_500n, "UTC"); -for (const roundingMode of ["other string", "cile", "CEIL", "ce\u0131l", "auto", "expand", "halfCeil", "halfFloor", "halfTrunc", "halfEven", "halfexpand", "floor\0"]) { +for (const roundingMode of ["other string", "cile", "CEIL", "ce\u0131l", "auto", "halfexpand", "floor\0"]) { assert.throws(RangeError, () => datetime.round({ smallestUnit: "microsecond", roundingMode })); } diff --git a/test/built-ins/Temporal/ZonedDateTime/prototype/since/roundingmode-invalid-string.js b/test/built-ins/Temporal/ZonedDateTime/prototype/since/roundingmode-invalid-string.js index c749232dcd..9433755af6 100644 --- a/test/built-ins/Temporal/ZonedDateTime/prototype/since/roundingmode-invalid-string.js +++ b/test/built-ins/Temporal/ZonedDateTime/prototype/since/roundingmode-invalid-string.js @@ -9,6 +9,6 @@ features: [Temporal] const earlier = new Temporal.ZonedDateTime(1_000_000_000_000_000_000n, "UTC"); const later = new Temporal.ZonedDateTime(1_000_090_061_123_987_500n, "UTC"); -for (const roundingMode of ["other string", "cile", "CEIL", "ce\u0131l", "auto", "expand", "halfCeil", "halfFloor", "halfTrunc", "halfEven", "halfexpand", "floor\0"]) { +for (const roundingMode of ["other string", "cile", "CEIL", "ce\u0131l", "auto", "halfexpand", "floor\0"]) { assert.throws(RangeError, () => later.since(earlier, { smallestUnit: "microsecond", roundingMode })); } diff --git a/test/built-ins/Temporal/ZonedDateTime/prototype/toString/roundingmode-invalid-string.js b/test/built-ins/Temporal/ZonedDateTime/prototype/toString/roundingmode-invalid-string.js index 50b223237c..b83be4d491 100644 --- a/test/built-ins/Temporal/ZonedDateTime/prototype/toString/roundingmode-invalid-string.js +++ b/test/built-ins/Temporal/ZonedDateTime/prototype/toString/roundingmode-invalid-string.js @@ -8,6 +8,6 @@ features: [Temporal] ---*/ const datetime = new Temporal.ZonedDateTime(1_000_000_000_123_987_500n, "UTC"); -for (const roundingMode of ["other string", "cile", "CEIL", "ce\u0131l", "auto", "expand", "halfCeil", "halfFloor", "halfTrunc", "halfEven", "halfexpand", "floor\0"]) { +for (const roundingMode of ["other string", "cile", "CEIL", "ce\u0131l", "auto", "halfexpand", "floor\0"]) { assert.throws(RangeError, () => datetime.toString({ smallestUnit: "microsecond", roundingMode })); } diff --git a/test/built-ins/Temporal/ZonedDateTime/prototype/until/roundingmode-invalid-string.js b/test/built-ins/Temporal/ZonedDateTime/prototype/until/roundingmode-invalid-string.js index 3cedb0046d..4a353d4127 100644 --- a/test/built-ins/Temporal/ZonedDateTime/prototype/until/roundingmode-invalid-string.js +++ b/test/built-ins/Temporal/ZonedDateTime/prototype/until/roundingmode-invalid-string.js @@ -9,6 +9,6 @@ features: [Temporal] const earlier = new Temporal.ZonedDateTime(1_000_000_000_000_000_000n, "UTC"); const later = new Temporal.ZonedDateTime(1_000_090_061_123_987_500n, "UTC"); -for (const roundingMode of ["other string", "cile", "CEIL", "ce\u0131l", "auto", "expand", "halfCeil", "halfFloor", "halfTrunc", "halfEven", "halfexpand", "floor\0"]) { +for (const roundingMode of ["other string", "cile", "CEIL", "ce\u0131l", "auto", "halfexpand", "floor\0"]) { assert.throws(RangeError, () => earlier.until(later, { smallestUnit: "microsecond", roundingMode })); }