From 8565eea8be06eee720b9af42235d1ecf5df0dc5f Mon Sep 17 00:00:00 2001 From: Philip Chimento Date: Fri, 9 Sep 2022 14:54:53 -0700 Subject: [PATCH] Temporal: Test tiebreaker rounding modes more thoroughly The "half___" modes all round to the nearest increment except when there is a tie. The previous tests didn't test rounding in the case of any ties (except for .toString()) so here we use some different numbers in which there is a tie, in order to make tests where the "half___" modes are more thoroughly tested. See https://github.com/tc39/proposal-temporal/pull/2262 which added new rounding modes from NumberFormat V3. --- .../Duration/prototype/round/roundingmode-ceil.js | 6 +++--- .../Duration/prototype/round/roundingmode-expand.js | 6 +++--- .../Duration/prototype/round/roundingmode-floor.js | 6 +++--- .../Duration/prototype/round/roundingmode-halfCeil.js | 6 +++--- .../Duration/prototype/round/roundingmode-halfEven.js | 6 +++--- .../Duration/prototype/round/roundingmode-halfExpand.js | 6 +++--- .../Duration/prototype/round/roundingmode-halfFloor.js | 6 +++--- .../Duration/prototype/round/roundingmode-halfTrunc.js | 6 +++--- .../Duration/prototype/round/roundingmode-trunc.js | 6 +++--- .../Temporal/Instant/prototype/round/roundingmode-ceil.js | 6 +++--- .../Instant/prototype/round/roundingmode-expand.js | 6 +++--- .../Instant/prototype/round/roundingmode-floor.js | 6 +++--- .../Instant/prototype/round/roundingmode-halfCeil.js | 8 ++++---- .../Instant/prototype/round/roundingmode-halfEven.js | 8 ++++---- .../Instant/prototype/round/roundingmode-halfExpand.js | 8 ++++---- .../Instant/prototype/round/roundingmode-halfFloor.js | 8 ++++---- .../Instant/prototype/round/roundingmode-halfTrunc.js | 8 ++++---- .../Instant/prototype/round/roundingmode-trunc.js | 6 +++--- .../Temporal/Instant/prototype/since/roundingmode-ceil.js | 6 +++--- .../Instant/prototype/since/roundingmode-expand.js | 6 +++--- .../Instant/prototype/since/roundingmode-floor.js | 6 +++--- .../Instant/prototype/since/roundingmode-halfCeil.js | 8 ++++---- .../Instant/prototype/since/roundingmode-halfEven.js | 8 ++++---- .../Instant/prototype/since/roundingmode-halfExpand.js | 8 ++++---- .../Instant/prototype/since/roundingmode-halfFloor.js | 8 ++++---- .../Instant/prototype/since/roundingmode-halfTrunc.js | 6 +++--- .../Instant/prototype/since/roundingmode-trunc.js | 6 +++--- .../Temporal/Instant/prototype/until/roundingmode-ceil.js | 6 +++--- .../Instant/prototype/until/roundingmode-expand.js | 6 +++--- .../Instant/prototype/until/roundingmode-floor.js | 6 +++--- .../Instant/prototype/until/roundingmode-halfCeil.js | 8 ++++---- .../Instant/prototype/until/roundingmode-halfEven.js | 8 ++++---- .../Instant/prototype/until/roundingmode-halfExpand.js | 8 ++++---- .../Instant/prototype/until/roundingmode-halfFloor.js | 8 ++++---- .../Instant/prototype/until/roundingmode-halfTrunc.js | 6 +++--- .../Instant/prototype/until/roundingmode-trunc.js | 6 +++--- .../PlainDateTime/prototype/round/roundingmode-ceil.js | 6 +++--- .../PlainDateTime/prototype/round/roundingmode-expand.js | 6 +++--- .../PlainDateTime/prototype/round/roundingmode-floor.js | 6 +++--- .../prototype/round/roundingmode-halfCeil.js | 8 ++++---- .../prototype/round/roundingmode-halfEven.js | 8 ++++---- .../prototype/round/roundingmode-halfExpand.js | 8 ++++---- .../prototype/round/roundingmode-halfFloor.js | 8 ++++---- .../prototype/round/roundingmode-halfTrunc.js | 8 ++++---- .../PlainDateTime/prototype/round/roundingmode-trunc.js | 6 +++--- .../PlainDateTime/prototype/since/roundingmode-ceil.js | 4 ++-- .../PlainDateTime/prototype/since/roundingmode-expand.js | 4 ++-- .../PlainDateTime/prototype/since/roundingmode-floor.js | 4 ++-- .../prototype/since/roundingmode-halfCeil.js | 6 +++--- .../prototype/since/roundingmode-halfEven.js | 4 ++-- .../prototype/since/roundingmode-halfExpand.js | 4 ++-- .../prototype/since/roundingmode-halfFloor.js | 6 +++--- .../prototype/since/roundingmode-halfTrunc.js | 6 +++--- .../PlainDateTime/prototype/since/roundingmode-trunc.js | 4 ++-- .../PlainDateTime/prototype/until/roundingmode-ceil.js | 4 ++-- .../PlainDateTime/prototype/until/roundingmode-expand.js | 4 ++-- .../PlainDateTime/prototype/until/roundingmode-floor.js | 4 ++-- .../prototype/until/roundingmode-halfCeil.js | 6 +++--- .../prototype/until/roundingmode-halfEven.js | 4 ++-- .../prototype/until/roundingmode-halfExpand.js | 4 ++-- .../prototype/until/roundingmode-halfFloor.js | 6 +++--- .../prototype/until/roundingmode-halfTrunc.js | 6 +++--- .../PlainDateTime/prototype/until/roundingmode-trunc.js | 4 ++-- .../PlainTime/prototype/round/roundingmode-ceil.js | 6 +++--- .../PlainTime/prototype/round/roundingmode-expand.js | 6 +++--- .../PlainTime/prototype/round/roundingmode-floor.js | 6 +++--- .../PlainTime/prototype/round/roundingmode-halfCeil.js | 8 ++++---- .../PlainTime/prototype/round/roundingmode-halfEven.js | 8 ++++---- .../PlainTime/prototype/round/roundingmode-halfExpand.js | 8 ++++---- .../PlainTime/prototype/round/roundingmode-halfFloor.js | 8 ++++---- .../PlainTime/prototype/round/roundingmode-halfTrunc.js | 8 ++++---- .../PlainTime/prototype/round/roundingmode-trunc.js | 6 +++--- .../PlainTime/prototype/since/roundingmode-ceil.js | 4 ++-- .../PlainTime/prototype/since/roundingmode-expand.js | 4 ++-- .../PlainTime/prototype/since/roundingmode-floor.js | 4 ++-- .../PlainTime/prototype/since/roundingmode-halfCeil.js | 6 +++--- .../PlainTime/prototype/since/roundingmode-halfEven.js | 4 ++-- .../PlainTime/prototype/since/roundingmode-halfExpand.js | 4 ++-- .../PlainTime/prototype/since/roundingmode-halfFloor.js | 6 +++--- .../PlainTime/prototype/since/roundingmode-halfTrunc.js | 6 +++--- .../PlainTime/prototype/since/roundingmode-trunc.js | 4 ++-- .../PlainTime/prototype/until/roundingmode-ceil.js | 4 ++-- .../PlainTime/prototype/until/roundingmode-expand.js | 4 ++-- .../PlainTime/prototype/until/roundingmode-floor.js | 4 ++-- .../PlainTime/prototype/until/roundingmode-halfCeil.js | 6 +++--- .../PlainTime/prototype/until/roundingmode-halfEven.js | 4 ++-- .../PlainTime/prototype/until/roundingmode-halfExpand.js | 4 ++-- .../PlainTime/prototype/until/roundingmode-halfFloor.js | 6 +++--- .../PlainTime/prototype/until/roundingmode-halfTrunc.js | 6 +++--- .../PlainTime/prototype/until/roundingmode-trunc.js | 4 ++-- .../ZonedDateTime/prototype/round/roundingmode-ceil.js | 6 +++--- .../ZonedDateTime/prototype/round/roundingmode-expand.js | 6 +++--- .../ZonedDateTime/prototype/round/roundingmode-floor.js | 6 +++--- .../prototype/round/roundingmode-halfCeil.js | 8 ++++---- .../prototype/round/roundingmode-halfEven.js | 8 ++++---- .../prototype/round/roundingmode-halfExpand.js | 8 ++++---- .../prototype/round/roundingmode-halfFloor.js | 8 ++++---- .../prototype/round/roundingmode-halfTrunc.js | 8 ++++---- .../ZonedDateTime/prototype/round/roundingmode-trunc.js | 6 +++--- .../ZonedDateTime/prototype/since/roundingmode-ceil.js | 6 +++--- .../ZonedDateTime/prototype/since/roundingmode-expand.js | 6 +++--- .../ZonedDateTime/prototype/since/roundingmode-floor.js | 6 +++--- .../prototype/since/roundingmode-halfCeil.js | 8 ++++---- .../prototype/since/roundingmode-halfEven.js | 6 +++--- .../prototype/since/roundingmode-halfExpand.js | 6 +++--- .../prototype/since/roundingmode-halfFloor.js | 8 ++++---- .../prototype/since/roundingmode-halfTrunc.js | 8 ++++---- .../ZonedDateTime/prototype/since/roundingmode-trunc.js | 6 +++--- .../ZonedDateTime/prototype/until/roundingmode-ceil.js | 6 +++--- .../ZonedDateTime/prototype/until/roundingmode-expand.js | 6 +++--- .../ZonedDateTime/prototype/until/roundingmode-floor.js | 6 +++--- .../prototype/until/roundingmode-halfCeil.js | 8 ++++---- .../prototype/until/roundingmode-halfEven.js | 6 +++--- .../prototype/until/roundingmode-halfExpand.js | 6 +++--- .../prototype/until/roundingmode-halfFloor.js | 8 ++++---- .../prototype/until/roundingmode-halfTrunc.js | 8 ++++---- .../ZonedDateTime/prototype/until/roundingmode-trunc.js | 6 +++--- 117 files changed, 361 insertions(+), 361 deletions(-) diff --git a/test/built-ins/Temporal/Duration/prototype/round/roundingmode-ceil.js b/test/built-ins/Temporal/Duration/prototype/round/roundingmode-ceil.js index 06de2529c5..6da85af6b8 100644 --- a/test/built-ins/Temporal/Duration/prototype/round/roundingmode-ceil.js +++ b/test/built-ins/Temporal/Duration/prototype/round/roundingmode-ceil.js @@ -8,7 +8,7 @@ includes: [temporalHelpers.js] features: [Temporal] ---*/ -const instance = new Temporal.Duration(5, 6, 7, 8, 40, 30, 20, 123, 500, 987); +const instance = new Temporal.Duration(5, 6, 7, 8, 40, 30, 20, 123, 987, 500); const relativeTo = new Temporal.PlainDate(2020, 1, 1); const expected = [ @@ -20,8 +20,8 @@ const expected = [ ["minutes", [5, 6, 7, 9, 16, 31], [-5, -6, -7, -9, -16, -30]], ["seconds", [5, 6, 7, 9, 16, 30, 21], [-5, -6, -7, -9, -16, -30, -20]], ["milliseconds", [5, 6, 7, 9, 16, 30, 20, 124], [-5, -6, -7, -9, -16, -30, -20, -123]], - ["microseconds", [5, 6, 7, 9, 16, 30, 20, 123, 501], [-5, -6, -7, -9, -16, -30, -20, -123, -500]], - ["nanoseconds", [5, 6, 7, 9, 16, 30, 20, 123, 500, 987], [-5, -6, -7, -9, -16, -30, -20, -123, -500, -987]], + ["microseconds", [5, 6, 7, 9, 16, 30, 20, 123, 988], [-5, -6, -7, -9, -16, -30, -20, -123, -987]], + ["nanoseconds", [5, 6, 7, 9, 16, 30, 20, 123, 987, 500], [-5, -6, -7, -9, -16, -30, -20, -123, -987, -500]], ]; const roundingMode = "ceil"; diff --git a/test/built-ins/Temporal/Duration/prototype/round/roundingmode-expand.js b/test/built-ins/Temporal/Duration/prototype/round/roundingmode-expand.js index cba03c21e1..86e9ee64aa 100644 --- a/test/built-ins/Temporal/Duration/prototype/round/roundingmode-expand.js +++ b/test/built-ins/Temporal/Duration/prototype/round/roundingmode-expand.js @@ -8,7 +8,7 @@ includes: [temporalHelpers.js] features: [Temporal] ---*/ -const instance = new Temporal.Duration(5, 6, 7, 8, 40, 30, 20, 123, 500, 987); +const instance = new Temporal.Duration(5, 6, 7, 8, 40, 30, 20, 123, 987, 500); const relativeTo = new Temporal.PlainDate(2020, 1, 1); const expected = [ @@ -20,8 +20,8 @@ const expected = [ ["minutes", [5, 6, 7, 9, 16, 31], [-5, -6, -7, -9, -16, -31]], ["seconds", [5, 6, 7, 9, 16, 30, 21], [-5, -6, -7, -9, -16, -30, -21]], ["milliseconds", [5, 6, 7, 9, 16, 30, 20, 124], [-5, -6, -7, -9, -16, -30, -20, -124]], - ["microseconds", [5, 6, 7, 9, 16, 30, 20, 123, 501], [-5, -6, -7, -9, -16, -30, -20, -123, -501]], - ["nanoseconds", [5, 6, 7, 9, 16, 30, 20, 123, 500, 987], [-5, -6, -7, -9, -16, -30, -20, -123, -500, -987]], + ["microseconds", [5, 6, 7, 9, 16, 30, 20, 123, 988], [-5, -6, -7, -9, -16, -30, -20, -123, -988]], + ["nanoseconds", [5, 6, 7, 9, 16, 30, 20, 123, 987, 500], [-5, -6, -7, -9, -16, -30, -20, -123, -987, -500]], ]; const roundingMode = "expand"; diff --git a/test/built-ins/Temporal/Duration/prototype/round/roundingmode-floor.js b/test/built-ins/Temporal/Duration/prototype/round/roundingmode-floor.js index 6175a2d8aa..3ab95f9794 100644 --- a/test/built-ins/Temporal/Duration/prototype/round/roundingmode-floor.js +++ b/test/built-ins/Temporal/Duration/prototype/round/roundingmode-floor.js @@ -8,7 +8,7 @@ includes: [temporalHelpers.js] features: [Temporal] ---*/ -const instance = new Temporal.Duration(5, 6, 7, 8, 40, 30, 20, 123, 500, 987); +const instance = new Temporal.Duration(5, 6, 7, 8, 40, 30, 20, 123, 987, 500); const relativeTo = new Temporal.PlainDate(2020, 1, 1); const expected = [ @@ -20,8 +20,8 @@ const expected = [ ["minutes", [5, 6, 7, 9, 16, 30], [-5, -6, -7, -9, -16, -31]], ["seconds", [5, 6, 7, 9, 16, 30, 20], [-5, -6, -7, -9, -16, -30, -21]], ["milliseconds", [5, 6, 7, 9, 16, 30, 20, 123], [-5, -6, -7, -9, -16, -30, -20, -124]], - ["microseconds", [5, 6, 7, 9, 16, 30, 20, 123, 500], [-5, -6, -7, -9, -16, -30, -20, -123, -501]], - ["nanoseconds", [5, 6, 7, 9, 16, 30, 20, 123, 500, 987], [-5, -6, -7, -9, -16, -30, -20, -123, -500, -987]], + ["microseconds", [5, 6, 7, 9, 16, 30, 20, 123, 987], [-5, -6, -7, -9, -16, -30, -20, -123, -988]], + ["nanoseconds", [5, 6, 7, 9, 16, 30, 20, 123, 987, 500], [-5, -6, -7, -9, -16, -30, -20, -123, -987, -500]], ]; const roundingMode = "floor"; diff --git a/test/built-ins/Temporal/Duration/prototype/round/roundingmode-halfCeil.js b/test/built-ins/Temporal/Duration/prototype/round/roundingmode-halfCeil.js index 23d3ec7659..2955e900ba 100644 --- a/test/built-ins/Temporal/Duration/prototype/round/roundingmode-halfCeil.js +++ b/test/built-ins/Temporal/Duration/prototype/round/roundingmode-halfCeil.js @@ -8,7 +8,7 @@ includes: [temporalHelpers.js] features: [Temporal] ---*/ -const instance = new Temporal.Duration(5, 6, 7, 8, 40, 30, 20, 123, 500, 987); +const instance = new Temporal.Duration(5, 6, 7, 8, 40, 30, 20, 123, 987, 500); const relativeTo = new Temporal.PlainDate(2020, 1, 1); const expected = [ @@ -20,8 +20,8 @@ const expected = [ ["minutes", [5, 6, 7, 9, 16, 30], [-5, -6, -7, -9, -16, -30]], ["seconds", [5, 6, 7, 9, 16, 30, 20], [-5, -6, -7, -9, -16, -30, -20]], ["milliseconds", [5, 6, 7, 9, 16, 30, 20, 124], [-5, -6, -7, -9, -16, -30, -20, -124]], - ["microseconds", [5, 6, 7, 9, 16, 30, 20, 123, 501], [-5, -6, -7, -9, -16, -30, -20, -123, -501]], - ["nanoseconds", [5, 6, 7, 9, 16, 30, 20, 123, 500, 987], [-5, -6, -7, -9, -16, -30, -20, -123, -500, -987]], + ["microseconds", [5, 6, 7, 9, 16, 30, 20, 123, 988], [-5, -6, -7, -9, -16, -30, -20, -123, -987]], + ["nanoseconds", [5, 6, 7, 9, 16, 30, 20, 123, 987, 500], [-5, -6, -7, -9, -16, -30, -20, -123, -987, -500]], ]; const roundingMode = "halfCeil"; diff --git a/test/built-ins/Temporal/Duration/prototype/round/roundingmode-halfEven.js b/test/built-ins/Temporal/Duration/prototype/round/roundingmode-halfEven.js index 18530749a3..d7bd41745a 100644 --- a/test/built-ins/Temporal/Duration/prototype/round/roundingmode-halfEven.js +++ b/test/built-ins/Temporal/Duration/prototype/round/roundingmode-halfEven.js @@ -8,7 +8,7 @@ includes: [temporalHelpers.js] features: [Temporal] ---*/ -const instance = new Temporal.Duration(5, 6, 7, 8, 40, 30, 20, 123, 500, 987); +const instance = new Temporal.Duration(5, 6, 7, 8, 40, 30, 20, 123, 987, 500); const relativeTo = new Temporal.PlainDate(2020, 1, 1); const expected = [ @@ -20,8 +20,8 @@ const expected = [ ["minutes", [5, 6, 7, 9, 16, 30], [-5, -6, -7, -9, -16, -30]], ["seconds", [5, 6, 7, 9, 16, 30, 20], [-5, -6, -7, -9, -16, -30, -20]], ["milliseconds", [5, 6, 7, 9, 16, 30, 20, 124], [-5, -6, -7, -9, -16, -30, -20, -124]], - ["microseconds", [5, 6, 7, 9, 16, 30, 20, 123, 501], [-5, -6, -7, -9, -16, -30, -20, -123, -501]], - ["nanoseconds", [5, 6, 7, 9, 16, 30, 20, 123, 500, 987], [-5, -6, -7, -9, -16, -30, -20, -123, -500, -987]], + ["microseconds", [5, 6, 7, 9, 16, 30, 20, 123, 988], [-5, -6, -7, -9, -16, -30, -20, -123, -988]], + ["nanoseconds", [5, 6, 7, 9, 16, 30, 20, 123, 987, 500], [-5, -6, -7, -9, -16, -30, -20, -123, -987, -500]], ]; const roundingMode = "halfEven"; diff --git a/test/built-ins/Temporal/Duration/prototype/round/roundingmode-halfExpand.js b/test/built-ins/Temporal/Duration/prototype/round/roundingmode-halfExpand.js index 7054856301..3cb7ac5fcb 100644 --- a/test/built-ins/Temporal/Duration/prototype/round/roundingmode-halfExpand.js +++ b/test/built-ins/Temporal/Duration/prototype/round/roundingmode-halfExpand.js @@ -8,7 +8,7 @@ includes: [temporalHelpers.js] features: [Temporal] ---*/ -const instance = new Temporal.Duration(5, 6, 7, 8, 40, 30, 20, 123, 500, 987); +const instance = new Temporal.Duration(5, 6, 7, 8, 40, 30, 20, 123, 987, 500); const relativeTo = new Temporal.PlainDate(2020, 1, 1); const expected = [ @@ -20,8 +20,8 @@ const expected = [ ["minutes", [5, 6, 7, 9, 16, 30], [-5, -6, -7, -9, -16, -30]], ["seconds", [5, 6, 7, 9, 16, 30, 20], [-5, -6, -7, -9, -16, -30, -20]], ["milliseconds", [5, 6, 7, 9, 16, 30, 20, 124], [-5, -6, -7, -9, -16, -30, -20, -124]], - ["microseconds", [5, 6, 7, 9, 16, 30, 20, 123, 501], [-5, -6, -7, -9, -16, -30, -20, -123, -501]], - ["nanoseconds", [5, 6, 7, 9, 16, 30, 20, 123, 500, 987], [-5, -6, -7, -9, -16, -30, -20, -123, -500, -987]], + ["microseconds", [5, 6, 7, 9, 16, 30, 20, 123, 988], [-5, -6, -7, -9, -16, -30, -20, -123, -988]], + ["nanoseconds", [5, 6, 7, 9, 16, 30, 20, 123, 987, 500], [-5, -6, -7, -9, -16, -30, -20, -123, -987, -500]], ]; const roundingMode = "halfExpand"; diff --git a/test/built-ins/Temporal/Duration/prototype/round/roundingmode-halfFloor.js b/test/built-ins/Temporal/Duration/prototype/round/roundingmode-halfFloor.js index 1c198d6d91..7d284fc62a 100644 --- a/test/built-ins/Temporal/Duration/prototype/round/roundingmode-halfFloor.js +++ b/test/built-ins/Temporal/Duration/prototype/round/roundingmode-halfFloor.js @@ -8,7 +8,7 @@ includes: [temporalHelpers.js] features: [Temporal] ---*/ -const instance = new Temporal.Duration(5, 6, 7, 8, 40, 30, 20, 123, 500, 987); +const instance = new Temporal.Duration(5, 6, 7, 8, 40, 30, 20, 123, 987, 500); const relativeTo = new Temporal.PlainDate(2020, 1, 1); const expected = [ @@ -20,8 +20,8 @@ const expected = [ ["minutes", [5, 6, 7, 9, 16, 30], [-5, -6, -7, -9, -16, -30]], ["seconds", [5, 6, 7, 9, 16, 30, 20], [-5, -6, -7, -9, -16, -30, -20]], ["milliseconds", [5, 6, 7, 9, 16, 30, 20, 124], [-5, -6, -7, -9, -16, -30, -20, -124]], - ["microseconds", [5, 6, 7, 9, 16, 30, 20, 123, 501], [-5, -6, -7, -9, -16, -30, -20, -123, -501]], - ["nanoseconds", [5, 6, 7, 9, 16, 30, 20, 123, 500, 987], [-5, -6, -7, -9, -16, -30, -20, -123, -500, -987]], + ["microseconds", [5, 6, 7, 9, 16, 30, 20, 123, 987], [-5, -6, -7, -9, -16, -30, -20, -123, -988]], + ["nanoseconds", [5, 6, 7, 9, 16, 30, 20, 123, 987, 500], [-5, -6, -7, -9, -16, -30, -20, -123, -987, -500]], ]; const roundingMode = "halfFloor"; diff --git a/test/built-ins/Temporal/Duration/prototype/round/roundingmode-halfTrunc.js b/test/built-ins/Temporal/Duration/prototype/round/roundingmode-halfTrunc.js index 006d1b133f..f63582f809 100644 --- a/test/built-ins/Temporal/Duration/prototype/round/roundingmode-halfTrunc.js +++ b/test/built-ins/Temporal/Duration/prototype/round/roundingmode-halfTrunc.js @@ -8,7 +8,7 @@ includes: [temporalHelpers.js] features: [Temporal] ---*/ -const instance = new Temporal.Duration(5, 6, 7, 8, 40, 30, 20, 123, 500, 987); +const instance = new Temporal.Duration(5, 6, 7, 8, 40, 30, 20, 123, 987, 500); const relativeTo = new Temporal.PlainDate(2020, 1, 1); const expected = [ @@ -20,8 +20,8 @@ const expected = [ ["minutes", [5, 6, 7, 9, 16, 30], [-5, -6, -7, -9, -16, -30]], ["seconds", [5, 6, 7, 9, 16, 30, 20], [-5, -6, -7, -9, -16, -30, -20]], ["milliseconds", [5, 6, 7, 9, 16, 30, 20, 124], [-5, -6, -7, -9, -16, -30, -20, -124]], - ["microseconds", [5, 6, 7, 9, 16, 30, 20, 123, 501], [-5, -6, -7, -9, -16, -30, -20, -123, -501]], - ["nanoseconds", [5, 6, 7, 9, 16, 30, 20, 123, 500, 987], [-5, -6, -7, -9, -16, -30, -20, -123, -500, -987]], + ["microseconds", [5, 6, 7, 9, 16, 30, 20, 123, 987], [-5, -6, -7, -9, -16, -30, -20, -123, -987]], + ["nanoseconds", [5, 6, 7, 9, 16, 30, 20, 123, 987, 500], [-5, -6, -7, -9, -16, -30, -20, -123, -987, -500]], ]; const roundingMode = "halfTrunc"; diff --git a/test/built-ins/Temporal/Duration/prototype/round/roundingmode-trunc.js b/test/built-ins/Temporal/Duration/prototype/round/roundingmode-trunc.js index 55b81e5c9e..a85bd36580 100644 --- a/test/built-ins/Temporal/Duration/prototype/round/roundingmode-trunc.js +++ b/test/built-ins/Temporal/Duration/prototype/round/roundingmode-trunc.js @@ -8,7 +8,7 @@ includes: [temporalHelpers.js] features: [Temporal] ---*/ -const instance = new Temporal.Duration(5, 6, 7, 8, 40, 30, 20, 123, 500, 987); +const instance = new Temporal.Duration(5, 6, 7, 8, 40, 30, 20, 123, 987, 500); const relativeTo = new Temporal.PlainDate(2020, 1, 1); const expected = [ @@ -20,8 +20,8 @@ const expected = [ ["minutes", [5, 6, 7, 9, 16, 30], [-5, -6, -7, -9, -16, -30]], ["seconds", [5, 6, 7, 9, 16, 30, 20], [-5, -6, -7, -9, -16, -30, -20]], ["milliseconds", [5, 6, 7, 9, 16, 30, 20, 123], [-5, -6, -7, -9, -16, -30, -20, -123]], - ["microseconds", [5, 6, 7, 9, 16, 30, 20, 123, 500], [-5, -6, -7, -9, -16, -30, -20, -123, -500]], - ["nanoseconds", [5, 6, 7, 9, 16, 30, 20, 123, 500, 987], [-5, -6, -7, -9, -16, -30, -20, -123, -500, -987]], + ["microseconds", [5, 6, 7, 9, 16, 30, 20, 123, 987], [-5, -6, -7, -9, -16, -30, -20, -123, -987]], + ["nanoseconds", [5, 6, 7, 9, 16, 30, 20, 123, 987, 500], [-5, -6, -7, -9, -16, -30, -20, -123, -987, -500]], ]; const roundingMode = "trunc"; diff --git a/test/built-ins/Temporal/Instant/prototype/round/roundingmode-ceil.js b/test/built-ins/Temporal/Instant/prototype/round/roundingmode-ceil.js index be61a9c201..d1dfd80bf3 100644 --- a/test/built-ins/Temporal/Instant/prototype/round/roundingmode-ceil.js +++ b/test/built-ins/Temporal/Instant/prototype/round/roundingmode-ceil.js @@ -7,15 +7,15 @@ description: Tests calculations with roundingMode "ceil". features: [Temporal] ---*/ -const instance = new Temporal.Instant(217175010_123_456_789n /* 1976-11-18T14:23:30.123456789Z */); +const instance = new Temporal.Instant(217175010_123_987_500n /* 1976-11-18T14:23:30.1239875Z */); const expected = [ ["hour", 217177200_000_000_000n /* 1976-11-18T15:00:00Z */], ["minute", 217175040_000_000_000n /* 1976-11-18T14:24:00Z */], ["second", 217175011_000_000_000n /* 1976-11-18T14:23:31Z */], ["millisecond", 217175010_124_000_000n /* 1976-11-18T14:23:30.124Z */], - ["microsecond", 217175010_123_457_000n /* 1976-11-18T14:23:30.123457Z */], - ["nanosecond", 217175010_123_456_789n /* 1976-11-18T14:23:30.123456789Z */], + ["microsecond", 217175010_123_988_000n /* 1976-11-18T14:23:30.123988Z */], + ["nanosecond", 217175010_123_987_500n /* 1976-11-18T14:23:30.1239875Z */], ]; const roundingMode = "ceil"; diff --git a/test/built-ins/Temporal/Instant/prototype/round/roundingmode-expand.js b/test/built-ins/Temporal/Instant/prototype/round/roundingmode-expand.js index 97bc621dda..7f1058c109 100644 --- a/test/built-ins/Temporal/Instant/prototype/round/roundingmode-expand.js +++ b/test/built-ins/Temporal/Instant/prototype/round/roundingmode-expand.js @@ -7,15 +7,15 @@ description: Tests calculations with roundingMode "expand". features: [Temporal] ---*/ -const instance = new Temporal.Instant(217175010_123_456_789n /* 1976-11-18T14:23:30.123456789Z */); +const instance = new Temporal.Instant(217175010_123_987_500n /* 1976-11-18T14:23:30.1239875Z */); const expected = [ ["hour", 217177200_000_000_000n /* 1976-11-18T15:00:00Z */], ["minute", 217175040_000_000_000n /* 1976-11-18T14:24:00Z */], ["second", 217175011_000_000_000n /* 1976-11-18T14:23:31Z */], ["millisecond", 217175010_124_000_000n /* 1976-11-18T14:23:30.124Z */], - ["microsecond", 217175010_123_457_000n /* 1976-11-18T14:23:30.123457Z */], - ["nanosecond", 217175010_123_456_789n /* 1976-11-18T14:23:30.123456789Z */], + ["microsecond", 217175010_123_988_000n /* 1976-11-18T14:23:30.123988Z */], + ["nanosecond", 217175010_123_987_500n /* 1976-11-18T14:23:30.1239875Z */], ]; const roundingMode = "expand"; diff --git a/test/built-ins/Temporal/Instant/prototype/round/roundingmode-floor.js b/test/built-ins/Temporal/Instant/prototype/round/roundingmode-floor.js index b658abeea0..4ad2a88510 100644 --- a/test/built-ins/Temporal/Instant/prototype/round/roundingmode-floor.js +++ b/test/built-ins/Temporal/Instant/prototype/round/roundingmode-floor.js @@ -7,15 +7,15 @@ description: Tests calculations with roundingMode "floor". features: [Temporal] ---*/ -const instance = new Temporal.Instant(217175010_123_456_789n /* 1976-11-18T14:23:30.123456789Z */); +const instance = new Temporal.Instant(217175010_123_987_500n /* 1976-11-18T14:23:30.1239875Z */); const expected = [ ["hour", 217173600_000_000_000n /* 1976-11-18T14:00:00Z */], ["minute", 217174980_000_000_000n /* 1976-11-18T14:23:00Z */], ["second", 217175010_000_000_000n /* 1976-11-18T14:23:30Z */], ["millisecond", 217175010_123_000_000n /* 1976-11-18T14:23:30.123Z */], - ["microsecond", 217175010_123_456_000n /* 1976-11-18T14:23:30.123456Z */], - ["nanosecond", 217175010_123_456_789n /* 1976-11-18T14:23:30.123456789Z */], + ["microsecond", 217175010_123_987_000n /* 1976-11-18T14:23:30.123987Z */], + ["nanosecond", 217175010_123_987_500n /* 1976-11-18T14:23:30.1239875Z */], ]; const roundingMode = "floor"; diff --git a/test/built-ins/Temporal/Instant/prototype/round/roundingmode-halfCeil.js b/test/built-ins/Temporal/Instant/prototype/round/roundingmode-halfCeil.js index af6e5dd3f3..ef3af912d8 100644 --- a/test/built-ins/Temporal/Instant/prototype/round/roundingmode-halfCeil.js +++ b/test/built-ins/Temporal/Instant/prototype/round/roundingmode-halfCeil.js @@ -7,15 +7,15 @@ description: Tests calculations with roundingMode "halfCeil". features: [Temporal] ---*/ -const instance = new Temporal.Instant(217175010_123_456_789n /* 1976-11-18T14:23:30.123456789Z */); +const instance = new Temporal.Instant(217175010_123_987_500n /* 1976-11-18T14:23:30.1239875Z */); const expected = [ ["hour", 217173600_000_000_000n /* 1976-11-18T14:00:00Z */], ["minute", 217175040_000_000_000n /* 1976-11-18T14:24:00Z */], ["second", 217175010_000_000_000n /* 1976-11-18T14:23:30Z */], - ["millisecond", 217175010_123_000_000n /* 1976-11-18T14:23:30.123Z */], - ["microsecond", 217175010_123_457_000n /* 1976-11-18T14:23:30.123457Z */], - ["nanosecond", 217175010_123_456_789n /* 1976-11-18T14:23:30.123456789Z */], + ["millisecond", 217175010_124_000_000n /* 1976-11-18T14:23:30.124Z */], + ["microsecond", 217175010_123_988_000n /* 1976-11-18T14:23:30.123988Z */], + ["nanosecond", 217175010_123_987_500n /* 1976-11-18T14:23:30.1239875Z */], ]; const roundingMode = "halfCeil"; diff --git a/test/built-ins/Temporal/Instant/prototype/round/roundingmode-halfEven.js b/test/built-ins/Temporal/Instant/prototype/round/roundingmode-halfEven.js index 9a50ba0eed..8e46bc2d8d 100644 --- a/test/built-ins/Temporal/Instant/prototype/round/roundingmode-halfEven.js +++ b/test/built-ins/Temporal/Instant/prototype/round/roundingmode-halfEven.js @@ -7,15 +7,15 @@ description: Tests calculations with roundingMode "halfEven". features: [Temporal] ---*/ -const instance = new Temporal.Instant(217175010_123_456_789n /* 1976-11-18T14:23:30.123456789Z */); +const instance = new Temporal.Instant(217175010_123_987_500n /* 1976-11-18T14:23:30.1239875Z */); const expected = [ ["hour", 217173600_000_000_000n /* 1976-11-18T14:00:00Z */], ["minute", 217175040_000_000_000n /* 1976-11-18T14:24:00Z */], ["second", 217175010_000_000_000n /* 1976-11-18T14:23:30Z */], - ["millisecond", 217175010_123_000_000n /* 1976-11-18T14:23:30.123Z */], - ["microsecond", 217175010_123_457_000n /* 1976-11-18T14:23:30.123457Z */], - ["nanosecond", 217175010_123_456_789n /* 1976-11-18T14:23:30.123456789Z */], + ["millisecond", 217175010_124_000_000n /* 1976-11-18T14:23:30.124Z */], + ["microsecond", 217175010_123_988_000n /* 1976-11-18T14:23:30.123988Z */], + ["nanosecond", 217175010_123_987_500n /* 1976-11-18T14:23:30.1239875Z */], ]; const roundingMode = "halfEven"; diff --git a/test/built-ins/Temporal/Instant/prototype/round/roundingmode-halfExpand.js b/test/built-ins/Temporal/Instant/prototype/round/roundingmode-halfExpand.js index cbc31b8f3e..85ef262966 100644 --- a/test/built-ins/Temporal/Instant/prototype/round/roundingmode-halfExpand.js +++ b/test/built-ins/Temporal/Instant/prototype/round/roundingmode-halfExpand.js @@ -7,15 +7,15 @@ description: Tests calculations with roundingMode "halfExpand". features: [Temporal] ---*/ -const instance = new Temporal.Instant(217175010_123_456_789n /* 1976-11-18T14:23:30.123456789Z */); +const instance = new Temporal.Instant(217175010_123_987_500n /* 1976-11-18T14:23:30.1239875Z */); const expected = [ ["hour", 217173600_000_000_000n /* 1976-11-18T14:00:00Z */], ["minute", 217175040_000_000_000n /* 1976-11-18T14:24:00Z */], ["second", 217175010_000_000_000n /* 1976-11-18T14:23:30Z */], - ["millisecond", 217175010_123_000_000n /* 1976-11-18T14:23:30.123Z */], - ["microsecond", 217175010_123_457_000n /* 1976-11-18T14:23:30.123457Z */], - ["nanosecond", 217175010_123_456_789n /* 1976-11-18T14:23:30.123456789Z */], + ["millisecond", 217175010_124_000_000n /* 1976-11-18T14:23:30.124Z */], + ["microsecond", 217175010_123_988_000n /* 1976-11-18T14:23:30.123988Z */], + ["nanosecond", 217175010_123_987_500n /* 1976-11-18T14:23:30.1239875Z */], ]; const roundingMode = "halfExpand"; diff --git a/test/built-ins/Temporal/Instant/prototype/round/roundingmode-halfFloor.js b/test/built-ins/Temporal/Instant/prototype/round/roundingmode-halfFloor.js index 56ae1d0d7d..792386bc9e 100644 --- a/test/built-ins/Temporal/Instant/prototype/round/roundingmode-halfFloor.js +++ b/test/built-ins/Temporal/Instant/prototype/round/roundingmode-halfFloor.js @@ -7,15 +7,15 @@ description: Tests calculations with roundingMode "halfFloor". features: [Temporal] ---*/ -const instance = new Temporal.Instant(217175010_123_456_789n /* 1976-11-18T14:23:30.123456789Z */); +const instance = new Temporal.Instant(217175010_123_987_500n /* 1976-11-18T14:23:30.1239875Z */); const expected = [ ["hour", 217173600_000_000_000n /* 1976-11-18T14:00:00Z */], ["minute", 217175040_000_000_000n /* 1976-11-18T14:24:00Z */], ["second", 217175010_000_000_000n /* 1976-11-18T14:23:30Z */], - ["millisecond", 217175010_123_000_000n /* 1976-11-18T14:23:30.123Z */], - ["microsecond", 217175010_123_457_000n /* 1976-11-18T14:23:30.123457Z */], - ["nanosecond", 217175010_123_456_789n /* 1976-11-18T14:23:30.123456789Z */], + ["millisecond", 217175010_124_000_000n /* 1976-11-18T14:23:30.124Z */], + ["microsecond", 217175010_123_987_000n /* 1976-11-18T14:23:30.123987Z */], + ["nanosecond", 217175010_123_987_500n /* 1976-11-18T14:23:30.1239875Z */], ]; const roundingMode = "halfFloor"; diff --git a/test/built-ins/Temporal/Instant/prototype/round/roundingmode-halfTrunc.js b/test/built-ins/Temporal/Instant/prototype/round/roundingmode-halfTrunc.js index be654781a6..5807891da0 100644 --- a/test/built-ins/Temporal/Instant/prototype/round/roundingmode-halfTrunc.js +++ b/test/built-ins/Temporal/Instant/prototype/round/roundingmode-halfTrunc.js @@ -7,15 +7,15 @@ description: Tests calculations with roundingMode "halfTrunc". features: [Temporal] ---*/ -const instance = new Temporal.Instant(217175010_123_456_789n /* 1976-11-18T14:23:30.123456789Z */); +const instance = new Temporal.Instant(217175010_123_987_500n /* 1976-11-18T14:23:30.1239875Z */); const expected = [ ["hour", 217173600_000_000_000n /* 1976-11-18T14:00:00Z */], ["minute", 217175040_000_000_000n /* 1976-11-18T14:24:00Z */], ["second", 217175010_000_000_000n /* 1976-11-18T14:23:30Z */], - ["millisecond", 217175010_123_000_000n /* 1976-11-18T14:23:30.123Z */], - ["microsecond", 217175010_123_457_000n /* 1976-11-18T14:23:30.123457Z */], - ["nanosecond", 217175010_123_456_789n /* 1976-11-18T14:23:30.123456789Z */], + ["millisecond", 217175010_124_000_000n /* 1976-11-18T14:23:30.124Z */], + ["microsecond", 217175010_123_987_000n /* 1976-11-18T14:23:30.123987Z */], + ["nanosecond", 217175010_123_987_500n /* 1976-11-18T14:23:30.1239875Z */], ]; const roundingMode = "halfTrunc"; diff --git a/test/built-ins/Temporal/Instant/prototype/round/roundingmode-trunc.js b/test/built-ins/Temporal/Instant/prototype/round/roundingmode-trunc.js index 0234d07175..585a66d343 100644 --- a/test/built-ins/Temporal/Instant/prototype/round/roundingmode-trunc.js +++ b/test/built-ins/Temporal/Instant/prototype/round/roundingmode-trunc.js @@ -7,15 +7,15 @@ description: Tests calculations with roundingMode "trunc". features: [Temporal] ---*/ -const instance = new Temporal.Instant(217175010_123_456_789n /* 1976-11-18T14:23:30.123456789Z */); +const instance = new Temporal.Instant(217175010_123_987_500n /* 1976-11-18T14:23:30.1239875Z */); const expected = [ ["hour", 217173600_000_000_000n /* 1976-11-18T14:00:00Z */], ["minute", 217174980_000_000_000n /* 1976-11-18T14:23:00Z */], ["second", 217175010_000_000_000n /* 1976-11-18T14:23:30Z */], ["millisecond", 217175010_123_000_000n /* 1976-11-18T14:23:30.123Z */], - ["microsecond", 217175010_123_456_000n /* 1976-11-18T14:23:30.123456Z */], - ["nanosecond", 217175010_123_456_789n /* 1976-11-18T14:23:30.123456789Z */], + ["microsecond", 217175010_123_987_000n /* 1976-11-18T14:23:30.123987Z */], + ["nanosecond", 217175010_123_987_500n /* 1976-11-18T14:23:30.1239875Z */], ]; const roundingMode = "trunc"; diff --git a/test/built-ins/Temporal/Instant/prototype/since/roundingmode-ceil.js b/test/built-ins/Temporal/Instant/prototype/since/roundingmode-ceil.js index 2d12777942..81e8120e34 100644 --- a/test/built-ins/Temporal/Instant/prototype/since/roundingmode-ceil.js +++ b/test/built-ins/Temporal/Instant/prototype/since/roundingmode-ceil.js @@ -8,8 +8,8 @@ includes: [temporalHelpers.js] features: [Temporal] ---*/ -const earlier = new Temporal.Instant(217178610_123_456_789n); -const later = new Temporal.Instant(1572345998_271_986_102n); +const earlier = new Temporal.Instant(217178610_123_456_789n /* 1976-11-18T15:23:30.123456789Z */); +const later = new Temporal.Instant(1572345998_271_986_289n /* 2019-10-29T10:46:38.271986289Z */); const expected = [ ["hours", [0, 0, 0, 0, 376436], [0, 0, 0, 0, -376435]], @@ -17,7 +17,7 @@ const expected = [ ["seconds", [0, 0, 0, 0, 376435, 23, 9], [0, 0, 0, 0, -376435, -23, -8]], ["milliseconds", [0, 0, 0, 0, 376435, 23, 8, 149], [0, 0, 0, 0, -376435, -23, -8, -148]], ["microseconds", [0, 0, 0, 0, 376435, 23, 8, 148, 530], [0, 0, 0, 0, -376435, -23, -8, -148, -529]], - ["nanoseconds", [0, 0, 0, 0, 376435, 23, 8, 148, 529, 313], [0, 0, 0, 0, -376435, -23, -8, -148, -529, -313]], + ["nanoseconds", [0, 0, 0, 0, 376435, 23, 8, 148, 529, 500], [0, 0, 0, 0, -376435, -23, -8, -148, -529, -500]], ]; const roundingMode = "ceil"; diff --git a/test/built-ins/Temporal/Instant/prototype/since/roundingmode-expand.js b/test/built-ins/Temporal/Instant/prototype/since/roundingmode-expand.js index 95d7154ba8..fddae21b21 100644 --- a/test/built-ins/Temporal/Instant/prototype/since/roundingmode-expand.js +++ b/test/built-ins/Temporal/Instant/prototype/since/roundingmode-expand.js @@ -8,8 +8,8 @@ includes: [temporalHelpers.js] features: [Temporal] ---*/ -const earlier = new Temporal.Instant(217178610_123_456_789n); -const later = new Temporal.Instant(1572345998_271_986_102n); +const earlier = new Temporal.Instant(217178610_123_456_789n /* 1976-11-18T15:23:30.123456789Z */); +const later = new Temporal.Instant(1572345998_271_986_289n /* 2019-10-29T10:46:38.271986289Z */); const expected = [ ["hours", [0, 0, 0, 0, 376436], [0, 0, 0, 0, -376436]], @@ -17,7 +17,7 @@ const expected = [ ["seconds", [0, 0, 0, 0, 376435, 23, 9], [0, 0, 0, 0, -376435, -23, -9]], ["milliseconds", [0, 0, 0, 0, 376435, 23, 8, 149], [0, 0, 0, 0, -376435, -23, -8, -149]], ["microseconds", [0, 0, 0, 0, 376435, 23, 8, 148, 530], [0, 0, 0, 0, -376435, -23, -8, -148, -530]], - ["nanoseconds", [0, 0, 0, 0, 376435, 23, 8, 148, 529, 313], [0, 0, 0, 0, -376435, -23, -8, -148, -529, -313]], + ["nanoseconds", [0, 0, 0, 0, 376435, 23, 8, 148, 529, 500], [0, 0, 0, 0, -376435, -23, -8, -148, -529, -500]], ]; const roundingMode = "expand"; diff --git a/test/built-ins/Temporal/Instant/prototype/since/roundingmode-floor.js b/test/built-ins/Temporal/Instant/prototype/since/roundingmode-floor.js index b44ae659fb..54a4748477 100644 --- a/test/built-ins/Temporal/Instant/prototype/since/roundingmode-floor.js +++ b/test/built-ins/Temporal/Instant/prototype/since/roundingmode-floor.js @@ -8,8 +8,8 @@ includes: [temporalHelpers.js] features: [Temporal] ---*/ -const earlier = new Temporal.Instant(217178610_123_456_789n); -const later = new Temporal.Instant(1572345998_271_986_102n); +const earlier = new Temporal.Instant(217178610_123_456_789n /* 1976-11-18T15:23:30.123456789Z */); +const later = new Temporal.Instant(1572345998_271_986_289n /* 2019-10-29T10:46:38.271986289Z */); const expected = [ ["hours", [0, 0, 0, 0, 376435], [0, 0, 0, 0, -376436]], @@ -17,7 +17,7 @@ const expected = [ ["seconds", [0, 0, 0, 0, 376435, 23, 8], [0, 0, 0, 0, -376435, -23, -9]], ["milliseconds", [0, 0, 0, 0, 376435, 23, 8, 148], [0, 0, 0, 0, -376435, -23, -8, -149]], ["microseconds", [0, 0, 0, 0, 376435, 23, 8, 148, 529], [0, 0, 0, 0, -376435, -23, -8, -148, -530]], - ["nanoseconds", [0, 0, 0, 0, 376435, 23, 8, 148, 529, 313], [0, 0, 0, 0, -376435, -23, -8, -148, -529, -313]], + ["nanoseconds", [0, 0, 0, 0, 376435, 23, 8, 148, 529, 500], [0, 0, 0, 0, -376435, -23, -8, -148, -529, -500]], ]; const roundingMode = "floor"; diff --git a/test/built-ins/Temporal/Instant/prototype/since/roundingmode-halfCeil.js b/test/built-ins/Temporal/Instant/prototype/since/roundingmode-halfCeil.js index 4741f24a7c..8aed78b7e6 100644 --- a/test/built-ins/Temporal/Instant/prototype/since/roundingmode-halfCeil.js +++ b/test/built-ins/Temporal/Instant/prototype/since/roundingmode-halfCeil.js @@ -8,16 +8,16 @@ includes: [temporalHelpers.js] features: [Temporal] ---*/ -const earlier = new Temporal.Instant(217178610_123_456_789n); -const later = new Temporal.Instant(1572345998_271_986_102n); +const earlier = new Temporal.Instant(217178610_123_456_789n /* 1976-11-18T15:23:30.123456789Z */); +const later = new Temporal.Instant(1572345998_271_986_289n /* 2019-10-29T10:46:38.271986289Z */); const expected = [ ["hours", [0, 0, 0, 0, 376435], [0, 0, 0, 0, -376435]], ["minutes", [0, 0, 0, 0, 376435, 23], [0, 0, 0, 0, -376435, -23]], ["seconds", [0, 0, 0, 0, 376435, 23, 8], [0, 0, 0, 0, -376435, -23, -8]], ["milliseconds", [0, 0, 0, 0, 376435, 23, 8, 149], [0, 0, 0, 0, -376435, -23, -8, -149]], - ["microseconds", [0, 0, 0, 0, 376435, 23, 8, 148, 529], [0, 0, 0, 0, -376435, -23, -8, -148, -529]], - ["nanoseconds", [0, 0, 0, 0, 376435, 23, 8, 148, 529, 313], [0, 0, 0, 0, -376435, -23, -8, -148, -529, -313]], + ["microseconds", [0, 0, 0, 0, 376435, 23, 8, 148, 530], [0, 0, 0, 0, -376435, -23, -8, -148, -529]], + ["nanoseconds", [0, 0, 0, 0, 376435, 23, 8, 148, 529, 500], [0, 0, 0, 0, -376435, -23, -8, -148, -529, -500]], ]; const roundingMode = "halfCeil"; diff --git a/test/built-ins/Temporal/Instant/prototype/since/roundingmode-halfEven.js b/test/built-ins/Temporal/Instant/prototype/since/roundingmode-halfEven.js index c1b105ef72..c7e884a0d2 100644 --- a/test/built-ins/Temporal/Instant/prototype/since/roundingmode-halfEven.js +++ b/test/built-ins/Temporal/Instant/prototype/since/roundingmode-halfEven.js @@ -8,16 +8,16 @@ includes: [temporalHelpers.js] features: [Temporal] ---*/ -const earlier = new Temporal.Instant(217178610_123_456_789n); -const later = new Temporal.Instant(1572345998_271_986_102n); +const earlier = new Temporal.Instant(217178610_123_456_789n /* 1976-11-18T15:23:30.123456789Z */); +const later = new Temporal.Instant(1572345998_271_986_289n /* 2019-10-29T10:46:38.271986289Z */); const expected = [ ["hours", [0, 0, 0, 0, 376435], [0, 0, 0, 0, -376435]], ["minutes", [0, 0, 0, 0, 376435, 23], [0, 0, 0, 0, -376435, -23]], ["seconds", [0, 0, 0, 0, 376435, 23, 8], [0, 0, 0, 0, -376435, -23, -8]], ["milliseconds", [0, 0, 0, 0, 376435, 23, 8, 149], [0, 0, 0, 0, -376435, -23, -8, -149]], - ["microseconds", [0, 0, 0, 0, 376435, 23, 8, 148, 529], [0, 0, 0, 0, -376435, -23, -8, -148, -529]], - ["nanoseconds", [0, 0, 0, 0, 376435, 23, 8, 148, 529, 313], [0, 0, 0, 0, -376435, -23, -8, -148, -529, -313]], + ["microseconds", [0, 0, 0, 0, 376435, 23, 8, 148, 530], [0, 0, 0, 0, -376435, -23, -8, -148, -530]], + ["nanoseconds", [0, 0, 0, 0, 376435, 23, 8, 148, 529, 500], [0, 0, 0, 0, -376435, -23, -8, -148, -529, -500]], ]; const roundingMode = "halfEven"; diff --git a/test/built-ins/Temporal/Instant/prototype/since/roundingmode-halfExpand.js b/test/built-ins/Temporal/Instant/prototype/since/roundingmode-halfExpand.js index 99e4ccece3..1ec1c35703 100644 --- a/test/built-ins/Temporal/Instant/prototype/since/roundingmode-halfExpand.js +++ b/test/built-ins/Temporal/Instant/prototype/since/roundingmode-halfExpand.js @@ -8,16 +8,16 @@ includes: [temporalHelpers.js] features: [Temporal] ---*/ -const earlier = new Temporal.Instant(217178610_123_456_789n); -const later = new Temporal.Instant(1572345998_271_986_102n); +const earlier = new Temporal.Instant(217178610_123_456_789n /* 1976-11-18T15:23:30.123456789Z */); +const later = new Temporal.Instant(1572345998_271_986_289n /* 2019-10-29T10:46:38.271986289Z */); const expected = [ ["hours", [0, 0, 0, 0, 376435], [0, 0, 0, 0, -376435]], ["minutes", [0, 0, 0, 0, 376435, 23], [0, 0, 0, 0, -376435, -23]], ["seconds", [0, 0, 0, 0, 376435, 23, 8], [0, 0, 0, 0, -376435, -23, -8]], ["milliseconds", [0, 0, 0, 0, 376435, 23, 8, 149], [0, 0, 0, 0, -376435, -23, -8, -149]], - ["microseconds", [0, 0, 0, 0, 376435, 23, 8, 148, 529], [0, 0, 0, 0, -376435, -23, -8, -148, -529]], - ["nanoseconds", [0, 0, 0, 0, 376435, 23, 8, 148, 529, 313], [0, 0, 0, 0, -376435, -23, -8, -148, -529, -313]], + ["microseconds", [0, 0, 0, 0, 376435, 23, 8, 148, 530], [0, 0, 0, 0, -376435, -23, -8, -148, -530]], + ["nanoseconds", [0, 0, 0, 0, 376435, 23, 8, 148, 529, 500], [0, 0, 0, 0, -376435, -23, -8, -148, -529, -500]], ]; const roundingMode = "halfExpand"; diff --git a/test/built-ins/Temporal/Instant/prototype/since/roundingmode-halfFloor.js b/test/built-ins/Temporal/Instant/prototype/since/roundingmode-halfFloor.js index 3a9fa6cfd2..ddf401af26 100644 --- a/test/built-ins/Temporal/Instant/prototype/since/roundingmode-halfFloor.js +++ b/test/built-ins/Temporal/Instant/prototype/since/roundingmode-halfFloor.js @@ -8,16 +8,16 @@ includes: [temporalHelpers.js] features: [Temporal] ---*/ -const earlier = new Temporal.Instant(217178610_123_456_789n); -const later = new Temporal.Instant(1572345998_271_986_102n); +const earlier = new Temporal.Instant(217178610_123_456_789n /* 1976-11-18T15:23:30.123456789Z */); +const later = new Temporal.Instant(1572345998_271_986_289n /* 2019-10-29T10:46:38.271986289Z */); const expected = [ ["hours", [0, 0, 0, 0, 376435], [0, 0, 0, 0, -376435]], ["minutes", [0, 0, 0, 0, 376435, 23], [0, 0, 0, 0, -376435, -23]], ["seconds", [0, 0, 0, 0, 376435, 23, 8], [0, 0, 0, 0, -376435, -23, -8]], ["milliseconds", [0, 0, 0, 0, 376435, 23, 8, 149], [0, 0, 0, 0, -376435, -23, -8, -149]], - ["microseconds", [0, 0, 0, 0, 376435, 23, 8, 148, 529], [0, 0, 0, 0, -376435, -23, -8, -148, -529]], - ["nanoseconds", [0, 0, 0, 0, 376435, 23, 8, 148, 529, 313], [0, 0, 0, 0, -376435, -23, -8, -148, -529, -313]], + ["microseconds", [0, 0, 0, 0, 376435, 23, 8, 148, 529], [0, 0, 0, 0, -376435, -23, -8, -148, -530]], + ["nanoseconds", [0, 0, 0, 0, 376435, 23, 8, 148, 529, 500], [0, 0, 0, 0, -376435, -23, -8, -148, -529, -500]], ]; const roundingMode = "halfFloor"; diff --git a/test/built-ins/Temporal/Instant/prototype/since/roundingmode-halfTrunc.js b/test/built-ins/Temporal/Instant/prototype/since/roundingmode-halfTrunc.js index 2a8722894d..4b7704e700 100644 --- a/test/built-ins/Temporal/Instant/prototype/since/roundingmode-halfTrunc.js +++ b/test/built-ins/Temporal/Instant/prototype/since/roundingmode-halfTrunc.js @@ -8,8 +8,8 @@ includes: [temporalHelpers.js] features: [Temporal] ---*/ -const earlier = new Temporal.Instant(217178610_123_456_789n); -const later = new Temporal.Instant(1572345998_271_986_102n); +const earlier = new Temporal.Instant(217178610_123_456_789n /* 1976-11-18T15:23:30.123456789Z */); +const later = new Temporal.Instant(1572345998_271_986_289n /* 2019-10-29T10:46:38.271986289Z */); const expected = [ ["hours", [0, 0, 0, 0, 376435], [0, 0, 0, 0, -376435]], @@ -17,7 +17,7 @@ const expected = [ ["seconds", [0, 0, 0, 0, 376435, 23, 8], [0, 0, 0, 0, -376435, -23, -8]], ["milliseconds", [0, 0, 0, 0, 376435, 23, 8, 149], [0, 0, 0, 0, -376435, -23, -8, -149]], ["microseconds", [0, 0, 0, 0, 376435, 23, 8, 148, 529], [0, 0, 0, 0, -376435, -23, -8, -148, -529]], - ["nanoseconds", [0, 0, 0, 0, 376435, 23, 8, 148, 529, 313], [0, 0, 0, 0, -376435, -23, -8, -148, -529, -313]], + ["nanoseconds", [0, 0, 0, 0, 376435, 23, 8, 148, 529, 500], [0, 0, 0, 0, -376435, -23, -8, -148, -529, -500]], ]; const roundingMode = "halfTrunc"; diff --git a/test/built-ins/Temporal/Instant/prototype/since/roundingmode-trunc.js b/test/built-ins/Temporal/Instant/prototype/since/roundingmode-trunc.js index a6936e2774..5139355e31 100644 --- a/test/built-ins/Temporal/Instant/prototype/since/roundingmode-trunc.js +++ b/test/built-ins/Temporal/Instant/prototype/since/roundingmode-trunc.js @@ -8,8 +8,8 @@ includes: [temporalHelpers.js] features: [Temporal] ---*/ -const earlier = new Temporal.Instant(217178610_123_456_789n); -const later = new Temporal.Instant(1572345998_271_986_102n); +const earlier = new Temporal.Instant(217178610_123_456_789n /* 1976-11-18T15:23:30.123456789Z */); +const later = new Temporal.Instant(1572345998_271_986_289n /* 2019-10-29T10:46:38.271986289Z */); const expected = [ ["hours", [0, 0, 0, 0, 376435], [0, 0, 0, 0, -376435]], @@ -17,7 +17,7 @@ const expected = [ ["seconds", [0, 0, 0, 0, 376435, 23, 8], [0, 0, 0, 0, -376435, -23, -8]], ["milliseconds", [0, 0, 0, 0, 376435, 23, 8, 148], [0, 0, 0, 0, -376435, -23, -8, -148]], ["microseconds", [0, 0, 0, 0, 376435, 23, 8, 148, 529], [0, 0, 0, 0, -376435, -23, -8, -148, -529]], - ["nanoseconds", [0, 0, 0, 0, 376435, 23, 8, 148, 529, 313], [0, 0, 0, 0, -376435, -23, -8, -148, -529, -313]], + ["nanoseconds", [0, 0, 0, 0, 376435, 23, 8, 148, 529, 500], [0, 0, 0, 0, -376435, -23, -8, -148, -529, -500]], ]; const roundingMode = "trunc"; diff --git a/test/built-ins/Temporal/Instant/prototype/until/roundingmode-ceil.js b/test/built-ins/Temporal/Instant/prototype/until/roundingmode-ceil.js index facf5fea70..362571d993 100644 --- a/test/built-ins/Temporal/Instant/prototype/until/roundingmode-ceil.js +++ b/test/built-ins/Temporal/Instant/prototype/until/roundingmode-ceil.js @@ -8,8 +8,8 @@ includes: [temporalHelpers.js] features: [Temporal] ---*/ -const earlier = new Temporal.Instant(217178610_123_456_789n); -const later = new Temporal.Instant(1572345998_271_986_102n); +const earlier = new Temporal.Instant(217178610_123_456_789n /* 1976-11-18T15:23:30.123456789Z */); +const later = new Temporal.Instant(1572345998_271_986_289n /* 2019-10-29T10:46:38.271986289Z */); const expected = [ ["hours", [0, 0, 0, 0, 376436], [0, 0, 0, 0, -376435]], @@ -17,7 +17,7 @@ const expected = [ ["seconds", [0, 0, 0, 0, 376435, 23, 9], [0, 0, 0, 0, -376435, -23, -8]], ["milliseconds", [0, 0, 0, 0, 376435, 23, 8, 149], [0, 0, 0, 0, -376435, -23, -8, -148]], ["microseconds", [0, 0, 0, 0, 376435, 23, 8, 148, 530], [0, 0, 0, 0, -376435, -23, -8, -148, -529]], - ["nanoseconds", [0, 0, 0, 0, 376435, 23, 8, 148, 529, 313], [0, 0, 0, 0, -376435, -23, -8, -148, -529, -313]], + ["nanoseconds", [0, 0, 0, 0, 376435, 23, 8, 148, 529, 500], [0, 0, 0, 0, -376435, -23, -8, -148, -529, -500]], ]; const roundingMode = "ceil"; diff --git a/test/built-ins/Temporal/Instant/prototype/until/roundingmode-expand.js b/test/built-ins/Temporal/Instant/prototype/until/roundingmode-expand.js index 47717659db..c8269e84da 100644 --- a/test/built-ins/Temporal/Instant/prototype/until/roundingmode-expand.js +++ b/test/built-ins/Temporal/Instant/prototype/until/roundingmode-expand.js @@ -8,8 +8,8 @@ includes: [temporalHelpers.js] features: [Temporal] ---*/ -const earlier = new Temporal.Instant(217178610_123_456_789n); -const later = new Temporal.Instant(1572345998_271_986_102n); +const earlier = new Temporal.Instant(217178610_123_456_789n /* 1976-11-18T15:23:30.123456789Z */); +const later = new Temporal.Instant(1572345998_271_986_289n /* 2019-10-29T10:46:38.271986289Z */); const expected = [ ["hours", [0, 0, 0, 0, 376436], [0, 0, 0, 0, -376436]], @@ -17,7 +17,7 @@ const expected = [ ["seconds", [0, 0, 0, 0, 376435, 23, 9], [0, 0, 0, 0, -376435, -23, -9]], ["milliseconds", [0, 0, 0, 0, 376435, 23, 8, 149], [0, 0, 0, 0, -376435, -23, -8, -149]], ["microseconds", [0, 0, 0, 0, 376435, 23, 8, 148, 530], [0, 0, 0, 0, -376435, -23, -8, -148, -530]], - ["nanoseconds", [0, 0, 0, 0, 376435, 23, 8, 148, 529, 313], [0, 0, 0, 0, -376435, -23, -8, -148, -529, -313]], + ["nanoseconds", [0, 0, 0, 0, 376435, 23, 8, 148, 529, 500], [0, 0, 0, 0, -376435, -23, -8, -148, -529, -500]], ]; const roundingMode = "expand"; diff --git a/test/built-ins/Temporal/Instant/prototype/until/roundingmode-floor.js b/test/built-ins/Temporal/Instant/prototype/until/roundingmode-floor.js index c53ddb4e1b..2bddbd9d7f 100644 --- a/test/built-ins/Temporal/Instant/prototype/until/roundingmode-floor.js +++ b/test/built-ins/Temporal/Instant/prototype/until/roundingmode-floor.js @@ -8,8 +8,8 @@ includes: [temporalHelpers.js] features: [Temporal] ---*/ -const earlier = new Temporal.Instant(217178610_123_456_789n); -const later = new Temporal.Instant(1572345998_271_986_102n); +const earlier = new Temporal.Instant(217178610_123_456_789n /* 1976-11-18T15:23:30.123456789Z */); +const later = new Temporal.Instant(1572345998_271_986_289n /* 2019-10-29T10:46:38.271986289Z */); const expected = [ ["hours", [0, 0, 0, 0, 376435], [0, 0, 0, 0, -376436]], @@ -17,7 +17,7 @@ const expected = [ ["seconds", [0, 0, 0, 0, 376435, 23, 8], [0, 0, 0, 0, -376435, -23, -9]], ["milliseconds", [0, 0, 0, 0, 376435, 23, 8, 148], [0, 0, 0, 0, -376435, -23, -8, -149]], ["microseconds", [0, 0, 0, 0, 376435, 23, 8, 148, 529], [0, 0, 0, 0, -376435, -23, -8, -148, -530]], - ["nanoseconds", [0, 0, 0, 0, 376435, 23, 8, 148, 529, 313], [0, 0, 0, 0, -376435, -23, -8, -148, -529, -313]], + ["nanoseconds", [0, 0, 0, 0, 376435, 23, 8, 148, 529, 500], [0, 0, 0, 0, -376435, -23, -8, -148, -529, -500]], ]; const roundingMode = "floor"; diff --git a/test/built-ins/Temporal/Instant/prototype/until/roundingmode-halfCeil.js b/test/built-ins/Temporal/Instant/prototype/until/roundingmode-halfCeil.js index 03fda5d343..3de10d720e 100644 --- a/test/built-ins/Temporal/Instant/prototype/until/roundingmode-halfCeil.js +++ b/test/built-ins/Temporal/Instant/prototype/until/roundingmode-halfCeil.js @@ -8,16 +8,16 @@ includes: [temporalHelpers.js] features: [Temporal] ---*/ -const earlier = new Temporal.Instant(217178610_123_456_789n); -const later = new Temporal.Instant(1572345998_271_986_102n); +const earlier = new Temporal.Instant(217178610_123_456_789n /* 1976-11-18T15:23:30.123456789Z */); +const later = new Temporal.Instant(1572345998_271_986_289n /* 2019-10-29T10:46:38.271986289Z */); const expected = [ ["hours", [0, 0, 0, 0, 376435], [0, 0, 0, 0, -376435]], ["minutes", [0, 0, 0, 0, 376435, 23], [0, 0, 0, 0, -376435, -23]], ["seconds", [0, 0, 0, 0, 376435, 23, 8], [0, 0, 0, 0, -376435, -23, -8]], ["milliseconds", [0, 0, 0, 0, 376435, 23, 8, 149], [0, 0, 0, 0, -376435, -23, -8, -149]], - ["microseconds", [0, 0, 0, 0, 376435, 23, 8, 148, 529], [0, 0, 0, 0, -376435, -23, -8, -148, -529]], - ["nanoseconds", [0, 0, 0, 0, 376435, 23, 8, 148, 529, 313], [0, 0, 0, 0, -376435, -23, -8, -148, -529, -313]], + ["microseconds", [0, 0, 0, 0, 376435, 23, 8, 148, 530], [0, 0, 0, 0, -376435, -23, -8, -148, -529]], + ["nanoseconds", [0, 0, 0, 0, 376435, 23, 8, 148, 529, 500], [0, 0, 0, 0, -376435, -23, -8, -148, -529, -500]], ]; const roundingMode = "halfCeil"; diff --git a/test/built-ins/Temporal/Instant/prototype/until/roundingmode-halfEven.js b/test/built-ins/Temporal/Instant/prototype/until/roundingmode-halfEven.js index 6e05872c1a..bd9542fc42 100644 --- a/test/built-ins/Temporal/Instant/prototype/until/roundingmode-halfEven.js +++ b/test/built-ins/Temporal/Instant/prototype/until/roundingmode-halfEven.js @@ -8,16 +8,16 @@ includes: [temporalHelpers.js] features: [Temporal] ---*/ -const earlier = new Temporal.Instant(217178610_123_456_789n); -const later = new Temporal.Instant(1572345998_271_986_102n); +const earlier = new Temporal.Instant(217178610_123_456_789n /* 1976-11-18T15:23:30.123456789Z */); +const later = new Temporal.Instant(1572345998_271_986_289n /* 2019-10-29T10:46:38.271986289Z */); const expected = [ ["hours", [0, 0, 0, 0, 376435], [0, 0, 0, 0, -376435]], ["minutes", [0, 0, 0, 0, 376435, 23], [0, 0, 0, 0, -376435, -23]], ["seconds", [0, 0, 0, 0, 376435, 23, 8], [0, 0, 0, 0, -376435, -23, -8]], ["milliseconds", [0, 0, 0, 0, 376435, 23, 8, 149], [0, 0, 0, 0, -376435, -23, -8, -149]], - ["microseconds", [0, 0, 0, 0, 376435, 23, 8, 148, 529], [0, 0, 0, 0, -376435, -23, -8, -148, -529]], - ["nanoseconds", [0, 0, 0, 0, 376435, 23, 8, 148, 529, 313], [0, 0, 0, 0, -376435, -23, -8, -148, -529, -313]], + ["microseconds", [0, 0, 0, 0, 376435, 23, 8, 148, 530], [0, 0, 0, 0, -376435, -23, -8, -148, -530]], + ["nanoseconds", [0, 0, 0, 0, 376435, 23, 8, 148, 529, 500], [0, 0, 0, 0, -376435, -23, -8, -148, -529, -500]], ]; const roundingMode = "halfEven"; diff --git a/test/built-ins/Temporal/Instant/prototype/until/roundingmode-halfExpand.js b/test/built-ins/Temporal/Instant/prototype/until/roundingmode-halfExpand.js index 9d38b71558..6d9b9d7a71 100644 --- a/test/built-ins/Temporal/Instant/prototype/until/roundingmode-halfExpand.js +++ b/test/built-ins/Temporal/Instant/prototype/until/roundingmode-halfExpand.js @@ -8,16 +8,16 @@ includes: [temporalHelpers.js] features: [Temporal] ---*/ -const earlier = new Temporal.Instant(217178610_123_456_789n); -const later = new Temporal.Instant(1572345998_271_986_102n); +const earlier = new Temporal.Instant(217178610_123_456_789n /* 1976-11-18T15:23:30.123456789Z */); +const later = new Temporal.Instant(1572345998_271_986_289n /* 2019-10-29T10:46:38.271986289Z */); const expected = [ ["hours", [0, 0, 0, 0, 376435], [0, 0, 0, 0, -376435]], ["minutes", [0, 0, 0, 0, 376435, 23], [0, 0, 0, 0, -376435, -23]], ["seconds", [0, 0, 0, 0, 376435, 23, 8], [0, 0, 0, 0, -376435, -23, -8]], ["milliseconds", [0, 0, 0, 0, 376435, 23, 8, 149], [0, 0, 0, 0, -376435, -23, -8, -149]], - ["microseconds", [0, 0, 0, 0, 376435, 23, 8, 148, 529], [0, 0, 0, 0, -376435, -23, -8, -148, -529]], - ["nanoseconds", [0, 0, 0, 0, 376435, 23, 8, 148, 529, 313], [0, 0, 0, 0, -376435, -23, -8, -148, -529, -313]], + ["microseconds", [0, 0, 0, 0, 376435, 23, 8, 148, 530], [0, 0, 0, 0, -376435, -23, -8, -148, -530]], + ["nanoseconds", [0, 0, 0, 0, 376435, 23, 8, 148, 529, 500], [0, 0, 0, 0, -376435, -23, -8, -148, -529, -500]], ]; const roundingMode = "halfExpand"; diff --git a/test/built-ins/Temporal/Instant/prototype/until/roundingmode-halfFloor.js b/test/built-ins/Temporal/Instant/prototype/until/roundingmode-halfFloor.js index fa6bfc8bb4..d7651be443 100644 --- a/test/built-ins/Temporal/Instant/prototype/until/roundingmode-halfFloor.js +++ b/test/built-ins/Temporal/Instant/prototype/until/roundingmode-halfFloor.js @@ -8,16 +8,16 @@ includes: [temporalHelpers.js] features: [Temporal] ---*/ -const earlier = new Temporal.Instant(217178610_123_456_789n); -const later = new Temporal.Instant(1572345998_271_986_102n); +const earlier = new Temporal.Instant(217178610_123_456_789n /* 1976-11-18T15:23:30.123456789Z */); +const later = new Temporal.Instant(1572345998_271_986_289n /* 2019-10-29T10:46:38.271986289Z */); const expected = [ ["hours", [0, 0, 0, 0, 376435], [0, 0, 0, 0, -376435]], ["minutes", [0, 0, 0, 0, 376435, 23], [0, 0, 0, 0, -376435, -23]], ["seconds", [0, 0, 0, 0, 376435, 23, 8], [0, 0, 0, 0, -376435, -23, -8]], ["milliseconds", [0, 0, 0, 0, 376435, 23, 8, 149], [0, 0, 0, 0, -376435, -23, -8, -149]], - ["microseconds", [0, 0, 0, 0, 376435, 23, 8, 148, 529], [0, 0, 0, 0, -376435, -23, -8, -148, -529]], - ["nanoseconds", [0, 0, 0, 0, 376435, 23, 8, 148, 529, 313], [0, 0, 0, 0, -376435, -23, -8, -148, -529, -313]], + ["microseconds", [0, 0, 0, 0, 376435, 23, 8, 148, 529], [0, 0, 0, 0, -376435, -23, -8, -148, -530]], + ["nanoseconds", [0, 0, 0, 0, 376435, 23, 8, 148, 529, 500], [0, 0, 0, 0, -376435, -23, -8, -148, -529, -500]], ]; const roundingMode = "halfFloor"; diff --git a/test/built-ins/Temporal/Instant/prototype/until/roundingmode-halfTrunc.js b/test/built-ins/Temporal/Instant/prototype/until/roundingmode-halfTrunc.js index 14c078cd68..fbe80ec511 100644 --- a/test/built-ins/Temporal/Instant/prototype/until/roundingmode-halfTrunc.js +++ b/test/built-ins/Temporal/Instant/prototype/until/roundingmode-halfTrunc.js @@ -8,8 +8,8 @@ includes: [temporalHelpers.js] features: [Temporal] ---*/ -const earlier = new Temporal.Instant(217178610_123_456_789n); -const later = new Temporal.Instant(1572345998_271_986_102n); +const earlier = new Temporal.Instant(217178610_123_456_789n /* 1976-11-18T15:23:30.123456789Z */); +const later = new Temporal.Instant(1572345998_271_986_289n /* 2019-10-29T10:46:38.271986289Z */); const expected = [ ["hours", [0, 0, 0, 0, 376435], [0, 0, 0, 0, -376435]], @@ -17,7 +17,7 @@ const expected = [ ["seconds", [0, 0, 0, 0, 376435, 23, 8], [0, 0, 0, 0, -376435, -23, -8]], ["milliseconds", [0, 0, 0, 0, 376435, 23, 8, 149], [0, 0, 0, 0, -376435, -23, -8, -149]], ["microseconds", [0, 0, 0, 0, 376435, 23, 8, 148, 529], [0, 0, 0, 0, -376435, -23, -8, -148, -529]], - ["nanoseconds", [0, 0, 0, 0, 376435, 23, 8, 148, 529, 313], [0, 0, 0, 0, -376435, -23, -8, -148, -529, -313]], + ["nanoseconds", [0, 0, 0, 0, 376435, 23, 8, 148, 529, 500], [0, 0, 0, 0, -376435, -23, -8, -148, -529, -500]], ]; const roundingMode = "halfTrunc"; diff --git a/test/built-ins/Temporal/Instant/prototype/until/roundingmode-trunc.js b/test/built-ins/Temporal/Instant/prototype/until/roundingmode-trunc.js index ed35d3b797..f10a9910b2 100644 --- a/test/built-ins/Temporal/Instant/prototype/until/roundingmode-trunc.js +++ b/test/built-ins/Temporal/Instant/prototype/until/roundingmode-trunc.js @@ -8,8 +8,8 @@ includes: [temporalHelpers.js] features: [Temporal] ---*/ -const earlier = new Temporal.Instant(217178610_123_456_789n); -const later = new Temporal.Instant(1572345998_271_986_102n); +const earlier = new Temporal.Instant(217178610_123_456_789n /* 1976-11-18T15:23:30.123456789Z */); +const later = new Temporal.Instant(1572345998_271_986_289n /* 2019-10-29T10:46:38.271986289Z */); const expected = [ ["hours", [0, 0, 0, 0, 376435], [0, 0, 0, 0, -376435]], @@ -17,7 +17,7 @@ const expected = [ ["seconds", [0, 0, 0, 0, 376435, 23, 8], [0, 0, 0, 0, -376435, -23, -8]], ["milliseconds", [0, 0, 0, 0, 376435, 23, 8, 148], [0, 0, 0, 0, -376435, -23, -8, -148]], ["microseconds", [0, 0, 0, 0, 376435, 23, 8, 148, 529], [0, 0, 0, 0, -376435, -23, -8, -148, -529]], - ["nanoseconds", [0, 0, 0, 0, 376435, 23, 8, 148, 529, 313], [0, 0, 0, 0, -376435, -23, -8, -148, -529, -313]], + ["nanoseconds", [0, 0, 0, 0, 376435, 23, 8, 148, 529, 500], [0, 0, 0, 0, -376435, -23, -8, -148, -529, -500]], ]; const roundingMode = "trunc"; diff --git a/test/built-ins/Temporal/PlainDateTime/prototype/round/roundingmode-ceil.js b/test/built-ins/Temporal/PlainDateTime/prototype/round/roundingmode-ceil.js index 8883a76a44..7cc7f61021 100644 --- a/test/built-ins/Temporal/PlainDateTime/prototype/round/roundingmode-ceil.js +++ b/test/built-ins/Temporal/PlainDateTime/prototype/round/roundingmode-ceil.js @@ -8,7 +8,7 @@ includes: [temporalHelpers.js] features: [Temporal] ---*/ -const instance = new Temporal.PlainDateTime(1976, 11, 18, 14, 23, 30, 123, 456, 789); +const instance = new Temporal.PlainDateTime(1976, 11, 18, 14, 23, 30, 123, 987, 500); const expected = [ ["day", [1976, 11, 'M11', 19]], @@ -16,8 +16,8 @@ const expected = [ ["minute", [1976, 11, 'M11', 18, 14, 24]], ["second", [1976, 11, 'M11', 18, 14, 23, 31]], ["millisecond", [1976, 11, 'M11', 18, 14, 23, 30, 124]], - ["microsecond", [1976, 11, 'M11', 18, 14, 23, 30, 123, 457]], - ["nanosecond", [1976, 11, 'M11', 18, 14, 23, 30, 123, 456, 789]], + ["microsecond", [1976, 11, 'M11', 18, 14, 23, 30, 123, 988]], + ["nanosecond", [1976, 11, 'M11', 18, 14, 23, 30, 123, 987, 500]], ]; const roundingMode = "ceil"; diff --git a/test/built-ins/Temporal/PlainDateTime/prototype/round/roundingmode-expand.js b/test/built-ins/Temporal/PlainDateTime/prototype/round/roundingmode-expand.js index 7c610eb5fc..7e9f64be47 100644 --- a/test/built-ins/Temporal/PlainDateTime/prototype/round/roundingmode-expand.js +++ b/test/built-ins/Temporal/PlainDateTime/prototype/round/roundingmode-expand.js @@ -8,7 +8,7 @@ includes: [temporalHelpers.js] features: [Temporal] ---*/ -const instance = new Temporal.PlainDateTime(1976, 11, 18, 14, 23, 30, 123, 456, 789); +const instance = new Temporal.PlainDateTime(1976, 11, 18, 14, 23, 30, 123, 987, 500); const expected = [ ["day", [1976, 11, 'M11', 19]], @@ -16,8 +16,8 @@ const expected = [ ["minute", [1976, 11, 'M11', 18, 14, 24]], ["second", [1976, 11, 'M11', 18, 14, 23, 31]], ["millisecond", [1976, 11, 'M11', 18, 14, 23, 30, 124]], - ["microsecond", [1976, 11, 'M11', 18, 14, 23, 30, 123, 457]], - ["nanosecond", [1976, 11, 'M11', 18, 14, 23, 30, 123, 456, 789]], + ["microsecond", [1976, 11, 'M11', 18, 14, 23, 30, 123, 988]], + ["nanosecond", [1976, 11, 'M11', 18, 14, 23, 30, 123, 987, 500]], ]; const roundingMode = "expand"; diff --git a/test/built-ins/Temporal/PlainDateTime/prototype/round/roundingmode-floor.js b/test/built-ins/Temporal/PlainDateTime/prototype/round/roundingmode-floor.js index 0decf5b043..382e3f4c51 100644 --- a/test/built-ins/Temporal/PlainDateTime/prototype/round/roundingmode-floor.js +++ b/test/built-ins/Temporal/PlainDateTime/prototype/round/roundingmode-floor.js @@ -8,7 +8,7 @@ includes: [temporalHelpers.js] features: [Temporal] ---*/ -const instance = new Temporal.PlainDateTime(1976, 11, 18, 14, 23, 30, 123, 456, 789); +const instance = new Temporal.PlainDateTime(1976, 11, 18, 14, 23, 30, 123, 987, 500); const expected = [ ["day", [1976, 11, 'M11', 18]], @@ -16,8 +16,8 @@ const expected = [ ["minute", [1976, 11, 'M11', 18, 14, 23]], ["second", [1976, 11, 'M11', 18, 14, 23, 30]], ["millisecond", [1976, 11, 'M11', 18, 14, 23, 30, 123]], - ["microsecond", [1976, 11, 'M11', 18, 14, 23, 30, 123, 456]], - ["nanosecond", [1976, 11, 'M11', 18, 14, 23, 30, 123, 456, 789]], + ["microsecond", [1976, 11, 'M11', 18, 14, 23, 30, 123, 987]], + ["nanosecond", [1976, 11, 'M11', 18, 14, 23, 30, 123, 987, 500]], ]; const roundingMode = "floor"; diff --git a/test/built-ins/Temporal/PlainDateTime/prototype/round/roundingmode-halfCeil.js b/test/built-ins/Temporal/PlainDateTime/prototype/round/roundingmode-halfCeil.js index 508861b1cd..e5580ae7fb 100644 --- a/test/built-ins/Temporal/PlainDateTime/prototype/round/roundingmode-halfCeil.js +++ b/test/built-ins/Temporal/PlainDateTime/prototype/round/roundingmode-halfCeil.js @@ -8,16 +8,16 @@ includes: [temporalHelpers.js] features: [Temporal] ---*/ -const instance = new Temporal.PlainDateTime(1976, 11, 18, 14, 23, 30, 123, 456, 789); +const instance = new Temporal.PlainDateTime(1976, 11, 18, 14, 23, 30, 123, 987, 500); const expected = [ ["day", [1976, 11, 'M11', 19]], ["hour", [1976, 11, 'M11', 18, 14]], ["minute", [1976, 11, 'M11', 18, 14, 24]], ["second", [1976, 11, 'M11', 18, 14, 23, 30]], - ["millisecond", [1976, 11, 'M11', 18, 14, 23, 30, 123]], - ["microsecond", [1976, 11, 'M11', 18, 14, 23, 30, 123, 457]], - ["nanosecond", [1976, 11, 'M11', 18, 14, 23, 30, 123, 456, 789]], + ["millisecond", [1976, 11, 'M11', 18, 14, 23, 30, 124]], + ["microsecond", [1976, 11, 'M11', 18, 14, 23, 30, 123, 988]], + ["nanosecond", [1976, 11, 'M11', 18, 14, 23, 30, 123, 987, 500]], ]; const roundingMode = "halfCeil"; diff --git a/test/built-ins/Temporal/PlainDateTime/prototype/round/roundingmode-halfEven.js b/test/built-ins/Temporal/PlainDateTime/prototype/round/roundingmode-halfEven.js index c53320aa62..62e85325fe 100644 --- a/test/built-ins/Temporal/PlainDateTime/prototype/round/roundingmode-halfEven.js +++ b/test/built-ins/Temporal/PlainDateTime/prototype/round/roundingmode-halfEven.js @@ -8,16 +8,16 @@ includes: [temporalHelpers.js] features: [Temporal] ---*/ -const instance = new Temporal.PlainDateTime(1976, 11, 18, 14, 23, 30, 123, 456, 789); +const instance = new Temporal.PlainDateTime(1976, 11, 18, 14, 23, 30, 123, 987, 500); const expected = [ ["day", [1976, 11, 'M11', 19]], ["hour", [1976, 11, 'M11', 18, 14]], ["minute", [1976, 11, 'M11', 18, 14, 24]], ["second", [1976, 11, 'M11', 18, 14, 23, 30]], - ["millisecond", [1976, 11, 'M11', 18, 14, 23, 30, 123]], - ["microsecond", [1976, 11, 'M11', 18, 14, 23, 30, 123, 457]], - ["nanosecond", [1976, 11, 'M11', 18, 14, 23, 30, 123, 456, 789]], + ["millisecond", [1976, 11, 'M11', 18, 14, 23, 30, 124]], + ["microsecond", [1976, 11, 'M11', 18, 14, 23, 30, 123, 988]], + ["nanosecond", [1976, 11, 'M11', 18, 14, 23, 30, 123, 987, 500]], ]; const roundingMode = "halfEven"; diff --git a/test/built-ins/Temporal/PlainDateTime/prototype/round/roundingmode-halfExpand.js b/test/built-ins/Temporal/PlainDateTime/prototype/round/roundingmode-halfExpand.js index 89b2ed0b19..858f8af055 100644 --- a/test/built-ins/Temporal/PlainDateTime/prototype/round/roundingmode-halfExpand.js +++ b/test/built-ins/Temporal/PlainDateTime/prototype/round/roundingmode-halfExpand.js @@ -8,16 +8,16 @@ includes: [temporalHelpers.js] features: [Temporal] ---*/ -const instance = new Temporal.PlainDateTime(1976, 11, 18, 14, 23, 30, 123, 456, 789); +const instance = new Temporal.PlainDateTime(1976, 11, 18, 14, 23, 30, 123, 987, 500); const expected = [ ["day", [1976, 11, 'M11', 19]], ["hour", [1976, 11, 'M11', 18, 14]], ["minute", [1976, 11, 'M11', 18, 14, 24]], ["second", [1976, 11, 'M11', 18, 14, 23, 30]], - ["millisecond", [1976, 11, 'M11', 18, 14, 23, 30, 123]], - ["microsecond", [1976, 11, 'M11', 18, 14, 23, 30, 123, 457]], - ["nanosecond", [1976, 11, 'M11', 18, 14, 23, 30, 123, 456, 789]], + ["millisecond", [1976, 11, 'M11', 18, 14, 23, 30, 124]], + ["microsecond", [1976, 11, 'M11', 18, 14, 23, 30, 123, 988]], + ["nanosecond", [1976, 11, 'M11', 18, 14, 23, 30, 123, 987, 500]], ]; const roundingMode = "halfExpand"; diff --git a/test/built-ins/Temporal/PlainDateTime/prototype/round/roundingmode-halfFloor.js b/test/built-ins/Temporal/PlainDateTime/prototype/round/roundingmode-halfFloor.js index 37b6a8e551..63fbf70d38 100644 --- a/test/built-ins/Temporal/PlainDateTime/prototype/round/roundingmode-halfFloor.js +++ b/test/built-ins/Temporal/PlainDateTime/prototype/round/roundingmode-halfFloor.js @@ -8,16 +8,16 @@ includes: [temporalHelpers.js] features: [Temporal] ---*/ -const instance = new Temporal.PlainDateTime(1976, 11, 18, 14, 23, 30, 123, 456, 789); +const instance = new Temporal.PlainDateTime(1976, 11, 18, 14, 23, 30, 123, 987, 500); const expected = [ ["day", [1976, 11, 'M11', 19]], ["hour", [1976, 11, 'M11', 18, 14]], ["minute", [1976, 11, 'M11', 18, 14, 24]], ["second", [1976, 11, 'M11', 18, 14, 23, 30]], - ["millisecond", [1976, 11, 'M11', 18, 14, 23, 30, 123]], - ["microsecond", [1976, 11, 'M11', 18, 14, 23, 30, 123, 457]], - ["nanosecond", [1976, 11, 'M11', 18, 14, 23, 30, 123, 456, 789]], + ["millisecond", [1976, 11, 'M11', 18, 14, 23, 30, 124]], + ["microsecond", [1976, 11, 'M11', 18, 14, 23, 30, 123, 987]], + ["nanosecond", [1976, 11, 'M11', 18, 14, 23, 30, 123, 987, 500]], ]; const roundingMode = "halfFloor"; diff --git a/test/built-ins/Temporal/PlainDateTime/prototype/round/roundingmode-halfTrunc.js b/test/built-ins/Temporal/PlainDateTime/prototype/round/roundingmode-halfTrunc.js index 017477954d..920c28539d 100644 --- a/test/built-ins/Temporal/PlainDateTime/prototype/round/roundingmode-halfTrunc.js +++ b/test/built-ins/Temporal/PlainDateTime/prototype/round/roundingmode-halfTrunc.js @@ -8,16 +8,16 @@ includes: [temporalHelpers.js] features: [Temporal] ---*/ -const instance = new Temporal.PlainDateTime(1976, 11, 18, 14, 23, 30, 123, 456, 789); +const instance = new Temporal.PlainDateTime(1976, 11, 18, 14, 23, 30, 123, 987, 500); const expected = [ ["day", [1976, 11, 'M11', 19]], ["hour", [1976, 11, 'M11', 18, 14]], ["minute", [1976, 11, 'M11', 18, 14, 24]], ["second", [1976, 11, 'M11', 18, 14, 23, 30]], - ["millisecond", [1976, 11, 'M11', 18, 14, 23, 30, 123]], - ["microsecond", [1976, 11, 'M11', 18, 14, 23, 30, 123, 457]], - ["nanosecond", [1976, 11, 'M11', 18, 14, 23, 30, 123, 456, 789]], + ["millisecond", [1976, 11, 'M11', 18, 14, 23, 30, 124]], + ["microsecond", [1976, 11, 'M11', 18, 14, 23, 30, 123, 987]], + ["nanosecond", [1976, 11, 'M11', 18, 14, 23, 30, 123, 987, 500]], ]; const roundingMode = "halfTrunc"; diff --git a/test/built-ins/Temporal/PlainDateTime/prototype/round/roundingmode-trunc.js b/test/built-ins/Temporal/PlainDateTime/prototype/round/roundingmode-trunc.js index 554cf6f0a2..42d1e798e5 100644 --- a/test/built-ins/Temporal/PlainDateTime/prototype/round/roundingmode-trunc.js +++ b/test/built-ins/Temporal/PlainDateTime/prototype/round/roundingmode-trunc.js @@ -8,7 +8,7 @@ includes: [temporalHelpers.js] features: [Temporal] ---*/ -const instance = new Temporal.PlainDateTime(1976, 11, 18, 14, 23, 30, 123, 456, 789); +const instance = new Temporal.PlainDateTime(1976, 11, 18, 14, 23, 30, 123, 987, 500); const expected = [ ["day", [1976, 11, 'M11', 18]], @@ -16,8 +16,8 @@ const expected = [ ["minute", [1976, 11, 'M11', 18, 14, 23]], ["second", [1976, 11, 'M11', 18, 14, 23, 30]], ["millisecond", [1976, 11, 'M11', 18, 14, 23, 30, 123]], - ["microsecond", [1976, 11, 'M11', 18, 14, 23, 30, 123, 456]], - ["nanosecond", [1976, 11, 'M11', 18, 14, 23, 30, 123, 456, 789]], + ["microsecond", [1976, 11, 'M11', 18, 14, 23, 30, 123, 987]], + ["nanosecond", [1976, 11, 'M11', 18, 14, 23, 30, 123, 987, 500]], ]; const roundingMode = "trunc"; diff --git a/test/built-ins/Temporal/PlainDateTime/prototype/since/roundingmode-ceil.js b/test/built-ins/Temporal/PlainDateTime/prototype/since/roundingmode-ceil.js index 048ecc5a53..6fc462a19c 100644 --- a/test/built-ins/Temporal/PlainDateTime/prototype/since/roundingmode-ceil.js +++ b/test/built-ins/Temporal/PlainDateTime/prototype/since/roundingmode-ceil.js @@ -9,7 +9,7 @@ features: [Temporal] ---*/ const earlier = new Temporal.PlainDateTime(2019, 1, 8, 8, 22, 36, 123, 456, 789); -const later = new Temporal.PlainDateTime(2021, 9, 7, 12, 39, 40, 987, 654, 321); +const later = new Temporal.PlainDateTime(2021, 9, 7, 12, 39, 40, 987, 654, 289); const expected = [ ["years", [3], [-2]], @@ -21,7 +21,7 @@ const expected = [ ["seconds", [0, 0, 0, 973, 4, 17, 5], [0, 0, 0, -973, -4, -17, -4]], ["milliseconds", [0, 0, 0, 973, 4, 17, 4, 865], [0, 0, 0, -973, -4, -17, -4, -864]], ["microseconds", [0, 0, 0, 973, 4, 17, 4, 864, 198], [0, 0, 0, -973, -4, -17, -4, -864, -197]], - ["nanoseconds", [0, 0, 0, 973, 4, 17, 4, 864, 197, 532], [0, 0, 0, -973, -4, -17, -4, -864, -197, -532]], + ["nanoseconds", [0, 0, 0, 973, 4, 17, 4, 864, 197, 500], [0, 0, 0, -973, -4, -17, -4, -864, -197, -500]], ]; const roundingMode = "ceil"; diff --git a/test/built-ins/Temporal/PlainDateTime/prototype/since/roundingmode-expand.js b/test/built-ins/Temporal/PlainDateTime/prototype/since/roundingmode-expand.js index 0ec933a5ed..afb0b0007f 100644 --- a/test/built-ins/Temporal/PlainDateTime/prototype/since/roundingmode-expand.js +++ b/test/built-ins/Temporal/PlainDateTime/prototype/since/roundingmode-expand.js @@ -9,7 +9,7 @@ features: [Temporal] ---*/ const earlier = new Temporal.PlainDateTime(2019, 1, 8, 8, 22, 36, 123, 456, 789); -const later = new Temporal.PlainDateTime(2021, 9, 7, 12, 39, 40, 987, 654, 321); +const later = new Temporal.PlainDateTime(2021, 9, 7, 12, 39, 40, 987, 654, 289); const expected = [ ["years", [3], [-3]], @@ -21,7 +21,7 @@ const expected = [ ["seconds", [0, 0, 0, 973, 4, 17, 5], [0, 0, 0, -973, -4, -17, -5]], ["milliseconds", [0, 0, 0, 973, 4, 17, 4, 865], [0, 0, 0, -973, -4, -17, -4, -865]], ["microseconds", [0, 0, 0, 973, 4, 17, 4, 864, 198], [0, 0, 0, -973, -4, -17, -4, -864, -198]], - ["nanoseconds", [0, 0, 0, 973, 4, 17, 4, 864, 197, 532], [0, 0, 0, -973, -4, -17, -4, -864, -197, -532]], + ["nanoseconds", [0, 0, 0, 973, 4, 17, 4, 864, 197, 500], [0, 0, 0, -973, -4, -17, -4, -864, -197, -500]], ]; const roundingMode = "expand"; diff --git a/test/built-ins/Temporal/PlainDateTime/prototype/since/roundingmode-floor.js b/test/built-ins/Temporal/PlainDateTime/prototype/since/roundingmode-floor.js index 11dca6d296..93cb30d17d 100644 --- a/test/built-ins/Temporal/PlainDateTime/prototype/since/roundingmode-floor.js +++ b/test/built-ins/Temporal/PlainDateTime/prototype/since/roundingmode-floor.js @@ -9,7 +9,7 @@ features: [Temporal] ---*/ const earlier = new Temporal.PlainDateTime(2019, 1, 8, 8, 22, 36, 123, 456, 789); -const later = new Temporal.PlainDateTime(2021, 9, 7, 12, 39, 40, 987, 654, 321); +const later = new Temporal.PlainDateTime(2021, 9, 7, 12, 39, 40, 987, 654, 289); const expected = [ ["years", [2], [-3]], @@ -21,7 +21,7 @@ const expected = [ ["seconds", [0, 0, 0, 973, 4, 17, 4], [0, 0, 0, -973, -4, -17, -5]], ["milliseconds", [0, 0, 0, 973, 4, 17, 4, 864], [0, 0, 0, -973, -4, -17, -4, -865]], ["microseconds", [0, 0, 0, 973, 4, 17, 4, 864, 197], [0, 0, 0, -973, -4, -17, -4, -864, -198]], - ["nanoseconds", [0, 0, 0, 973, 4, 17, 4, 864, 197, 532], [0, 0, 0, -973, -4, -17, -4, -864, -197, -532]], + ["nanoseconds", [0, 0, 0, 973, 4, 17, 4, 864, 197, 500], [0, 0, 0, -973, -4, -17, -4, -864, -197, -500]], ]; const roundingMode = "floor"; diff --git a/test/built-ins/Temporal/PlainDateTime/prototype/since/roundingmode-halfCeil.js b/test/built-ins/Temporal/PlainDateTime/prototype/since/roundingmode-halfCeil.js index 2954fa8501..3084768496 100644 --- a/test/built-ins/Temporal/PlainDateTime/prototype/since/roundingmode-halfCeil.js +++ b/test/built-ins/Temporal/PlainDateTime/prototype/since/roundingmode-halfCeil.js @@ -9,7 +9,7 @@ features: [Temporal] ---*/ const earlier = new Temporal.PlainDateTime(2019, 1, 8, 8, 22, 36, 123, 456, 789); -const later = new Temporal.PlainDateTime(2021, 9, 7, 12, 39, 40, 987, 654, 321); +const later = new Temporal.PlainDateTime(2021, 9, 7, 12, 39, 40, 987, 654, 289); const expected = [ ["years", [3], [-3]], @@ -20,8 +20,8 @@ const expected = [ ["minutes", [0, 0, 0, 973, 4, 17], [0, 0, 0, -973, -4, -17]], ["seconds", [0, 0, 0, 973, 4, 17, 5], [0, 0, 0, -973, -4, -17, -5]], ["milliseconds", [0, 0, 0, 973, 4, 17, 4, 864], [0, 0, 0, -973, -4, -17, -4, -864]], - ["microseconds", [0, 0, 0, 973, 4, 17, 4, 864, 198], [0, 0, 0, -973, -4, -17, -4, -864, -198]], - ["nanoseconds", [0, 0, 0, 973, 4, 17, 4, 864, 197, 532], [0, 0, 0, -973, -4, -17, -4, -864, -197, -532]], + ["microseconds", [0, 0, 0, 973, 4, 17, 4, 864, 198], [0, 0, 0, -973, -4, -17, -4, -864, -197]], + ["nanoseconds", [0, 0, 0, 973, 4, 17, 4, 864, 197, 500], [0, 0, 0, -973, -4, -17, -4, -864, -197, -500]], ]; const roundingMode = "halfCeil"; diff --git a/test/built-ins/Temporal/PlainDateTime/prototype/since/roundingmode-halfEven.js b/test/built-ins/Temporal/PlainDateTime/prototype/since/roundingmode-halfEven.js index 908cd9e8c0..2cf6421195 100644 --- a/test/built-ins/Temporal/PlainDateTime/prototype/since/roundingmode-halfEven.js +++ b/test/built-ins/Temporal/PlainDateTime/prototype/since/roundingmode-halfEven.js @@ -9,7 +9,7 @@ features: [Temporal] ---*/ const earlier = new Temporal.PlainDateTime(2019, 1, 8, 8, 22, 36, 123, 456, 789); -const later = new Temporal.PlainDateTime(2021, 9, 7, 12, 39, 40, 987, 654, 321); +const later = new Temporal.PlainDateTime(2021, 9, 7, 12, 39, 40, 987, 654, 289); const expected = [ ["years", [3], [-3]], @@ -21,7 +21,7 @@ const expected = [ ["seconds", [0, 0, 0, 973, 4, 17, 5], [0, 0, 0, -973, -4, -17, -5]], ["milliseconds", [0, 0, 0, 973, 4, 17, 4, 864], [0, 0, 0, -973, -4, -17, -4, -864]], ["microseconds", [0, 0, 0, 973, 4, 17, 4, 864, 198], [0, 0, 0, -973, -4, -17, -4, -864, -198]], - ["nanoseconds", [0, 0, 0, 973, 4, 17, 4, 864, 197, 532], [0, 0, 0, -973, -4, -17, -4, -864, -197, -532]], + ["nanoseconds", [0, 0, 0, 973, 4, 17, 4, 864, 197, 500], [0, 0, 0, -973, -4, -17, -4, -864, -197, -500]], ]; const roundingMode = "halfEven"; diff --git a/test/built-ins/Temporal/PlainDateTime/prototype/since/roundingmode-halfExpand.js b/test/built-ins/Temporal/PlainDateTime/prototype/since/roundingmode-halfExpand.js index 3e84508af9..abe62a7ff3 100644 --- a/test/built-ins/Temporal/PlainDateTime/prototype/since/roundingmode-halfExpand.js +++ b/test/built-ins/Temporal/PlainDateTime/prototype/since/roundingmode-halfExpand.js @@ -9,7 +9,7 @@ features: [Temporal] ---*/ const earlier = new Temporal.PlainDateTime(2019, 1, 8, 8, 22, 36, 123, 456, 789); -const later = new Temporal.PlainDateTime(2021, 9, 7, 12, 39, 40, 987, 654, 321); +const later = new Temporal.PlainDateTime(2021, 9, 7, 12, 39, 40, 987, 654, 289); const expected = [ ["years", [3], [-3]], @@ -21,7 +21,7 @@ const expected = [ ["seconds", [0, 0, 0, 973, 4, 17, 5], [0, 0, 0, -973, -4, -17, -5]], ["milliseconds", [0, 0, 0, 973, 4, 17, 4, 864], [0, 0, 0, -973, -4, -17, -4, -864]], ["microseconds", [0, 0, 0, 973, 4, 17, 4, 864, 198], [0, 0, 0, -973, -4, -17, -4, -864, -198]], - ["nanoseconds", [0, 0, 0, 973, 4, 17, 4, 864, 197, 532], [0, 0, 0, -973, -4, -17, -4, -864, -197, -532]], + ["nanoseconds", [0, 0, 0, 973, 4, 17, 4, 864, 197, 500], [0, 0, 0, -973, -4, -17, -4, -864, -197, -500]], ]; const roundingMode = "halfExpand"; diff --git a/test/built-ins/Temporal/PlainDateTime/prototype/since/roundingmode-halfFloor.js b/test/built-ins/Temporal/PlainDateTime/prototype/since/roundingmode-halfFloor.js index d71b07c533..44d733a93b 100644 --- a/test/built-ins/Temporal/PlainDateTime/prototype/since/roundingmode-halfFloor.js +++ b/test/built-ins/Temporal/PlainDateTime/prototype/since/roundingmode-halfFloor.js @@ -9,7 +9,7 @@ features: [Temporal] ---*/ const earlier = new Temporal.PlainDateTime(2019, 1, 8, 8, 22, 36, 123, 456, 789); -const later = new Temporal.PlainDateTime(2021, 9, 7, 12, 39, 40, 987, 654, 321); +const later = new Temporal.PlainDateTime(2021, 9, 7, 12, 39, 40, 987, 654, 289); const expected = [ ["years", [3], [-3]], @@ -20,8 +20,8 @@ const expected = [ ["minutes", [0, 0, 0, 973, 4, 17], [0, 0, 0, -973, -4, -17]], ["seconds", [0, 0, 0, 973, 4, 17, 5], [0, 0, 0, -973, -4, -17, -5]], ["milliseconds", [0, 0, 0, 973, 4, 17, 4, 864], [0, 0, 0, -973, -4, -17, -4, -864]], - ["microseconds", [0, 0, 0, 973, 4, 17, 4, 864, 198], [0, 0, 0, -973, -4, -17, -4, -864, -198]], - ["nanoseconds", [0, 0, 0, 973, 4, 17, 4, 864, 197, 532], [0, 0, 0, -973, -4, -17, -4, -864, -197, -532]], + ["microseconds", [0, 0, 0, 973, 4, 17, 4, 864, 197], [0, 0, 0, -973, -4, -17, -4, -864, -198]], + ["nanoseconds", [0, 0, 0, 973, 4, 17, 4, 864, 197, 500], [0, 0, 0, -973, -4, -17, -4, -864, -197, -500]], ]; const roundingMode = "halfFloor"; diff --git a/test/built-ins/Temporal/PlainDateTime/prototype/since/roundingmode-halfTrunc.js b/test/built-ins/Temporal/PlainDateTime/prototype/since/roundingmode-halfTrunc.js index ad467c3722..fc2390965e 100644 --- a/test/built-ins/Temporal/PlainDateTime/prototype/since/roundingmode-halfTrunc.js +++ b/test/built-ins/Temporal/PlainDateTime/prototype/since/roundingmode-halfTrunc.js @@ -9,7 +9,7 @@ features: [Temporal] ---*/ const earlier = new Temporal.PlainDateTime(2019, 1, 8, 8, 22, 36, 123, 456, 789); -const later = new Temporal.PlainDateTime(2021, 9, 7, 12, 39, 40, 987, 654, 321); +const later = new Temporal.PlainDateTime(2021, 9, 7, 12, 39, 40, 987, 654, 289); const expected = [ ["years", [3], [-3]], @@ -20,8 +20,8 @@ const expected = [ ["minutes", [0, 0, 0, 973, 4, 17], [0, 0, 0, -973, -4, -17]], ["seconds", [0, 0, 0, 973, 4, 17, 5], [0, 0, 0, -973, -4, -17, -5]], ["milliseconds", [0, 0, 0, 973, 4, 17, 4, 864], [0, 0, 0, -973, -4, -17, -4, -864]], - ["microseconds", [0, 0, 0, 973, 4, 17, 4, 864, 198], [0, 0, 0, -973, -4, -17, -4, -864, -198]], - ["nanoseconds", [0, 0, 0, 973, 4, 17, 4, 864, 197, 532], [0, 0, 0, -973, -4, -17, -4, -864, -197, -532]], + ["microseconds", [0, 0, 0, 973, 4, 17, 4, 864, 197], [0, 0, 0, -973, -4, -17, -4, -864, -197]], + ["nanoseconds", [0, 0, 0, 973, 4, 17, 4, 864, 197, 500], [0, 0, 0, -973, -4, -17, -4, -864, -197, -500]], ]; const roundingMode = "halfTrunc"; diff --git a/test/built-ins/Temporal/PlainDateTime/prototype/since/roundingmode-trunc.js b/test/built-ins/Temporal/PlainDateTime/prototype/since/roundingmode-trunc.js index 7d7a89e019..111d424811 100644 --- a/test/built-ins/Temporal/PlainDateTime/prototype/since/roundingmode-trunc.js +++ b/test/built-ins/Temporal/PlainDateTime/prototype/since/roundingmode-trunc.js @@ -9,7 +9,7 @@ features: [Temporal] ---*/ const earlier = new Temporal.PlainDateTime(2019, 1, 8, 8, 22, 36, 123, 456, 789); -const later = new Temporal.PlainDateTime(2021, 9, 7, 12, 39, 40, 987, 654, 321); +const later = new Temporal.PlainDateTime(2021, 9, 7, 12, 39, 40, 987, 654, 289); const expected = [ ["years", [2], [-2]], @@ -21,7 +21,7 @@ const expected = [ ["seconds", [0, 0, 0, 973, 4, 17, 4], [0, 0, 0, -973, -4, -17, -4]], ["milliseconds", [0, 0, 0, 973, 4, 17, 4, 864], [0, 0, 0, -973, -4, -17, -4, -864]], ["microseconds", [0, 0, 0, 973, 4, 17, 4, 864, 197], [0, 0, 0, -973, -4, -17, -4, -864, -197]], - ["nanoseconds", [0, 0, 0, 973, 4, 17, 4, 864, 197, 532], [0, 0, 0, -973, -4, -17, -4, -864, -197, -532]], + ["nanoseconds", [0, 0, 0, 973, 4, 17, 4, 864, 197, 500], [0, 0, 0, -973, -4, -17, -4, -864, -197, -500]], ]; const roundingMode = "trunc"; diff --git a/test/built-ins/Temporal/PlainDateTime/prototype/until/roundingmode-ceil.js b/test/built-ins/Temporal/PlainDateTime/prototype/until/roundingmode-ceil.js index 7d5e0110c4..d1ac3513c6 100644 --- a/test/built-ins/Temporal/PlainDateTime/prototype/until/roundingmode-ceil.js +++ b/test/built-ins/Temporal/PlainDateTime/prototype/until/roundingmode-ceil.js @@ -9,7 +9,7 @@ features: [Temporal] ---*/ const earlier = new Temporal.PlainDateTime(2019, 1, 8, 8, 22, 36, 123, 456, 789); -const later = new Temporal.PlainDateTime(2021, 9, 7, 12, 39, 40, 987, 654, 321); +const later = new Temporal.PlainDateTime(2021, 9, 7, 12, 39, 40, 987, 654, 289); const expected = [ ["years", [3], [-2]], @@ -21,7 +21,7 @@ const expected = [ ["seconds", [0, 0, 0, 973, 4, 17, 5], [0, 0, 0, -973, -4, -17, -4]], ["milliseconds", [0, 0, 0, 973, 4, 17, 4, 865], [0, 0, 0, -973, -4, -17, -4, -864]], ["microseconds", [0, 0, 0, 973, 4, 17, 4, 864, 198], [0, 0, 0, -973, -4, -17, -4, -864, -197]], - ["nanoseconds", [0, 0, 0, 973, 4, 17, 4, 864, 197, 532], [0, 0, 0, -973, -4, -17, -4, -864, -197, -532]], + ["nanoseconds", [0, 0, 0, 973, 4, 17, 4, 864, 197, 500], [0, 0, 0, -973, -4, -17, -4, -864, -197, -500]], ]; const roundingMode = "ceil"; diff --git a/test/built-ins/Temporal/PlainDateTime/prototype/until/roundingmode-expand.js b/test/built-ins/Temporal/PlainDateTime/prototype/until/roundingmode-expand.js index 45975458f7..c403857000 100644 --- a/test/built-ins/Temporal/PlainDateTime/prototype/until/roundingmode-expand.js +++ b/test/built-ins/Temporal/PlainDateTime/prototype/until/roundingmode-expand.js @@ -9,7 +9,7 @@ features: [Temporal] ---*/ const earlier = new Temporal.PlainDateTime(2019, 1, 8, 8, 22, 36, 123, 456, 789); -const later = new Temporal.PlainDateTime(2021, 9, 7, 12, 39, 40, 987, 654, 321); +const later = new Temporal.PlainDateTime(2021, 9, 7, 12, 39, 40, 987, 654, 289); const expected = [ ["years", [3], [-3]], @@ -21,7 +21,7 @@ const expected = [ ["seconds", [0, 0, 0, 973, 4, 17, 5], [0, 0, 0, -973, -4, -17, -5]], ["milliseconds", [0, 0, 0, 973, 4, 17, 4, 865], [0, 0, 0, -973, -4, -17, -4, -865]], ["microseconds", [0, 0, 0, 973, 4, 17, 4, 864, 198], [0, 0, 0, -973, -4, -17, -4, -864, -198]], - ["nanoseconds", [0, 0, 0, 973, 4, 17, 4, 864, 197, 532], [0, 0, 0, -973, -4, -17, -4, -864, -197, -532]], + ["nanoseconds", [0, 0, 0, 973, 4, 17, 4, 864, 197, 500], [0, 0, 0, -973, -4, -17, -4, -864, -197, -500]], ]; const roundingMode = "expand"; diff --git a/test/built-ins/Temporal/PlainDateTime/prototype/until/roundingmode-floor.js b/test/built-ins/Temporal/PlainDateTime/prototype/until/roundingmode-floor.js index 3225334dbb..34c28acf78 100644 --- a/test/built-ins/Temporal/PlainDateTime/prototype/until/roundingmode-floor.js +++ b/test/built-ins/Temporal/PlainDateTime/prototype/until/roundingmode-floor.js @@ -9,7 +9,7 @@ features: [Temporal] ---*/ const earlier = new Temporal.PlainDateTime(2019, 1, 8, 8, 22, 36, 123, 456, 789); -const later = new Temporal.PlainDateTime(2021, 9, 7, 12, 39, 40, 987, 654, 321); +const later = new Temporal.PlainDateTime(2021, 9, 7, 12, 39, 40, 987, 654, 289); const expected = [ ["years", [2], [-3]], @@ -21,7 +21,7 @@ const expected = [ ["seconds", [0, 0, 0, 973, 4, 17, 4], [0, 0, 0, -973, -4, -17, -5]], ["milliseconds", [0, 0, 0, 973, 4, 17, 4, 864], [0, 0, 0, -973, -4, -17, -4, -865]], ["microseconds", [0, 0, 0, 973, 4, 17, 4, 864, 197], [0, 0, 0, -973, -4, -17, -4, -864, -198]], - ["nanoseconds", [0, 0, 0, 973, 4, 17, 4, 864, 197, 532], [0, 0, 0, -973, -4, -17, -4, -864, -197, -532]], + ["nanoseconds", [0, 0, 0, 973, 4, 17, 4, 864, 197, 500], [0, 0, 0, -973, -4, -17, -4, -864, -197, -500]], ]; const roundingMode = "floor"; diff --git a/test/built-ins/Temporal/PlainDateTime/prototype/until/roundingmode-halfCeil.js b/test/built-ins/Temporal/PlainDateTime/prototype/until/roundingmode-halfCeil.js index d1223f2581..3f826c0fe9 100644 --- a/test/built-ins/Temporal/PlainDateTime/prototype/until/roundingmode-halfCeil.js +++ b/test/built-ins/Temporal/PlainDateTime/prototype/until/roundingmode-halfCeil.js @@ -9,7 +9,7 @@ features: [Temporal] ---*/ const earlier = new Temporal.PlainDateTime(2019, 1, 8, 8, 22, 36, 123, 456, 789); -const later = new Temporal.PlainDateTime(2021, 9, 7, 12, 39, 40, 987, 654, 321); +const later = new Temporal.PlainDateTime(2021, 9, 7, 12, 39, 40, 987, 654, 289); const expected = [ ["years", [3], [-3]], @@ -20,8 +20,8 @@ const expected = [ ["minutes", [0, 0, 0, 973, 4, 17], [0, 0, 0, -973, -4, -17]], ["seconds", [0, 0, 0, 973, 4, 17, 5], [0, 0, 0, -973, -4, -17, -5]], ["milliseconds", [0, 0, 0, 973, 4, 17, 4, 864], [0, 0, 0, -973, -4, -17, -4, -864]], - ["microseconds", [0, 0, 0, 973, 4, 17, 4, 864, 198], [0, 0, 0, -973, -4, -17, -4, -864, -198]], - ["nanoseconds", [0, 0, 0, 973, 4, 17, 4, 864, 197, 532], [0, 0, 0, -973, -4, -17, -4, -864, -197, -532]], + ["microseconds", [0, 0, 0, 973, 4, 17, 4, 864, 198], [0, 0, 0, -973, -4, -17, -4, -864, -197]], + ["nanoseconds", [0, 0, 0, 973, 4, 17, 4, 864, 197, 500], [0, 0, 0, -973, -4, -17, -4, -864, -197, -500]], ]; const roundingMode = "halfCeil"; diff --git a/test/built-ins/Temporal/PlainDateTime/prototype/until/roundingmode-halfEven.js b/test/built-ins/Temporal/PlainDateTime/prototype/until/roundingmode-halfEven.js index 3397387ca8..51bdc20313 100644 --- a/test/built-ins/Temporal/PlainDateTime/prototype/until/roundingmode-halfEven.js +++ b/test/built-ins/Temporal/PlainDateTime/prototype/until/roundingmode-halfEven.js @@ -9,7 +9,7 @@ features: [Temporal] ---*/ const earlier = new Temporal.PlainDateTime(2019, 1, 8, 8, 22, 36, 123, 456, 789); -const later = new Temporal.PlainDateTime(2021, 9, 7, 12, 39, 40, 987, 654, 321); +const later = new Temporal.PlainDateTime(2021, 9, 7, 12, 39, 40, 987, 654, 289); const expected = [ ["years", [3], [-3]], @@ -21,7 +21,7 @@ const expected = [ ["seconds", [0, 0, 0, 973, 4, 17, 5], [0, 0, 0, -973, -4, -17, -5]], ["milliseconds", [0, 0, 0, 973, 4, 17, 4, 864], [0, 0, 0, -973, -4, -17, -4, -864]], ["microseconds", [0, 0, 0, 973, 4, 17, 4, 864, 198], [0, 0, 0, -973, -4, -17, -4, -864, -198]], - ["nanoseconds", [0, 0, 0, 973, 4, 17, 4, 864, 197, 532], [0, 0, 0, -973, -4, -17, -4, -864, -197, -532]], + ["nanoseconds", [0, 0, 0, 973, 4, 17, 4, 864, 197, 500], [0, 0, 0, -973, -4, -17, -4, -864, -197, -500]], ]; const roundingMode = "halfEven"; diff --git a/test/built-ins/Temporal/PlainDateTime/prototype/until/roundingmode-halfExpand.js b/test/built-ins/Temporal/PlainDateTime/prototype/until/roundingmode-halfExpand.js index a70628b4ea..aac1fef898 100644 --- a/test/built-ins/Temporal/PlainDateTime/prototype/until/roundingmode-halfExpand.js +++ b/test/built-ins/Temporal/PlainDateTime/prototype/until/roundingmode-halfExpand.js @@ -9,7 +9,7 @@ features: [Temporal] ---*/ const earlier = new Temporal.PlainDateTime(2019, 1, 8, 8, 22, 36, 123, 456, 789); -const later = new Temporal.PlainDateTime(2021, 9, 7, 12, 39, 40, 987, 654, 321); +const later = new Temporal.PlainDateTime(2021, 9, 7, 12, 39, 40, 987, 654, 289); const expected = [ ["years", [3], [-3]], @@ -21,7 +21,7 @@ const expected = [ ["seconds", [0, 0, 0, 973, 4, 17, 5], [0, 0, 0, -973, -4, -17, -5]], ["milliseconds", [0, 0, 0, 973, 4, 17, 4, 864], [0, 0, 0, -973, -4, -17, -4, -864]], ["microseconds", [0, 0, 0, 973, 4, 17, 4, 864, 198], [0, 0, 0, -973, -4, -17, -4, -864, -198]], - ["nanoseconds", [0, 0, 0, 973, 4, 17, 4, 864, 197, 532], [0, 0, 0, -973, -4, -17, -4, -864, -197, -532]], + ["nanoseconds", [0, 0, 0, 973, 4, 17, 4, 864, 197, 500], [0, 0, 0, -973, -4, -17, -4, -864, -197, -500]], ]; const roundingMode = "halfExpand"; diff --git a/test/built-ins/Temporal/PlainDateTime/prototype/until/roundingmode-halfFloor.js b/test/built-ins/Temporal/PlainDateTime/prototype/until/roundingmode-halfFloor.js index ac2350dc8e..5f19461f05 100644 --- a/test/built-ins/Temporal/PlainDateTime/prototype/until/roundingmode-halfFloor.js +++ b/test/built-ins/Temporal/PlainDateTime/prototype/until/roundingmode-halfFloor.js @@ -9,7 +9,7 @@ features: [Temporal] ---*/ const earlier = new Temporal.PlainDateTime(2019, 1, 8, 8, 22, 36, 123, 456, 789); -const later = new Temporal.PlainDateTime(2021, 9, 7, 12, 39, 40, 987, 654, 321); +const later = new Temporal.PlainDateTime(2021, 9, 7, 12, 39, 40, 987, 654, 289); const expected = [ ["years", [3], [-3]], @@ -20,8 +20,8 @@ const expected = [ ["minutes", [0, 0, 0, 973, 4, 17], [0, 0, 0, -973, -4, -17]], ["seconds", [0, 0, 0, 973, 4, 17, 5], [0, 0, 0, -973, -4, -17, -5]], ["milliseconds", [0, 0, 0, 973, 4, 17, 4, 864], [0, 0, 0, -973, -4, -17, -4, -864]], - ["microseconds", [0, 0, 0, 973, 4, 17, 4, 864, 198], [0, 0, 0, -973, -4, -17, -4, -864, -198]], - ["nanoseconds", [0, 0, 0, 973, 4, 17, 4, 864, 197, 532], [0, 0, 0, -973, -4, -17, -4, -864, -197, -532]], + ["microseconds", [0, 0, 0, 973, 4, 17, 4, 864, 197], [0, 0, 0, -973, -4, -17, -4, -864, -198]], + ["nanoseconds", [0, 0, 0, 973, 4, 17, 4, 864, 197, 500], [0, 0, 0, -973, -4, -17, -4, -864, -197, -500]], ]; const roundingMode = "halfFloor"; diff --git a/test/built-ins/Temporal/PlainDateTime/prototype/until/roundingmode-halfTrunc.js b/test/built-ins/Temporal/PlainDateTime/prototype/until/roundingmode-halfTrunc.js index f2c874de82..bda39a01b5 100644 --- a/test/built-ins/Temporal/PlainDateTime/prototype/until/roundingmode-halfTrunc.js +++ b/test/built-ins/Temporal/PlainDateTime/prototype/until/roundingmode-halfTrunc.js @@ -9,7 +9,7 @@ features: [Temporal] ---*/ const earlier = new Temporal.PlainDateTime(2019, 1, 8, 8, 22, 36, 123, 456, 789); -const later = new Temporal.PlainDateTime(2021, 9, 7, 12, 39, 40, 987, 654, 321); +const later = new Temporal.PlainDateTime(2021, 9, 7, 12, 39, 40, 987, 654, 289); const expected = [ ["years", [3], [-3]], @@ -20,8 +20,8 @@ const expected = [ ["minutes", [0, 0, 0, 973, 4, 17], [0, 0, 0, -973, -4, -17]], ["seconds", [0, 0, 0, 973, 4, 17, 5], [0, 0, 0, -973, -4, -17, -5]], ["milliseconds", [0, 0, 0, 973, 4, 17, 4, 864], [0, 0, 0, -973, -4, -17, -4, -864]], - ["microseconds", [0, 0, 0, 973, 4, 17, 4, 864, 198], [0, 0, 0, -973, -4, -17, -4, -864, -198]], - ["nanoseconds", [0, 0, 0, 973, 4, 17, 4, 864, 197, 532], [0, 0, 0, -973, -4, -17, -4, -864, -197, -532]], + ["microseconds", [0, 0, 0, 973, 4, 17, 4, 864, 197], [0, 0, 0, -973, -4, -17, -4, -864, -197]], + ["nanoseconds", [0, 0, 0, 973, 4, 17, 4, 864, 197, 500], [0, 0, 0, -973, -4, -17, -4, -864, -197, -500]], ]; const roundingMode = "halfTrunc"; diff --git a/test/built-ins/Temporal/PlainDateTime/prototype/until/roundingmode-trunc.js b/test/built-ins/Temporal/PlainDateTime/prototype/until/roundingmode-trunc.js index eb87726eac..7776da9ac1 100644 --- a/test/built-ins/Temporal/PlainDateTime/prototype/until/roundingmode-trunc.js +++ b/test/built-ins/Temporal/PlainDateTime/prototype/until/roundingmode-trunc.js @@ -9,7 +9,7 @@ features: [Temporal] ---*/ const earlier = new Temporal.PlainDateTime(2019, 1, 8, 8, 22, 36, 123, 456, 789); -const later = new Temporal.PlainDateTime(2021, 9, 7, 12, 39, 40, 987, 654, 321); +const later = new Temporal.PlainDateTime(2021, 9, 7, 12, 39, 40, 987, 654, 289); const expected = [ ["years", [2], [-2]], @@ -21,7 +21,7 @@ const expected = [ ["seconds", [0, 0, 0, 973, 4, 17, 4], [0, 0, 0, -973, -4, -17, -4]], ["milliseconds", [0, 0, 0, 973, 4, 17, 4, 864], [0, 0, 0, -973, -4, -17, -4, -864]], ["microseconds", [0, 0, 0, 973, 4, 17, 4, 864, 197], [0, 0, 0, -973, -4, -17, -4, -864, -197]], - ["nanoseconds", [0, 0, 0, 973, 4, 17, 4, 864, 197, 532], [0, 0, 0, -973, -4, -17, -4, -864, -197, -532]], + ["nanoseconds", [0, 0, 0, 973, 4, 17, 4, 864, 197, 500], [0, 0, 0, -973, -4, -17, -4, -864, -197, -500]], ]; const roundingMode = "trunc"; diff --git a/test/built-ins/Temporal/PlainTime/prototype/round/roundingmode-ceil.js b/test/built-ins/Temporal/PlainTime/prototype/round/roundingmode-ceil.js index 0692ddc607..f6b899e386 100644 --- a/test/built-ins/Temporal/PlainTime/prototype/round/roundingmode-ceil.js +++ b/test/built-ins/Temporal/PlainTime/prototype/round/roundingmode-ceil.js @@ -8,15 +8,15 @@ includes: [temporalHelpers.js] features: [Temporal] ---*/ -const instance = new Temporal.PlainTime(13, 46, 23, 123, 456, 789); +const instance = new Temporal.PlainTime(13, 46, 23, 123, 987, 500); const expected = [ ["hour", [14]], ["minute", [13, 47]], ["second", [13, 46, 24]], ["millisecond", [13, 46, 23, 124]], - ["microsecond", [13, 46, 23, 123, 457]], - ["nanosecond", [13, 46, 23, 123, 456, 789]], + ["microsecond", [13, 46, 23, 123, 988]], + ["nanosecond", [13, 46, 23, 123, 987, 500]], ]; const roundingMode = "ceil"; diff --git a/test/built-ins/Temporal/PlainTime/prototype/round/roundingmode-expand.js b/test/built-ins/Temporal/PlainTime/prototype/round/roundingmode-expand.js index cd4e336298..c0dbd56281 100644 --- a/test/built-ins/Temporal/PlainTime/prototype/round/roundingmode-expand.js +++ b/test/built-ins/Temporal/PlainTime/prototype/round/roundingmode-expand.js @@ -8,15 +8,15 @@ includes: [temporalHelpers.js] features: [Temporal] ---*/ -const instance = new Temporal.PlainTime(13, 46, 23, 123, 456, 789); +const instance = new Temporal.PlainTime(13, 46, 23, 123, 987, 500); const expected = [ ["hour", [14]], ["minute", [13, 47]], ["second", [13, 46, 24]], ["millisecond", [13, 46, 23, 124]], - ["microsecond", [13, 46, 23, 123, 457]], - ["nanosecond", [13, 46, 23, 123, 456, 789]], + ["microsecond", [13, 46, 23, 123, 988]], + ["nanosecond", [13, 46, 23, 123, 987, 500]], ]; const roundingMode = "expand"; diff --git a/test/built-ins/Temporal/PlainTime/prototype/round/roundingmode-floor.js b/test/built-ins/Temporal/PlainTime/prototype/round/roundingmode-floor.js index 61e4edc125..dad4dbea6c 100644 --- a/test/built-ins/Temporal/PlainTime/prototype/round/roundingmode-floor.js +++ b/test/built-ins/Temporal/PlainTime/prototype/round/roundingmode-floor.js @@ -8,15 +8,15 @@ includes: [temporalHelpers.js] features: [Temporal] ---*/ -const instance = new Temporal.PlainTime(13, 46, 23, 123, 456, 789); +const instance = new Temporal.PlainTime(13, 46, 23, 123, 987, 500); const expected = [ ["hour", [13]], ["minute", [13, 46]], ["second", [13, 46, 23]], ["millisecond", [13, 46, 23, 123]], - ["microsecond", [13, 46, 23, 123, 456]], - ["nanosecond", [13, 46, 23, 123, 456, 789]], + ["microsecond", [13, 46, 23, 123, 987]], + ["nanosecond", [13, 46, 23, 123, 987, 500]], ]; const roundingMode = "floor"; diff --git a/test/built-ins/Temporal/PlainTime/prototype/round/roundingmode-halfCeil.js b/test/built-ins/Temporal/PlainTime/prototype/round/roundingmode-halfCeil.js index 6215a1f967..c0975c5245 100644 --- a/test/built-ins/Temporal/PlainTime/prototype/round/roundingmode-halfCeil.js +++ b/test/built-ins/Temporal/PlainTime/prototype/round/roundingmode-halfCeil.js @@ -8,15 +8,15 @@ includes: [temporalHelpers.js] features: [Temporal] ---*/ -const instance = new Temporal.PlainTime(13, 46, 23, 123, 456, 789); +const instance = new Temporal.PlainTime(13, 46, 23, 123, 987, 500); const expected = [ ["hour", [14]], ["minute", [13, 46]], ["second", [13, 46, 23]], - ["millisecond", [13, 46, 23, 123]], - ["microsecond", [13, 46, 23, 123, 457]], - ["nanosecond", [13, 46, 23, 123, 456, 789]], + ["millisecond", [13, 46, 23, 124]], + ["microsecond", [13, 46, 23, 123, 988]], + ["nanosecond", [13, 46, 23, 123, 987, 500]], ]; const roundingMode = "halfCeil"; diff --git a/test/built-ins/Temporal/PlainTime/prototype/round/roundingmode-halfEven.js b/test/built-ins/Temporal/PlainTime/prototype/round/roundingmode-halfEven.js index 647375b9bf..0620ae4d2f 100644 --- a/test/built-ins/Temporal/PlainTime/prototype/round/roundingmode-halfEven.js +++ b/test/built-ins/Temporal/PlainTime/prototype/round/roundingmode-halfEven.js @@ -8,15 +8,15 @@ includes: [temporalHelpers.js] features: [Temporal] ---*/ -const instance = new Temporal.PlainTime(13, 46, 23, 123, 456, 789); +const instance = new Temporal.PlainTime(13, 46, 23, 123, 987, 500); const expected = [ ["hour", [14]], ["minute", [13, 46]], ["second", [13, 46, 23]], - ["millisecond", [13, 46, 23, 123]], - ["microsecond", [13, 46, 23, 123, 457]], - ["nanosecond", [13, 46, 23, 123, 456, 789]], + ["millisecond", [13, 46, 23, 124]], + ["microsecond", [13, 46, 23, 123, 988]], + ["nanosecond", [13, 46, 23, 123, 987, 500]], ]; const roundingMode = "halfEven"; diff --git a/test/built-ins/Temporal/PlainTime/prototype/round/roundingmode-halfExpand.js b/test/built-ins/Temporal/PlainTime/prototype/round/roundingmode-halfExpand.js index 361019d8bc..eb50f112dc 100644 --- a/test/built-ins/Temporal/PlainTime/prototype/round/roundingmode-halfExpand.js +++ b/test/built-ins/Temporal/PlainTime/prototype/round/roundingmode-halfExpand.js @@ -8,15 +8,15 @@ includes: [temporalHelpers.js] features: [Temporal] ---*/ -const instance = new Temporal.PlainTime(13, 46, 23, 123, 456, 789); +const instance = new Temporal.PlainTime(13, 46, 23, 123, 987, 500); const expected = [ ["hour", [14]], ["minute", [13, 46]], ["second", [13, 46, 23]], - ["millisecond", [13, 46, 23, 123]], - ["microsecond", [13, 46, 23, 123, 457]], - ["nanosecond", [13, 46, 23, 123, 456, 789]], + ["millisecond", [13, 46, 23, 124]], + ["microsecond", [13, 46, 23, 123, 988]], + ["nanosecond", [13, 46, 23, 123, 987, 500]], ]; const roundingMode = "halfExpand"; diff --git a/test/built-ins/Temporal/PlainTime/prototype/round/roundingmode-halfFloor.js b/test/built-ins/Temporal/PlainTime/prototype/round/roundingmode-halfFloor.js index 6d4164ea51..b52c65267b 100644 --- a/test/built-ins/Temporal/PlainTime/prototype/round/roundingmode-halfFloor.js +++ b/test/built-ins/Temporal/PlainTime/prototype/round/roundingmode-halfFloor.js @@ -8,15 +8,15 @@ includes: [temporalHelpers.js] features: [Temporal] ---*/ -const instance = new Temporal.PlainTime(13, 46, 23, 123, 456, 789); +const instance = new Temporal.PlainTime(13, 46, 23, 123, 987, 500); const expected = [ ["hour", [14]], ["minute", [13, 46]], ["second", [13, 46, 23]], - ["millisecond", [13, 46, 23, 123]], - ["microsecond", [13, 46, 23, 123, 457]], - ["nanosecond", [13, 46, 23, 123, 456, 789]], + ["millisecond", [13, 46, 23, 124]], + ["microsecond", [13, 46, 23, 123, 987]], + ["nanosecond", [13, 46, 23, 123, 987, 500]], ]; const roundingMode = "halfFloor"; diff --git a/test/built-ins/Temporal/PlainTime/prototype/round/roundingmode-halfTrunc.js b/test/built-ins/Temporal/PlainTime/prototype/round/roundingmode-halfTrunc.js index 836e7b2a22..7d818ff7c6 100644 --- a/test/built-ins/Temporal/PlainTime/prototype/round/roundingmode-halfTrunc.js +++ b/test/built-ins/Temporal/PlainTime/prototype/round/roundingmode-halfTrunc.js @@ -8,15 +8,15 @@ includes: [temporalHelpers.js] features: [Temporal] ---*/ -const instance = new Temporal.PlainTime(13, 46, 23, 123, 456, 789); +const instance = new Temporal.PlainTime(13, 46, 23, 123, 987, 500); const expected = [ ["hour", [14]], ["minute", [13, 46]], ["second", [13, 46, 23]], - ["millisecond", [13, 46, 23, 123]], - ["microsecond", [13, 46, 23, 123, 457]], - ["nanosecond", [13, 46, 23, 123, 456, 789]], + ["millisecond", [13, 46, 23, 124]], + ["microsecond", [13, 46, 23, 123, 987]], + ["nanosecond", [13, 46, 23, 123, 987, 500]], ]; const roundingMode = "halfTrunc"; diff --git a/test/built-ins/Temporal/PlainTime/prototype/round/roundingmode-trunc.js b/test/built-ins/Temporal/PlainTime/prototype/round/roundingmode-trunc.js index a3c6d92cb7..de6c3f0405 100644 --- a/test/built-ins/Temporal/PlainTime/prototype/round/roundingmode-trunc.js +++ b/test/built-ins/Temporal/PlainTime/prototype/round/roundingmode-trunc.js @@ -8,15 +8,15 @@ includes: [temporalHelpers.js] features: [Temporal] ---*/ -const instance = new Temporal.PlainTime(13, 46, 23, 123, 456, 789); +const instance = new Temporal.PlainTime(13, 46, 23, 123, 987, 500); const expected = [ ["hour", [13]], ["minute", [13, 46]], ["second", [13, 46, 23]], ["millisecond", [13, 46, 23, 123]], - ["microsecond", [13, 46, 23, 123, 456]], - ["nanosecond", [13, 46, 23, 123, 456, 789]], + ["microsecond", [13, 46, 23, 123, 987]], + ["nanosecond", [13, 46, 23, 123, 987, 500]], ]; const roundingMode = "trunc"; diff --git a/test/built-ins/Temporal/PlainTime/prototype/since/roundingmode-ceil.js b/test/built-ins/Temporal/PlainTime/prototype/since/roundingmode-ceil.js index 3d1578d7d7..70526502f4 100644 --- a/test/built-ins/Temporal/PlainTime/prototype/since/roundingmode-ceil.js +++ b/test/built-ins/Temporal/PlainTime/prototype/since/roundingmode-ceil.js @@ -9,7 +9,7 @@ features: [Temporal] ---*/ const earlier = new Temporal.PlainTime(8, 22, 36, 123, 456, 789); -const later = new Temporal.PlainTime(12, 39, 40, 987, 654, 321); +const later = new Temporal.PlainTime(12, 39, 40, 987, 654, 289); const expected = [ ["hours", [0, 0, 0, 0, 5], [0, 0, 0, 0, -4]], @@ -17,7 +17,7 @@ const expected = [ ["seconds", [0, 0, 0, 0, 4, 17, 5], [0, 0, 0, 0, -4, -17, -4]], ["milliseconds", [0, 0, 0, 0, 4, 17, 4, 865], [0, 0, 0, 0, -4, -17, -4, -864]], ["microseconds", [0, 0, 0, 0, 4, 17, 4, 864, 198], [0, 0, 0, 0, -4, -17, -4, -864, -197]], - ["nanoseconds", [0, 0, 0, 0, 4, 17, 4, 864, 197, 532], [0, 0, 0, 0, -4, -17, -4, -864, -197, -532]], + ["nanoseconds", [0, 0, 0, 0, 4, 17, 4, 864, 197, 500], [0, 0, 0, 0, -4, -17, -4, -864, -197, -500]], ]; const roundingMode = "ceil"; diff --git a/test/built-ins/Temporal/PlainTime/prototype/since/roundingmode-expand.js b/test/built-ins/Temporal/PlainTime/prototype/since/roundingmode-expand.js index 7b912d7564..624bef0529 100644 --- a/test/built-ins/Temporal/PlainTime/prototype/since/roundingmode-expand.js +++ b/test/built-ins/Temporal/PlainTime/prototype/since/roundingmode-expand.js @@ -9,7 +9,7 @@ features: [Temporal] ---*/ const earlier = new Temporal.PlainTime(8, 22, 36, 123, 456, 789); -const later = new Temporal.PlainTime(12, 39, 40, 987, 654, 321); +const later = new Temporal.PlainTime(12, 39, 40, 987, 654, 289); const expected = [ ["hours", [0, 0, 0, 0, 5], [0, 0, 0, 0, -5]], @@ -17,7 +17,7 @@ const expected = [ ["seconds", [0, 0, 0, 0, 4, 17, 5], [0, 0, 0, 0, -4, -17, -5]], ["milliseconds", [0, 0, 0, 0, 4, 17, 4, 865], [0, 0, 0, 0, -4, -17, -4, -865]], ["microseconds", [0, 0, 0, 0, 4, 17, 4, 864, 198], [0, 0, 0, 0, -4, -17, -4, -864, -198]], - ["nanoseconds", [0, 0, 0, 0, 4, 17, 4, 864, 197, 532], [0, 0, 0, 0, -4, -17, -4, -864, -197, -532]], + ["nanoseconds", [0, 0, 0, 0, 4, 17, 4, 864, 197, 500], [0, 0, 0, 0, -4, -17, -4, -864, -197, -500]], ]; const roundingMode = "expand"; diff --git a/test/built-ins/Temporal/PlainTime/prototype/since/roundingmode-floor.js b/test/built-ins/Temporal/PlainTime/prototype/since/roundingmode-floor.js index 88a8530e98..ae8049c054 100644 --- a/test/built-ins/Temporal/PlainTime/prototype/since/roundingmode-floor.js +++ b/test/built-ins/Temporal/PlainTime/prototype/since/roundingmode-floor.js @@ -9,7 +9,7 @@ features: [Temporal] ---*/ const earlier = new Temporal.PlainTime(8, 22, 36, 123, 456, 789); -const later = new Temporal.PlainTime(12, 39, 40, 987, 654, 321); +const later = new Temporal.PlainTime(12, 39, 40, 987, 654, 289); const expected = [ ["hours", [0, 0, 0, 0, 4], [0, 0, 0, 0, -5]], @@ -17,7 +17,7 @@ const expected = [ ["seconds", [0, 0, 0, 0, 4, 17, 4], [0, 0, 0, 0, -4, -17, -5]], ["milliseconds", [0, 0, 0, 0, 4, 17, 4, 864], [0, 0, 0, 0, -4, -17, -4, -865]], ["microseconds", [0, 0, 0, 0, 4, 17, 4, 864, 197], [0, 0, 0, 0, -4, -17, -4, -864, -198]], - ["nanoseconds", [0, 0, 0, 0, 4, 17, 4, 864, 197, 532], [0, 0, 0, 0, -4, -17, -4, -864, -197, -532]], + ["nanoseconds", [0, 0, 0, 0, 4, 17, 4, 864, 197, 500], [0, 0, 0, 0, -4, -17, -4, -864, -197, -500]], ]; const roundingMode = "floor"; diff --git a/test/built-ins/Temporal/PlainTime/prototype/since/roundingmode-halfCeil.js b/test/built-ins/Temporal/PlainTime/prototype/since/roundingmode-halfCeil.js index cc1f77229f..6e87a07bd7 100644 --- a/test/built-ins/Temporal/PlainTime/prototype/since/roundingmode-halfCeil.js +++ b/test/built-ins/Temporal/PlainTime/prototype/since/roundingmode-halfCeil.js @@ -9,15 +9,15 @@ features: [Temporal] ---*/ const earlier = new Temporal.PlainTime(8, 22, 36, 123, 456, 789); -const later = new Temporal.PlainTime(12, 39, 40, 987, 654, 321); +const later = new Temporal.PlainTime(12, 39, 40, 987, 654, 289); const expected = [ ["hours", [0, 0, 0, 0, 4], [0, 0, 0, 0, -4]], ["minutes", [0, 0, 0, 0, 4, 17], [0, 0, 0, 0, -4, -17]], ["seconds", [0, 0, 0, 0, 4, 17, 5], [0, 0, 0, 0, -4, -17, -5]], ["milliseconds", [0, 0, 0, 0, 4, 17, 4, 864], [0, 0, 0, 0, -4, -17, -4, -864]], - ["microseconds", [0, 0, 0, 0, 4, 17, 4, 864, 198], [0, 0, 0, 0, -4, -17, -4, -864, -198]], - ["nanoseconds", [0, 0, 0, 0, 4, 17, 4, 864, 197, 532], [0, 0, 0, 0, -4, -17, -4, -864, -197, -532]], + ["microseconds", [0, 0, 0, 0, 4, 17, 4, 864, 198], [0, 0, 0, 0, -4, -17, -4, -864, -197]], + ["nanoseconds", [0, 0, 0, 0, 4, 17, 4, 864, 197, 500], [0, 0, 0, 0, -4, -17, -4, -864, -197, -500]], ]; const roundingMode = "halfCeil"; diff --git a/test/built-ins/Temporal/PlainTime/prototype/since/roundingmode-halfEven.js b/test/built-ins/Temporal/PlainTime/prototype/since/roundingmode-halfEven.js index edd387cb45..7700224cc8 100644 --- a/test/built-ins/Temporal/PlainTime/prototype/since/roundingmode-halfEven.js +++ b/test/built-ins/Temporal/PlainTime/prototype/since/roundingmode-halfEven.js @@ -9,7 +9,7 @@ features: [Temporal] ---*/ const earlier = new Temporal.PlainTime(8, 22, 36, 123, 456, 789); -const later = new Temporal.PlainTime(12, 39, 40, 987, 654, 321); +const later = new Temporal.PlainTime(12, 39, 40, 987, 654, 289); const expected = [ ["hours", [0, 0, 0, 0, 4], [0, 0, 0, 0, -4]], @@ -17,7 +17,7 @@ const expected = [ ["seconds", [0, 0, 0, 0, 4, 17, 5], [0, 0, 0, 0, -4, -17, -5]], ["milliseconds", [0, 0, 0, 0, 4, 17, 4, 864], [0, 0, 0, 0, -4, -17, -4, -864]], ["microseconds", [0, 0, 0, 0, 4, 17, 4, 864, 198], [0, 0, 0, 0, -4, -17, -4, -864, -198]], - ["nanoseconds", [0, 0, 0, 0, 4, 17, 4, 864, 197, 532], [0, 0, 0, 0, -4, -17, -4, -864, -197, -532]], + ["nanoseconds", [0, 0, 0, 0, 4, 17, 4, 864, 197, 500], [0, 0, 0, 0, -4, -17, -4, -864, -197, -500]], ]; const roundingMode = "halfEven"; diff --git a/test/built-ins/Temporal/PlainTime/prototype/since/roundingmode-halfExpand.js b/test/built-ins/Temporal/PlainTime/prototype/since/roundingmode-halfExpand.js index 1c3445f685..651384f2ef 100644 --- a/test/built-ins/Temporal/PlainTime/prototype/since/roundingmode-halfExpand.js +++ b/test/built-ins/Temporal/PlainTime/prototype/since/roundingmode-halfExpand.js @@ -9,7 +9,7 @@ features: [Temporal] ---*/ const earlier = new Temporal.PlainTime(8, 22, 36, 123, 456, 789); -const later = new Temporal.PlainTime(12, 39, 40, 987, 654, 321); +const later = new Temporal.PlainTime(12, 39, 40, 987, 654, 289); const expected = [ ["hours", [0, 0, 0, 0, 4], [0, 0, 0, 0, -4]], @@ -17,7 +17,7 @@ const expected = [ ["seconds", [0, 0, 0, 0, 4, 17, 5], [0, 0, 0, 0, -4, -17, -5]], ["milliseconds", [0, 0, 0, 0, 4, 17, 4, 864], [0, 0, 0, 0, -4, -17, -4, -864]], ["microseconds", [0, 0, 0, 0, 4, 17, 4, 864, 198], [0, 0, 0, 0, -4, -17, -4, -864, -198]], - ["nanoseconds", [0, 0, 0, 0, 4, 17, 4, 864, 197, 532], [0, 0, 0, 0, -4, -17, -4, -864, -197, -532]], + ["nanoseconds", [0, 0, 0, 0, 4, 17, 4, 864, 197, 500], [0, 0, 0, 0, -4, -17, -4, -864, -197, -500]], ]; const roundingMode = "halfExpand"; diff --git a/test/built-ins/Temporal/PlainTime/prototype/since/roundingmode-halfFloor.js b/test/built-ins/Temporal/PlainTime/prototype/since/roundingmode-halfFloor.js index d55360cbbc..28c63d1c85 100644 --- a/test/built-ins/Temporal/PlainTime/prototype/since/roundingmode-halfFloor.js +++ b/test/built-ins/Temporal/PlainTime/prototype/since/roundingmode-halfFloor.js @@ -9,15 +9,15 @@ features: [Temporal] ---*/ const earlier = new Temporal.PlainTime(8, 22, 36, 123, 456, 789); -const later = new Temporal.PlainTime(12, 39, 40, 987, 654, 321); +const later = new Temporal.PlainTime(12, 39, 40, 987, 654, 289); const expected = [ ["hours", [0, 0, 0, 0, 4], [0, 0, 0, 0, -4]], ["minutes", [0, 0, 0, 0, 4, 17], [0, 0, 0, 0, -4, -17]], ["seconds", [0, 0, 0, 0, 4, 17, 5], [0, 0, 0, 0, -4, -17, -5]], ["milliseconds", [0, 0, 0, 0, 4, 17, 4, 864], [0, 0, 0, 0, -4, -17, -4, -864]], - ["microseconds", [0, 0, 0, 0, 4, 17, 4, 864, 198], [0, 0, 0, 0, -4, -17, -4, -864, -198]], - ["nanoseconds", [0, 0, 0, 0, 4, 17, 4, 864, 197, 532], [0, 0, 0, 0, -4, -17, -4, -864, -197, -532]], + ["microseconds", [0, 0, 0, 0, 4, 17, 4, 864, 197], [0, 0, 0, 0, -4, -17, -4, -864, -198]], + ["nanoseconds", [0, 0, 0, 0, 4, 17, 4, 864, 197, 500], [0, 0, 0, 0, -4, -17, -4, -864, -197, -500]], ]; const roundingMode = "halfFloor"; diff --git a/test/built-ins/Temporal/PlainTime/prototype/since/roundingmode-halfTrunc.js b/test/built-ins/Temporal/PlainTime/prototype/since/roundingmode-halfTrunc.js index 40fdddd916..f30a788cda 100644 --- a/test/built-ins/Temporal/PlainTime/prototype/since/roundingmode-halfTrunc.js +++ b/test/built-ins/Temporal/PlainTime/prototype/since/roundingmode-halfTrunc.js @@ -9,15 +9,15 @@ features: [Temporal] ---*/ const earlier = new Temporal.PlainTime(8, 22, 36, 123, 456, 789); -const later = new Temporal.PlainTime(12, 39, 40, 987, 654, 321); +const later = new Temporal.PlainTime(12, 39, 40, 987, 654, 289); const expected = [ ["hours", [0, 0, 0, 0, 4], [0, 0, 0, 0, -4]], ["minutes", [0, 0, 0, 0, 4, 17], [0, 0, 0, 0, -4, -17]], ["seconds", [0, 0, 0, 0, 4, 17, 5], [0, 0, 0, 0, -4, -17, -5]], ["milliseconds", [0, 0, 0, 0, 4, 17, 4, 864], [0, 0, 0, 0, -4, -17, -4, -864]], - ["microseconds", [0, 0, 0, 0, 4, 17, 4, 864, 198], [0, 0, 0, 0, -4, -17, -4, -864, -198]], - ["nanoseconds", [0, 0, 0, 0, 4, 17, 4, 864, 197, 532], [0, 0, 0, 0, -4, -17, -4, -864, -197, -532]], + ["microseconds", [0, 0, 0, 0, 4, 17, 4, 864, 197], [0, 0, 0, 0, -4, -17, -4, -864, -197]], + ["nanoseconds", [0, 0, 0, 0, 4, 17, 4, 864, 197, 500], [0, 0, 0, 0, -4, -17, -4, -864, -197, -500]], ]; const roundingMode = "halfTrunc"; diff --git a/test/built-ins/Temporal/PlainTime/prototype/since/roundingmode-trunc.js b/test/built-ins/Temporal/PlainTime/prototype/since/roundingmode-trunc.js index 5c96dc3494..acc2cdd656 100644 --- a/test/built-ins/Temporal/PlainTime/prototype/since/roundingmode-trunc.js +++ b/test/built-ins/Temporal/PlainTime/prototype/since/roundingmode-trunc.js @@ -9,7 +9,7 @@ features: [Temporal] ---*/ const earlier = new Temporal.PlainTime(8, 22, 36, 123, 456, 789); -const later = new Temporal.PlainTime(12, 39, 40, 987, 654, 321); +const later = new Temporal.PlainTime(12, 39, 40, 987, 654, 289); const expected = [ ["hours", [0, 0, 0, 0, 4], [0, 0, 0, 0, -4]], @@ -17,7 +17,7 @@ const expected = [ ["seconds", [0, 0, 0, 0, 4, 17, 4], [0, 0, 0, 0, -4, -17, -4]], ["milliseconds", [0, 0, 0, 0, 4, 17, 4, 864], [0, 0, 0, 0, -4, -17, -4, -864]], ["microseconds", [0, 0, 0, 0, 4, 17, 4, 864, 197], [0, 0, 0, 0, -4, -17, -4, -864, -197]], - ["nanoseconds", [0, 0, 0, 0, 4, 17, 4, 864, 197, 532], [0, 0, 0, 0, -4, -17, -4, -864, -197, -532]], + ["nanoseconds", [0, 0, 0, 0, 4, 17, 4, 864, 197, 500], [0, 0, 0, 0, -4, -17, -4, -864, -197, -500]], ]; const roundingMode = "trunc"; diff --git a/test/built-ins/Temporal/PlainTime/prototype/until/roundingmode-ceil.js b/test/built-ins/Temporal/PlainTime/prototype/until/roundingmode-ceil.js index 451e1f0380..a7e8c71584 100644 --- a/test/built-ins/Temporal/PlainTime/prototype/until/roundingmode-ceil.js +++ b/test/built-ins/Temporal/PlainTime/prototype/until/roundingmode-ceil.js @@ -9,7 +9,7 @@ features: [Temporal] ---*/ const earlier = new Temporal.PlainTime(8, 22, 36, 123, 456, 789); -const later = new Temporal.PlainTime(12, 39, 40, 987, 654, 321); +const later = new Temporal.PlainTime(12, 39, 40, 987, 654, 289); const expected = [ ["hours", [0, 0, 0, 0, 5], [0, 0, 0, 0, -4]], @@ -17,7 +17,7 @@ const expected = [ ["seconds", [0, 0, 0, 0, 4, 17, 5], [0, 0, 0, 0, -4, -17, -4]], ["milliseconds", [0, 0, 0, 0, 4, 17, 4, 865], [0, 0, 0, 0, -4, -17, -4, -864]], ["microseconds", [0, 0, 0, 0, 4, 17, 4, 864, 198], [0, 0, 0, 0, -4, -17, -4, -864, -197]], - ["nanoseconds", [0, 0, 0, 0, 4, 17, 4, 864, 197, 532], [0, 0, 0, 0, -4, -17, -4, -864, -197, -532]], + ["nanoseconds", [0, 0, 0, 0, 4, 17, 4, 864, 197, 500], [0, 0, 0, 0, -4, -17, -4, -864, -197, -500]], ]; const roundingMode = "ceil"; diff --git a/test/built-ins/Temporal/PlainTime/prototype/until/roundingmode-expand.js b/test/built-ins/Temporal/PlainTime/prototype/until/roundingmode-expand.js index ddc636faaa..bfd5061b5d 100644 --- a/test/built-ins/Temporal/PlainTime/prototype/until/roundingmode-expand.js +++ b/test/built-ins/Temporal/PlainTime/prototype/until/roundingmode-expand.js @@ -9,7 +9,7 @@ features: [Temporal] ---*/ const earlier = new Temporal.PlainTime(8, 22, 36, 123, 456, 789); -const later = new Temporal.PlainTime(12, 39, 40, 987, 654, 321); +const later = new Temporal.PlainTime(12, 39, 40, 987, 654, 289); const expected = [ ["hours", [0, 0, 0, 0, 5], [0, 0, 0, 0, -5]], @@ -17,7 +17,7 @@ const expected = [ ["seconds", [0, 0, 0, 0, 4, 17, 5], [0, 0, 0, 0, -4, -17, -5]], ["milliseconds", [0, 0, 0, 0, 4, 17, 4, 865], [0, 0, 0, 0, -4, -17, -4, -865]], ["microseconds", [0, 0, 0, 0, 4, 17, 4, 864, 198], [0, 0, 0, 0, -4, -17, -4, -864, -198]], - ["nanoseconds", [0, 0, 0, 0, 4, 17, 4, 864, 197, 532], [0, 0, 0, 0, -4, -17, -4, -864, -197, -532]], + ["nanoseconds", [0, 0, 0, 0, 4, 17, 4, 864, 197, 500], [0, 0, 0, 0, -4, -17, -4, -864, -197, -500]], ]; const roundingMode = "expand"; diff --git a/test/built-ins/Temporal/PlainTime/prototype/until/roundingmode-floor.js b/test/built-ins/Temporal/PlainTime/prototype/until/roundingmode-floor.js index 3618978674..684def0e0b 100644 --- a/test/built-ins/Temporal/PlainTime/prototype/until/roundingmode-floor.js +++ b/test/built-ins/Temporal/PlainTime/prototype/until/roundingmode-floor.js @@ -9,7 +9,7 @@ features: [Temporal] ---*/ const earlier = new Temporal.PlainTime(8, 22, 36, 123, 456, 789); -const later = new Temporal.PlainTime(12, 39, 40, 987, 654, 321); +const later = new Temporal.PlainTime(12, 39, 40, 987, 654, 289); const expected = [ ["hours", [0, 0, 0, 0, 4], [0, 0, 0, 0, -5]], @@ -17,7 +17,7 @@ const expected = [ ["seconds", [0, 0, 0, 0, 4, 17, 4], [0, 0, 0, 0, -4, -17, -5]], ["milliseconds", [0, 0, 0, 0, 4, 17, 4, 864], [0, 0, 0, 0, -4, -17, -4, -865]], ["microseconds", [0, 0, 0, 0, 4, 17, 4, 864, 197], [0, 0, 0, 0, -4, -17, -4, -864, -198]], - ["nanoseconds", [0, 0, 0, 0, 4, 17, 4, 864, 197, 532], [0, 0, 0, 0, -4, -17, -4, -864, -197, -532]], + ["nanoseconds", [0, 0, 0, 0, 4, 17, 4, 864, 197, 500], [0, 0, 0, 0, -4, -17, -4, -864, -197, -500]], ]; const roundingMode = "floor"; diff --git a/test/built-ins/Temporal/PlainTime/prototype/until/roundingmode-halfCeil.js b/test/built-ins/Temporal/PlainTime/prototype/until/roundingmode-halfCeil.js index f830403595..097d765642 100644 --- a/test/built-ins/Temporal/PlainTime/prototype/until/roundingmode-halfCeil.js +++ b/test/built-ins/Temporal/PlainTime/prototype/until/roundingmode-halfCeil.js @@ -9,15 +9,15 @@ features: [Temporal] ---*/ const earlier = new Temporal.PlainTime(8, 22, 36, 123, 456, 789); -const later = new Temporal.PlainTime(12, 39, 40, 987, 654, 321); +const later = new Temporal.PlainTime(12, 39, 40, 987, 654, 289); const expected = [ ["hours", [0, 0, 0, 0, 4], [0, 0, 0, 0, -4]], ["minutes", [0, 0, 0, 0, 4, 17], [0, 0, 0, 0, -4, -17]], ["seconds", [0, 0, 0, 0, 4, 17, 5], [0, 0, 0, 0, -4, -17, -5]], ["milliseconds", [0, 0, 0, 0, 4, 17, 4, 864], [0, 0, 0, 0, -4, -17, -4, -864]], - ["microseconds", [0, 0, 0, 0, 4, 17, 4, 864, 198], [0, 0, 0, 0, -4, -17, -4, -864, -198]], - ["nanoseconds", [0, 0, 0, 0, 4, 17, 4, 864, 197, 532], [0, 0, 0, 0, -4, -17, -4, -864, -197, -532]], + ["microseconds", [0, 0, 0, 0, 4, 17, 4, 864, 198], [0, 0, 0, 0, -4, -17, -4, -864, -197]], + ["nanoseconds", [0, 0, 0, 0, 4, 17, 4, 864, 197, 500], [0, 0, 0, 0, -4, -17, -4, -864, -197, -500]], ]; const roundingMode = "halfCeil"; diff --git a/test/built-ins/Temporal/PlainTime/prototype/until/roundingmode-halfEven.js b/test/built-ins/Temporal/PlainTime/prototype/until/roundingmode-halfEven.js index 6a8da4dd84..15200602fa 100644 --- a/test/built-ins/Temporal/PlainTime/prototype/until/roundingmode-halfEven.js +++ b/test/built-ins/Temporal/PlainTime/prototype/until/roundingmode-halfEven.js @@ -9,7 +9,7 @@ features: [Temporal] ---*/ const earlier = new Temporal.PlainTime(8, 22, 36, 123, 456, 789); -const later = new Temporal.PlainTime(12, 39, 40, 987, 654, 321); +const later = new Temporal.PlainTime(12, 39, 40, 987, 654, 289); const expected = [ ["hours", [0, 0, 0, 0, 4], [0, 0, 0, 0, -4]], @@ -17,7 +17,7 @@ const expected = [ ["seconds", [0, 0, 0, 0, 4, 17, 5], [0, 0, 0, 0, -4, -17, -5]], ["milliseconds", [0, 0, 0, 0, 4, 17, 4, 864], [0, 0, 0, 0, -4, -17, -4, -864]], ["microseconds", [0, 0, 0, 0, 4, 17, 4, 864, 198], [0, 0, 0, 0, -4, -17, -4, -864, -198]], - ["nanoseconds", [0, 0, 0, 0, 4, 17, 4, 864, 197, 532], [0, 0, 0, 0, -4, -17, -4, -864, -197, -532]], + ["nanoseconds", [0, 0, 0, 0, 4, 17, 4, 864, 197, 500], [0, 0, 0, 0, -4, -17, -4, -864, -197, -500]], ]; const roundingMode = "halfEven"; diff --git a/test/built-ins/Temporal/PlainTime/prototype/until/roundingmode-halfExpand.js b/test/built-ins/Temporal/PlainTime/prototype/until/roundingmode-halfExpand.js index 9e5f867362..8802e9fd00 100644 --- a/test/built-ins/Temporal/PlainTime/prototype/until/roundingmode-halfExpand.js +++ b/test/built-ins/Temporal/PlainTime/prototype/until/roundingmode-halfExpand.js @@ -9,7 +9,7 @@ features: [Temporal] ---*/ const earlier = new Temporal.PlainTime(8, 22, 36, 123, 456, 789); -const later = new Temporal.PlainTime(12, 39, 40, 987, 654, 321); +const later = new Temporal.PlainTime(12, 39, 40, 987, 654, 289); const expected = [ ["hours", [0, 0, 0, 0, 4], [0, 0, 0, 0, -4]], @@ -17,7 +17,7 @@ const expected = [ ["seconds", [0, 0, 0, 0, 4, 17, 5], [0, 0, 0, 0, -4, -17, -5]], ["milliseconds", [0, 0, 0, 0, 4, 17, 4, 864], [0, 0, 0, 0, -4, -17, -4, -864]], ["microseconds", [0, 0, 0, 0, 4, 17, 4, 864, 198], [0, 0, 0, 0, -4, -17, -4, -864, -198]], - ["nanoseconds", [0, 0, 0, 0, 4, 17, 4, 864, 197, 532], [0, 0, 0, 0, -4, -17, -4, -864, -197, -532]], + ["nanoseconds", [0, 0, 0, 0, 4, 17, 4, 864, 197, 500], [0, 0, 0, 0, -4, -17, -4, -864, -197, -500]], ]; const roundingMode = "halfExpand"; diff --git a/test/built-ins/Temporal/PlainTime/prototype/until/roundingmode-halfFloor.js b/test/built-ins/Temporal/PlainTime/prototype/until/roundingmode-halfFloor.js index af72c4e63a..3c821d1fc5 100644 --- a/test/built-ins/Temporal/PlainTime/prototype/until/roundingmode-halfFloor.js +++ b/test/built-ins/Temporal/PlainTime/prototype/until/roundingmode-halfFloor.js @@ -9,15 +9,15 @@ features: [Temporal] ---*/ const earlier = new Temporal.PlainTime(8, 22, 36, 123, 456, 789); -const later = new Temporal.PlainTime(12, 39, 40, 987, 654, 321); +const later = new Temporal.PlainTime(12, 39, 40, 987, 654, 289); const expected = [ ["hours", [0, 0, 0, 0, 4], [0, 0, 0, 0, -4]], ["minutes", [0, 0, 0, 0, 4, 17], [0, 0, 0, 0, -4, -17]], ["seconds", [0, 0, 0, 0, 4, 17, 5], [0, 0, 0, 0, -4, -17, -5]], ["milliseconds", [0, 0, 0, 0, 4, 17, 4, 864], [0, 0, 0, 0, -4, -17, -4, -864]], - ["microseconds", [0, 0, 0, 0, 4, 17, 4, 864, 198], [0, 0, 0, 0, -4, -17, -4, -864, -198]], - ["nanoseconds", [0, 0, 0, 0, 4, 17, 4, 864, 197, 532], [0, 0, 0, 0, -4, -17, -4, -864, -197, -532]], + ["microseconds", [0, 0, 0, 0, 4, 17, 4, 864, 197], [0, 0, 0, 0, -4, -17, -4, -864, -198]], + ["nanoseconds", [0, 0, 0, 0, 4, 17, 4, 864, 197, 500], [0, 0, 0, 0, -4, -17, -4, -864, -197, -500]], ]; const roundingMode = "halfFloor"; diff --git a/test/built-ins/Temporal/PlainTime/prototype/until/roundingmode-halfTrunc.js b/test/built-ins/Temporal/PlainTime/prototype/until/roundingmode-halfTrunc.js index 906052e33f..adaf8cf2fe 100644 --- a/test/built-ins/Temporal/PlainTime/prototype/until/roundingmode-halfTrunc.js +++ b/test/built-ins/Temporal/PlainTime/prototype/until/roundingmode-halfTrunc.js @@ -9,15 +9,15 @@ features: [Temporal] ---*/ const earlier = new Temporal.PlainTime(8, 22, 36, 123, 456, 789); -const later = new Temporal.PlainTime(12, 39, 40, 987, 654, 321); +const later = new Temporal.PlainTime(12, 39, 40, 987, 654, 289); const expected = [ ["hours", [0, 0, 0, 0, 4], [0, 0, 0, 0, -4]], ["minutes", [0, 0, 0, 0, 4, 17], [0, 0, 0, 0, -4, -17]], ["seconds", [0, 0, 0, 0, 4, 17, 5], [0, 0, 0, 0, -4, -17, -5]], ["milliseconds", [0, 0, 0, 0, 4, 17, 4, 864], [0, 0, 0, 0, -4, -17, -4, -864]], - ["microseconds", [0, 0, 0, 0, 4, 17, 4, 864, 198], [0, 0, 0, 0, -4, -17, -4, -864, -198]], - ["nanoseconds", [0, 0, 0, 0, 4, 17, 4, 864, 197, 532], [0, 0, 0, 0, -4, -17, -4, -864, -197, -532]], + ["microseconds", [0, 0, 0, 0, 4, 17, 4, 864, 197], [0, 0, 0, 0, -4, -17, -4, -864, -197]], + ["nanoseconds", [0, 0, 0, 0, 4, 17, 4, 864, 197, 500], [0, 0, 0, 0, -4, -17, -4, -864, -197, -500]], ]; const roundingMode = "halfTrunc"; diff --git a/test/built-ins/Temporal/PlainTime/prototype/until/roundingmode-trunc.js b/test/built-ins/Temporal/PlainTime/prototype/until/roundingmode-trunc.js index 9aed1bd48c..2ea4b40c58 100644 --- a/test/built-ins/Temporal/PlainTime/prototype/until/roundingmode-trunc.js +++ b/test/built-ins/Temporal/PlainTime/prototype/until/roundingmode-trunc.js @@ -9,7 +9,7 @@ features: [Temporal] ---*/ const earlier = new Temporal.PlainTime(8, 22, 36, 123, 456, 789); -const later = new Temporal.PlainTime(12, 39, 40, 987, 654, 321); +const later = new Temporal.PlainTime(12, 39, 40, 987, 654, 289); const expected = [ ["hours", [0, 0, 0, 0, 4], [0, 0, 0, 0, -4]], @@ -17,7 +17,7 @@ const expected = [ ["seconds", [0, 0, 0, 0, 4, 17, 4], [0, 0, 0, 0, -4, -17, -4]], ["milliseconds", [0, 0, 0, 0, 4, 17, 4, 864], [0, 0, 0, 0, -4, -17, -4, -864]], ["microseconds", [0, 0, 0, 0, 4, 17, 4, 864, 197], [0, 0, 0, 0, -4, -17, -4, -864, -197]], - ["nanoseconds", [0, 0, 0, 0, 4, 17, 4, 864, 197, 532], [0, 0, 0, 0, -4, -17, -4, -864, -197, -532]], + ["nanoseconds", [0, 0, 0, 0, 4, 17, 4, 864, 197, 500], [0, 0, 0, 0, -4, -17, -4, -864, -197, -500]], ]; const roundingMode = "trunc"; diff --git a/test/built-ins/Temporal/ZonedDateTime/prototype/round/roundingmode-ceil.js b/test/built-ins/Temporal/ZonedDateTime/prototype/round/roundingmode-ceil.js index 5689d43402..df9a564f92 100644 --- a/test/built-ins/Temporal/ZonedDateTime/prototype/round/roundingmode-ceil.js +++ b/test/built-ins/Temporal/ZonedDateTime/prototype/round/roundingmode-ceil.js @@ -7,15 +7,15 @@ description: Tests calculations with roundingMode "ceil". features: [Temporal] ---*/ -const instance = new Temporal.ZonedDateTime(217175010_123_456_789n /* 1976-11-18T15:23:30.123456789+01:00 */, "+01:00"); +const instance = new Temporal.ZonedDateTime(217175010_123_987_500n /* 1976-11-18T15:23:30.1239875+01:00 */, "+01:00"); const expected = [ ["day", 217206000_000_000_000n /* 1976-11-19T00:00:00+01:00 */], ["minute", 217175040_000_000_000n /* 1976-11-18T15:24:00+01:00 */], ["second", 217175011_000_000_000n /* 1976-11-18T15:23:31+01:00 */], ["millisecond", 217175010_124_000_000n /* 1976-11-18T15:23:30.124+01:00 */], - ["microsecond", 217175010_123_457_000n /* 1976-11-18T15:23:30.123457+01:00 */], - ["nanosecond", 217175010_123_456_789n /* 1976-11-18T15:23:30.123456789+01:00 */], + ["microsecond", 217175010_123_988_000n /* 1976-11-18T15:23:30.123988+01:00 */], + ["nanosecond", 217175010_123_987_500n /* 1976-11-18T15:23:30.1239875+01:00 */], ]; const roundingMode = "ceil"; diff --git a/test/built-ins/Temporal/ZonedDateTime/prototype/round/roundingmode-expand.js b/test/built-ins/Temporal/ZonedDateTime/prototype/round/roundingmode-expand.js index 768b5503bf..3e664d3634 100644 --- a/test/built-ins/Temporal/ZonedDateTime/prototype/round/roundingmode-expand.js +++ b/test/built-ins/Temporal/ZonedDateTime/prototype/round/roundingmode-expand.js @@ -7,15 +7,15 @@ description: Tests calculations with roundingMode "expand". features: [Temporal] ---*/ -const instance = new Temporal.ZonedDateTime(217175010_123_456_789n /* 1976-11-18T15:23:30.123456789+01:00 */, "+01:00"); +const instance = new Temporal.ZonedDateTime(217175010_123_987_500n /* 1976-11-18T15:23:30.1239875+01:00 */, "+01:00"); const expected = [ ["day", 217206000_000_000_000n /* 1976-11-19T00:00:00+01:00 */], ["minute", 217175040_000_000_000n /* 1976-11-18T15:24:00+01:00 */], ["second", 217175011_000_000_000n /* 1976-11-18T15:23:31+01:00 */], ["millisecond", 217175010_124_000_000n /* 1976-11-18T15:23:30.124+01:00 */], - ["microsecond", 217175010_123_457_000n /* 1976-11-18T15:23:30.123457+01:00 */], - ["nanosecond", 217175010_123_456_789n /* 1976-11-18T15:23:30.123456789+01:00 */], + ["microsecond", 217175010_123_988_000n /* 1976-11-18T15:23:30.123988+01:00 */], + ["nanosecond", 217175010_123_987_500n /* 1976-11-18T15:23:30.1239875+01:00 */], ]; const roundingMode = "expand"; diff --git a/test/built-ins/Temporal/ZonedDateTime/prototype/round/roundingmode-floor.js b/test/built-ins/Temporal/ZonedDateTime/prototype/round/roundingmode-floor.js index 2da2d36181..efa95a70eb 100644 --- a/test/built-ins/Temporal/ZonedDateTime/prototype/round/roundingmode-floor.js +++ b/test/built-ins/Temporal/ZonedDateTime/prototype/round/roundingmode-floor.js @@ -7,15 +7,15 @@ description: Tests calculations with roundingMode "floor". features: [Temporal] ---*/ -const instance = new Temporal.ZonedDateTime(217175010_123_456_789n /* 1976-11-18T15:23:30.123456789+01:00 */, "+01:00"); +const instance = new Temporal.ZonedDateTime(217175010_123_987_500n /* 1976-11-18T15:23:30.1239875+01:00 */, "+01:00"); const expected = [ ["day", 217119600_000_000_000n /* 1976-11-18T00:00:00+01:00 */], ["minute", 217174980_000_000_000n /* 1976-11-18T15:23:00+01:00 */], ["second", 217175010_000_000_000n /* 1976-11-18T15:23:30+01:00 */], ["millisecond", 217175010_123_000_000n /* 1976-11-18T15:23:30.123+01:00 */], - ["microsecond", 217175010_123_456_000n /* 1976-11-18T15:23:30.123456+01:00 */], - ["nanosecond", 217175010_123_456_789n /* 1976-11-18T15:23:30.123456789+01:00 */], + ["microsecond", 217175010_123_987_000n /* 1976-11-18T15:23:30.123987+01:00 */], + ["nanosecond", 217175010_123_987_500n /* 1976-11-18T15:23:30.1239875+01:00 */], ]; const roundingMode = "floor"; diff --git a/test/built-ins/Temporal/ZonedDateTime/prototype/round/roundingmode-halfCeil.js b/test/built-ins/Temporal/ZonedDateTime/prototype/round/roundingmode-halfCeil.js index 962c500dbe..cac03e50e7 100644 --- a/test/built-ins/Temporal/ZonedDateTime/prototype/round/roundingmode-halfCeil.js +++ b/test/built-ins/Temporal/ZonedDateTime/prototype/round/roundingmode-halfCeil.js @@ -7,15 +7,15 @@ description: Tests calculations with roundingMode "halfCeil". features: [Temporal] ---*/ -const instance = new Temporal.ZonedDateTime(217175010_123_456_789n /* 1976-11-18T15:23:30.123456789+01:00 */, "+01:00"); +const instance = new Temporal.ZonedDateTime(217175010_123_987_500n /* 1976-11-18T15:23:30.1239875+01:00 */, "+01:00"); const expected = [ ["day", 217206000_000_000_000n /* 1976-11-19T00:00:00+01:00 */], ["minute", 217175040_000_000_000n /* 1976-11-18T15:24:00+01:00 */], ["second", 217175010_000_000_000n /* 1976-11-18T15:23:30+01:00 */], - ["millisecond", 217175010_123_000_000n /* 1976-11-18T15:23:30.123+01:00 */], - ["microsecond", 217175010_123_457_000n /* 1976-11-18T15:23:30.123457+01:00 */], - ["nanosecond", 217175010_123_456_789n /* 1976-11-18T15:23:30.123456789+01:00 */], + ["millisecond", 217175010_124_000_000n /* 1976-11-18T15:23:30.124+01:00 */], + ["microsecond", 217175010_123_988_000n /* 1976-11-18T15:23:30.123988+01:00 */], + ["nanosecond", 217175010_123_987_500n /* 1976-11-18T15:23:30.1239875+01:00 */], ]; const roundingMode = "halfCeil"; diff --git a/test/built-ins/Temporal/ZonedDateTime/prototype/round/roundingmode-halfEven.js b/test/built-ins/Temporal/ZonedDateTime/prototype/round/roundingmode-halfEven.js index 8b623d62cd..e065324513 100644 --- a/test/built-ins/Temporal/ZonedDateTime/prototype/round/roundingmode-halfEven.js +++ b/test/built-ins/Temporal/ZonedDateTime/prototype/round/roundingmode-halfEven.js @@ -7,15 +7,15 @@ description: Tests calculations with roundingMode "halfEven". features: [Temporal] ---*/ -const instance = new Temporal.ZonedDateTime(217175010_123_456_789n /* 1976-11-18T15:23:30.123456789+01:00 */, "+01:00"); +const instance = new Temporal.ZonedDateTime(217175010_123_987_500n /* 1976-11-18T15:23:30.1239875+01:00 */, "+01:00"); const expected = [ ["day", 217206000_000_000_000n /* 1976-11-19T00:00:00+01:00 */], ["minute", 217175040_000_000_000n /* 1976-11-18T15:24:00+01:00 */], ["second", 217175010_000_000_000n /* 1976-11-18T15:23:30+01:00 */], - ["millisecond", 217175010_123_000_000n /* 1976-11-18T15:23:30.123+01:00 */], - ["microsecond", 217175010_123_457_000n /* 1976-11-18T15:23:30.123457+01:00 */], - ["nanosecond", 217175010_123_456_789n /* 1976-11-18T15:23:30.123456789+01:00 */], + ["millisecond", 217175010_124_000_000n /* 1976-11-18T15:23:30.124+01:00 */], + ["microsecond", 217175010_123_988_000n /* 1976-11-18T15:23:30.123988+01:00 */], + ["nanosecond", 217175010_123_987_500n /* 1976-11-18T15:23:30.1239875+01:00 */], ]; const roundingMode = "halfEven"; diff --git a/test/built-ins/Temporal/ZonedDateTime/prototype/round/roundingmode-halfExpand.js b/test/built-ins/Temporal/ZonedDateTime/prototype/round/roundingmode-halfExpand.js index 85f4f62692..e2f26026da 100644 --- a/test/built-ins/Temporal/ZonedDateTime/prototype/round/roundingmode-halfExpand.js +++ b/test/built-ins/Temporal/ZonedDateTime/prototype/round/roundingmode-halfExpand.js @@ -7,15 +7,15 @@ description: Tests calculations with roundingMode "halfExpand". features: [Temporal] ---*/ -const instance = new Temporal.ZonedDateTime(217175010_123_456_789n /* 1976-11-18T15:23:30.123456789+01:00 */, "+01:00"); +const instance = new Temporal.ZonedDateTime(217175010_123_987_500n /* 1976-11-18T15:23:30.1239875+01:00 */, "+01:00"); const expected = [ ["day", 217206000_000_000_000n /* 1976-11-19T00:00:00+01:00 */], ["minute", 217175040_000_000_000n /* 1976-11-18T15:24:00+01:00 */], ["second", 217175010_000_000_000n /* 1976-11-18T15:23:30+01:00 */], - ["millisecond", 217175010_123_000_000n /* 1976-11-18T15:23:30.123+01:00 */], - ["microsecond", 217175010_123_457_000n /* 1976-11-18T15:23:30.123457+01:00 */], - ["nanosecond", 217175010_123_456_789n /* 1976-11-18T15:23:30.123456789+01:00 */], + ["millisecond", 217175010_124_000_000n /* 1976-11-18T15:23:30.124+01:00 */], + ["microsecond", 217175010_123_988_000n /* 1976-11-18T15:23:30.123988+01:00 */], + ["nanosecond", 217175010_123_987_500n /* 1976-11-18T15:23:30.1239875+01:00 */], ]; const roundingMode = "halfExpand"; diff --git a/test/built-ins/Temporal/ZonedDateTime/prototype/round/roundingmode-halfFloor.js b/test/built-ins/Temporal/ZonedDateTime/prototype/round/roundingmode-halfFloor.js index 528fd0a2a8..da112a54db 100644 --- a/test/built-ins/Temporal/ZonedDateTime/prototype/round/roundingmode-halfFloor.js +++ b/test/built-ins/Temporal/ZonedDateTime/prototype/round/roundingmode-halfFloor.js @@ -7,15 +7,15 @@ description: Tests calculations with roundingMode "halfFloor". features: [Temporal] ---*/ -const instance = new Temporal.ZonedDateTime(217175010_123_456_789n /* 1976-11-18T15:23:30.123456789+01:00 */, "+01:00"); +const instance = new Temporal.ZonedDateTime(217175010_123_987_500n /* 1976-11-18T15:23:30.1239875+01:00 */, "+01:00"); const expected = [ ["day", 217206000_000_000_000n /* 1976-11-19T00:00:00+01:00 */], ["minute", 217175040_000_000_000n /* 1976-11-18T15:24:00+01:00 */], ["second", 217175010_000_000_000n /* 1976-11-18T15:23:30+01:00 */], - ["millisecond", 217175010_123_000_000n /* 1976-11-18T15:23:30.123+01:00 */], - ["microsecond", 217175010_123_457_000n /* 1976-11-18T15:23:30.123457+01:00 */], - ["nanosecond", 217175010_123_456_789n /* 1976-11-18T15:23:30.123456789+01:00 */], + ["millisecond", 217175010_124_000_000n /* 1976-11-18T15:23:30.124+01:00 */], + ["microsecond", 217175010_123_987_000n /* 1976-11-18T15:23:30.123987+01:00 */], + ["nanosecond", 217175010_123_987_500n /* 1976-11-18T15:23:30.1239875+01:00 */], ]; const roundingMode = "halfFloor"; diff --git a/test/built-ins/Temporal/ZonedDateTime/prototype/round/roundingmode-halfTrunc.js b/test/built-ins/Temporal/ZonedDateTime/prototype/round/roundingmode-halfTrunc.js index 306b6b81b9..e76a688cb9 100644 --- a/test/built-ins/Temporal/ZonedDateTime/prototype/round/roundingmode-halfTrunc.js +++ b/test/built-ins/Temporal/ZonedDateTime/prototype/round/roundingmode-halfTrunc.js @@ -7,15 +7,15 @@ description: Tests calculations with roundingMode "halfTrunc". features: [Temporal] ---*/ -const instance = new Temporal.ZonedDateTime(217175010_123_456_789n /* 1976-11-18T15:23:30.123456789+01:00 */, "+01:00"); +const instance = new Temporal.ZonedDateTime(217175010_123_987_500n /* 1976-11-18T15:23:30.1239875+01:00 */, "+01:00"); const expected = [ ["day", 217206000_000_000_000n /* 1976-11-19T00:00:00+01:00 */], ["minute", 217175040_000_000_000n /* 1976-11-18T15:24:00+01:00 */], ["second", 217175010_000_000_000n /* 1976-11-18T15:23:30+01:00 */], - ["millisecond", 217175010_123_000_000n /* 1976-11-18T15:23:30.123+01:00 */], - ["microsecond", 217175010_123_457_000n /* 1976-11-18T15:23:30.123457+01:00 */], - ["nanosecond", 217175010_123_456_789n /* 1976-11-18T15:23:30.123456789+01:00 */], + ["millisecond", 217175010_124_000_000n /* 1976-11-18T15:23:30.124+01:00 */], + ["microsecond", 217175010_123_987_000n /* 1976-11-18T15:23:30.123987+01:00 */], + ["nanosecond", 217175010_123_987_500n /* 1976-11-18T15:23:30.1239875+01:00 */], ]; const roundingMode = "halfTrunc"; diff --git a/test/built-ins/Temporal/ZonedDateTime/prototype/round/roundingmode-trunc.js b/test/built-ins/Temporal/ZonedDateTime/prototype/round/roundingmode-trunc.js index bbb96dda46..a681eeead2 100644 --- a/test/built-ins/Temporal/ZonedDateTime/prototype/round/roundingmode-trunc.js +++ b/test/built-ins/Temporal/ZonedDateTime/prototype/round/roundingmode-trunc.js @@ -7,15 +7,15 @@ description: Tests calculations with roundingMode "trunc". features: [Temporal] ---*/ -const instance = new Temporal.ZonedDateTime(217175010_123_456_789n /* 1976-11-18T15:23:30.123456789+01:00 */, "+01:00"); +const instance = new Temporal.ZonedDateTime(217175010_123_987_500n /* 1976-11-18T15:23:30.1239875+01:00 */, "+01:00"); const expected = [ ["day", 217119600_000_000_000n /* 1976-11-18T00:00:00+01:00 */], ["minute", 217174980_000_000_000n /* 1976-11-18T15:23:00+01:00 */], ["second", 217175010_000_000_000n /* 1976-11-18T15:23:30+01:00 */], ["millisecond", 217175010_123_000_000n /* 1976-11-18T15:23:30.123+01:00 */], - ["microsecond", 217175010_123_456_000n /* 1976-11-18T15:23:30.123456+01:00 */], - ["nanosecond", 217175010_123_456_789n /* 1976-11-18T15:23:30.123456789+01:00 */], + ["microsecond", 217175010_123_987_000n /* 1976-11-18T15:23:30.123987+01:00 */], + ["nanosecond", 217175010_123_987_500n /* 1976-11-18T15:23:30.1239875+01:00 */], ]; const roundingMode = "trunc"; diff --git a/test/built-ins/Temporal/ZonedDateTime/prototype/since/roundingmode-ceil.js b/test/built-ins/Temporal/ZonedDateTime/prototype/since/roundingmode-ceil.js index dacdf1f4a2..ff8bdae92f 100644 --- a/test/built-ins/Temporal/ZonedDateTime/prototype/since/roundingmode-ceil.js +++ b/test/built-ins/Temporal/ZonedDateTime/prototype/since/roundingmode-ceil.js @@ -8,8 +8,8 @@ includes: [temporalHelpers.js] features: [Temporal] ---*/ -const earlier = new Temporal.ZonedDateTime(1546935756_123_456_789n, "UTC"); -const later = new Temporal.ZonedDateTime(1631018380_987_654_321n, "UTC"); +const earlier = new Temporal.ZonedDateTime(1546935756_123_456_789n /* 2019-01-08T08:22:36.123456789+00:00 */, "UTC"); +const later = new Temporal.ZonedDateTime(1631018380_987_654_289n /* 2021-09-07T12:39:40.987654289+00:00 */, "UTC"); const expected = [ ["years", [3], [-2]], @@ -21,7 +21,7 @@ const expected = [ ["seconds", [0, 0, 0, 0, 23356, 17, 5], [0, 0, 0, 0, -23356, -17, -4]], ["milliseconds", [0, 0, 0, 0, 23356, 17, 4, 865], [0, 0, 0, 0, -23356, -17, -4, -864]], ["microseconds", [0, 0, 0, 0, 23356, 17, 4, 864, 198], [0, 0, 0, 0, -23356, -17, -4, -864, -197]], - ["nanoseconds", [0, 0, 0, 0, 23356, 17, 4, 864, 197, 532], [0, 0, 0, 0, -23356, -17, -4, -864, -197, -532]], + ["nanoseconds", [0, 0, 0, 0, 23356, 17, 4, 864, 197, 500], [0, 0, 0, 0, -23356, -17, -4, -864, -197, -500]], ]; const roundingMode = "ceil"; diff --git a/test/built-ins/Temporal/ZonedDateTime/prototype/since/roundingmode-expand.js b/test/built-ins/Temporal/ZonedDateTime/prototype/since/roundingmode-expand.js index 62a2205fbf..45a3dbd813 100644 --- a/test/built-ins/Temporal/ZonedDateTime/prototype/since/roundingmode-expand.js +++ b/test/built-ins/Temporal/ZonedDateTime/prototype/since/roundingmode-expand.js @@ -8,8 +8,8 @@ includes: [temporalHelpers.js] features: [Temporal] ---*/ -const earlier = new Temporal.ZonedDateTime(1546935756_123_456_789n, "UTC"); -const later = new Temporal.ZonedDateTime(1631018380_987_654_321n, "UTC"); +const earlier = new Temporal.ZonedDateTime(1546935756_123_456_789n /* 2019-01-08T08:22:36.123456789+00:00 */, "UTC"); +const later = new Temporal.ZonedDateTime(1631018380_987_654_289n /* 2021-09-07T12:39:40.987654289+00:00 */, "UTC"); const expected = [ ["years", [3], [-3]], @@ -21,7 +21,7 @@ const expected = [ ["seconds", [0, 0, 0, 0, 23356, 17, 5], [0, 0, 0, 0, -23356, -17, -5]], ["milliseconds", [0, 0, 0, 0, 23356, 17, 4, 865], [0, 0, 0, 0, -23356, -17, -4, -865]], ["microseconds", [0, 0, 0, 0, 23356, 17, 4, 864, 198], [0, 0, 0, 0, -23356, -17, -4, -864, -198]], - ["nanoseconds", [0, 0, 0, 0, 23356, 17, 4, 864, 197, 532], [0, 0, 0, 0, -23356, -17, -4, -864, -197, -532]], + ["nanoseconds", [0, 0, 0, 0, 23356, 17, 4, 864, 197, 500], [0, 0, 0, 0, -23356, -17, -4, -864, -197, -500]], ]; const roundingMode = "expand"; diff --git a/test/built-ins/Temporal/ZonedDateTime/prototype/since/roundingmode-floor.js b/test/built-ins/Temporal/ZonedDateTime/prototype/since/roundingmode-floor.js index 7eb1b57ca9..17f29da36f 100644 --- a/test/built-ins/Temporal/ZonedDateTime/prototype/since/roundingmode-floor.js +++ b/test/built-ins/Temporal/ZonedDateTime/prototype/since/roundingmode-floor.js @@ -8,8 +8,8 @@ includes: [temporalHelpers.js] features: [Temporal] ---*/ -const earlier = new Temporal.ZonedDateTime(1546935756_123_456_789n, "UTC"); -const later = new Temporal.ZonedDateTime(1631018380_987_654_321n, "UTC"); +const earlier = new Temporal.ZonedDateTime(1546935756_123_456_789n /* 2019-01-08T08:22:36.123456789+00:00 */, "UTC"); +const later = new Temporal.ZonedDateTime(1631018380_987_654_289n /* 2021-09-07T12:39:40.987654289+00:00 */, "UTC"); const expected = [ ["years", [2], [-3]], @@ -21,7 +21,7 @@ const expected = [ ["seconds", [0, 0, 0, 0, 23356, 17, 4], [0, 0, 0, 0, -23356, -17, -5]], ["milliseconds", [0, 0, 0, 0, 23356, 17, 4, 864], [0, 0, 0, 0, -23356, -17, -4, -865]], ["microseconds", [0, 0, 0, 0, 23356, 17, 4, 864, 197], [0, 0, 0, 0, -23356, -17, -4, -864, -198]], - ["nanoseconds", [0, 0, 0, 0, 23356, 17, 4, 864, 197, 532], [0, 0, 0, 0, -23356, -17, -4, -864, -197, -532]], + ["nanoseconds", [0, 0, 0, 0, 23356, 17, 4, 864, 197, 500], [0, 0, 0, 0, -23356, -17, -4, -864, -197, -500]], ]; const roundingMode = "floor"; diff --git a/test/built-ins/Temporal/ZonedDateTime/prototype/since/roundingmode-halfCeil.js b/test/built-ins/Temporal/ZonedDateTime/prototype/since/roundingmode-halfCeil.js index f72c4d1897..64c9ad8f62 100644 --- a/test/built-ins/Temporal/ZonedDateTime/prototype/since/roundingmode-halfCeil.js +++ b/test/built-ins/Temporal/ZonedDateTime/prototype/since/roundingmode-halfCeil.js @@ -8,8 +8,8 @@ includes: [temporalHelpers.js] features: [Temporal] ---*/ -const earlier = new Temporal.ZonedDateTime(1546935756_123_456_789n, "UTC"); -const later = new Temporal.ZonedDateTime(1631018380_987_654_321n, "UTC"); +const earlier = new Temporal.ZonedDateTime(1546935756_123_456_789n /* 2019-01-08T08:22:36.123456789+00:00 */, "UTC"); +const later = new Temporal.ZonedDateTime(1631018380_987_654_289n /* 2021-09-07T12:39:40.987654289+00:00 */, "UTC"); const expected = [ ["years", [3], [-3]], @@ -20,8 +20,8 @@ const expected = [ ["minutes", [0, 0, 0, 0, 23356, 17], [0, 0, 0, 0, -23356, -17]], ["seconds", [0, 0, 0, 0, 23356, 17, 5], [0, 0, 0, 0, -23356, -17, -5]], ["milliseconds", [0, 0, 0, 0, 23356, 17, 4, 864], [0, 0, 0, 0, -23356, -17, -4, -864]], - ["microseconds", [0, 0, 0, 0, 23356, 17, 4, 864, 198], [0, 0, 0, 0, -23356, -17, -4, -864, -198]], - ["nanoseconds", [0, 0, 0, 0, 23356, 17, 4, 864, 197, 532], [0, 0, 0, 0, -23356, -17, -4, -864, -197, -532]], + ["microseconds", [0, 0, 0, 0, 23356, 17, 4, 864, 198], [0, 0, 0, 0, -23356, -17, -4, -864, -197]], + ["nanoseconds", [0, 0, 0, 0, 23356, 17, 4, 864, 197, 500], [0, 0, 0, 0, -23356, -17, -4, -864, -197, -500]], ]; const roundingMode = "halfCeil"; diff --git a/test/built-ins/Temporal/ZonedDateTime/prototype/since/roundingmode-halfEven.js b/test/built-ins/Temporal/ZonedDateTime/prototype/since/roundingmode-halfEven.js index a27ca44c00..0e8c217ab8 100644 --- a/test/built-ins/Temporal/ZonedDateTime/prototype/since/roundingmode-halfEven.js +++ b/test/built-ins/Temporal/ZonedDateTime/prototype/since/roundingmode-halfEven.js @@ -8,8 +8,8 @@ includes: [temporalHelpers.js] features: [Temporal] ---*/ -const earlier = new Temporal.ZonedDateTime(1546935756_123_456_789n, "UTC"); -const later = new Temporal.ZonedDateTime(1631018380_987_654_321n, "UTC"); +const earlier = new Temporal.ZonedDateTime(1546935756_123_456_789n /* 2019-01-08T08:22:36.123456789+00:00 */, "UTC"); +const later = new Temporal.ZonedDateTime(1631018380_987_654_289n /* 2021-09-07T12:39:40.987654289+00:00 */, "UTC"); const expected = [ ["years", [3], [-3]], @@ -21,7 +21,7 @@ const expected = [ ["seconds", [0, 0, 0, 0, 23356, 17, 5], [0, 0, 0, 0, -23356, -17, -5]], ["milliseconds", [0, 0, 0, 0, 23356, 17, 4, 864], [0, 0, 0, 0, -23356, -17, -4, -864]], ["microseconds", [0, 0, 0, 0, 23356, 17, 4, 864, 198], [0, 0, 0, 0, -23356, -17, -4, -864, -198]], - ["nanoseconds", [0, 0, 0, 0, 23356, 17, 4, 864, 197, 532], [0, 0, 0, 0, -23356, -17, -4, -864, -197, -532]], + ["nanoseconds", [0, 0, 0, 0, 23356, 17, 4, 864, 197, 500], [0, 0, 0, 0, -23356, -17, -4, -864, -197, -500]], ]; const roundingMode = "halfEven"; diff --git a/test/built-ins/Temporal/ZonedDateTime/prototype/since/roundingmode-halfExpand.js b/test/built-ins/Temporal/ZonedDateTime/prototype/since/roundingmode-halfExpand.js index 2dd5f75552..d59c86228f 100644 --- a/test/built-ins/Temporal/ZonedDateTime/prototype/since/roundingmode-halfExpand.js +++ b/test/built-ins/Temporal/ZonedDateTime/prototype/since/roundingmode-halfExpand.js @@ -8,8 +8,8 @@ includes: [temporalHelpers.js] features: [Temporal] ---*/ -const earlier = new Temporal.ZonedDateTime(1546935756_123_456_789n, "UTC"); -const later = new Temporal.ZonedDateTime(1631018380_987_654_321n, "UTC"); +const earlier = new Temporal.ZonedDateTime(1546935756_123_456_789n /* 2019-01-08T08:22:36.123456789+00:00 */, "UTC"); +const later = new Temporal.ZonedDateTime(1631018380_987_654_289n /* 2021-09-07T12:39:40.987654289+00:00 */, "UTC"); const expected = [ ["years", [3], [-3]], @@ -21,7 +21,7 @@ const expected = [ ["seconds", [0, 0, 0, 0, 23356, 17, 5], [0, 0, 0, 0, -23356, -17, -5]], ["milliseconds", [0, 0, 0, 0, 23356, 17, 4, 864], [0, 0, 0, 0, -23356, -17, -4, -864]], ["microseconds", [0, 0, 0, 0, 23356, 17, 4, 864, 198], [0, 0, 0, 0, -23356, -17, -4, -864, -198]], - ["nanoseconds", [0, 0, 0, 0, 23356, 17, 4, 864, 197, 532], [0, 0, 0, 0, -23356, -17, -4, -864, -197, -532]], + ["nanoseconds", [0, 0, 0, 0, 23356, 17, 4, 864, 197, 500], [0, 0, 0, 0, -23356, -17, -4, -864, -197, -500]], ]; const roundingMode = "halfExpand"; diff --git a/test/built-ins/Temporal/ZonedDateTime/prototype/since/roundingmode-halfFloor.js b/test/built-ins/Temporal/ZonedDateTime/prototype/since/roundingmode-halfFloor.js index 58b47e6d2e..8126d6d50b 100644 --- a/test/built-ins/Temporal/ZonedDateTime/prototype/since/roundingmode-halfFloor.js +++ b/test/built-ins/Temporal/ZonedDateTime/prototype/since/roundingmode-halfFloor.js @@ -8,8 +8,8 @@ includes: [temporalHelpers.js] features: [Temporal] ---*/ -const earlier = new Temporal.ZonedDateTime(1546935756_123_456_789n, "UTC"); -const later = new Temporal.ZonedDateTime(1631018380_987_654_321n, "UTC"); +const earlier = new Temporal.ZonedDateTime(1546935756_123_456_789n /* 2019-01-08T08:22:36.123456789+00:00 */, "UTC"); +const later = new Temporal.ZonedDateTime(1631018380_987_654_289n /* 2021-09-07T12:39:40.987654289+00:00 */, "UTC"); const expected = [ ["years", [3], [-3]], @@ -20,8 +20,8 @@ const expected = [ ["minutes", [0, 0, 0, 0, 23356, 17], [0, 0, 0, 0, -23356, -17]], ["seconds", [0, 0, 0, 0, 23356, 17, 5], [0, 0, 0, 0, -23356, -17, -5]], ["milliseconds", [0, 0, 0, 0, 23356, 17, 4, 864], [0, 0, 0, 0, -23356, -17, -4, -864]], - ["microseconds", [0, 0, 0, 0, 23356, 17, 4, 864, 198], [0, 0, 0, 0, -23356, -17, -4, -864, -198]], - ["nanoseconds", [0, 0, 0, 0, 23356, 17, 4, 864, 197, 532], [0, 0, 0, 0, -23356, -17, -4, -864, -197, -532]], + ["microseconds", [0, 0, 0, 0, 23356, 17, 4, 864, 197], [0, 0, 0, 0, -23356, -17, -4, -864, -198]], + ["nanoseconds", [0, 0, 0, 0, 23356, 17, 4, 864, 197, 500], [0, 0, 0, 0, -23356, -17, -4, -864, -197, -500]], ]; const roundingMode = "halfFloor"; diff --git a/test/built-ins/Temporal/ZonedDateTime/prototype/since/roundingmode-halfTrunc.js b/test/built-ins/Temporal/ZonedDateTime/prototype/since/roundingmode-halfTrunc.js index 87160b8513..16f0747ad7 100644 --- a/test/built-ins/Temporal/ZonedDateTime/prototype/since/roundingmode-halfTrunc.js +++ b/test/built-ins/Temporal/ZonedDateTime/prototype/since/roundingmode-halfTrunc.js @@ -8,8 +8,8 @@ includes: [temporalHelpers.js] features: [Temporal] ---*/ -const earlier = new Temporal.ZonedDateTime(1546935756_123_456_789n, "UTC"); -const later = new Temporal.ZonedDateTime(1631018380_987_654_321n, "UTC"); +const earlier = new Temporal.ZonedDateTime(1546935756_123_456_789n /* 2019-01-08T08:22:36.123456789+00:00 */, "UTC"); +const later = new Temporal.ZonedDateTime(1631018380_987_654_289n /* 2021-09-07T12:39:40.987654289+00:00 */, "UTC"); const expected = [ ["years", [3], [-3]], @@ -20,8 +20,8 @@ const expected = [ ["minutes", [0, 0, 0, 0, 23356, 17], [0, 0, 0, 0, -23356, -17]], ["seconds", [0, 0, 0, 0, 23356, 17, 5], [0, 0, 0, 0, -23356, -17, -5]], ["milliseconds", [0, 0, 0, 0, 23356, 17, 4, 864], [0, 0, 0, 0, -23356, -17, -4, -864]], - ["microseconds", [0, 0, 0, 0, 23356, 17, 4, 864, 198], [0, 0, 0, 0, -23356, -17, -4, -864, -198]], - ["nanoseconds", [0, 0, 0, 0, 23356, 17, 4, 864, 197, 532], [0, 0, 0, 0, -23356, -17, -4, -864, -197, -532]], + ["microseconds", [0, 0, 0, 0, 23356, 17, 4, 864, 197], [0, 0, 0, 0, -23356, -17, -4, -864, -197]], + ["nanoseconds", [0, 0, 0, 0, 23356, 17, 4, 864, 197, 500], [0, 0, 0, 0, -23356, -17, -4, -864, -197, -500]], ]; const roundingMode = "halfTrunc"; diff --git a/test/built-ins/Temporal/ZonedDateTime/prototype/since/roundingmode-trunc.js b/test/built-ins/Temporal/ZonedDateTime/prototype/since/roundingmode-trunc.js index 4d869c353d..5183eb8c98 100644 --- a/test/built-ins/Temporal/ZonedDateTime/prototype/since/roundingmode-trunc.js +++ b/test/built-ins/Temporal/ZonedDateTime/prototype/since/roundingmode-trunc.js @@ -8,8 +8,8 @@ includes: [temporalHelpers.js] features: [Temporal] ---*/ -const earlier = new Temporal.ZonedDateTime(1546935756_123_456_789n, "UTC"); -const later = new Temporal.ZonedDateTime(1631018380_987_654_321n, "UTC"); +const earlier = new Temporal.ZonedDateTime(1546935756_123_456_789n /* 2019-01-08T08:22:36.123456789+00:00 */, "UTC"); +const later = new Temporal.ZonedDateTime(1631018380_987_654_289n /* 2021-09-07T12:39:40.987654289+00:00 */, "UTC"); const expected = [ ["years", [2], [-2]], @@ -21,7 +21,7 @@ const expected = [ ["seconds", [0, 0, 0, 0, 23356, 17, 4], [0, 0, 0, 0, -23356, -17, -4]], ["milliseconds", [0, 0, 0, 0, 23356, 17, 4, 864], [0, 0, 0, 0, -23356, -17, -4, -864]], ["microseconds", [0, 0, 0, 0, 23356, 17, 4, 864, 197], [0, 0, 0, 0, -23356, -17, -4, -864, -197]], - ["nanoseconds", [0, 0, 0, 0, 23356, 17, 4, 864, 197, 532], [0, 0, 0, 0, -23356, -17, -4, -864, -197, -532]], + ["nanoseconds", [0, 0, 0, 0, 23356, 17, 4, 864, 197, 500], [0, 0, 0, 0, -23356, -17, -4, -864, -197, -500]], ]; const roundingMode = "trunc"; diff --git a/test/built-ins/Temporal/ZonedDateTime/prototype/until/roundingmode-ceil.js b/test/built-ins/Temporal/ZonedDateTime/prototype/until/roundingmode-ceil.js index 566bd259ef..22f3eb2ae8 100644 --- a/test/built-ins/Temporal/ZonedDateTime/prototype/until/roundingmode-ceil.js +++ b/test/built-ins/Temporal/ZonedDateTime/prototype/until/roundingmode-ceil.js @@ -8,8 +8,8 @@ includes: [temporalHelpers.js] features: [Temporal] ---*/ -const earlier = new Temporal.ZonedDateTime(1546935756_123_456_789n, "UTC"); -const later = new Temporal.ZonedDateTime(1631018380_987_654_321n, "UTC"); +const earlier = new Temporal.ZonedDateTime(1546935756_123_456_789n /* 2019-01-08T08:22:36.123456789+00:00 */, "UTC"); +const later = new Temporal.ZonedDateTime(1631018380_987_654_289n /* 2021-09-07T12:39:40.987654289+00:00 */, "UTC"); const expected = [ ["years", [3], [-2]], @@ -21,7 +21,7 @@ const expected = [ ["seconds", [0, 0, 0, 0, 23356, 17, 5], [0, 0, 0, 0, -23356, -17, -4]], ["milliseconds", [0, 0, 0, 0, 23356, 17, 4, 865], [0, 0, 0, 0, -23356, -17, -4, -864]], ["microseconds", [0, 0, 0, 0, 23356, 17, 4, 864, 198], [0, 0, 0, 0, -23356, -17, -4, -864, -197]], - ["nanoseconds", [0, 0, 0, 0, 23356, 17, 4, 864, 197, 532], [0, 0, 0, 0, -23356, -17, -4, -864, -197, -532]], + ["nanoseconds", [0, 0, 0, 0, 23356, 17, 4, 864, 197, 500], [0, 0, 0, 0, -23356, -17, -4, -864, -197, -500]], ]; const roundingMode = "ceil"; diff --git a/test/built-ins/Temporal/ZonedDateTime/prototype/until/roundingmode-expand.js b/test/built-ins/Temporal/ZonedDateTime/prototype/until/roundingmode-expand.js index 7cff73d9d3..80f20cb624 100644 --- a/test/built-ins/Temporal/ZonedDateTime/prototype/until/roundingmode-expand.js +++ b/test/built-ins/Temporal/ZonedDateTime/prototype/until/roundingmode-expand.js @@ -8,8 +8,8 @@ includes: [temporalHelpers.js] features: [Temporal] ---*/ -const earlier = new Temporal.ZonedDateTime(1546935756_123_456_789n, "UTC"); -const later = new Temporal.ZonedDateTime(1631018380_987_654_321n, "UTC"); +const earlier = new Temporal.ZonedDateTime(1546935756_123_456_789n /* 2019-01-08T08:22:36.123456789+00:00 */, "UTC"); +const later = new Temporal.ZonedDateTime(1631018380_987_654_289n /* 2021-09-07T12:39:40.987654289+00:00 */, "UTC"); const expected = [ ["years", [3], [-3]], @@ -21,7 +21,7 @@ const expected = [ ["seconds", [0, 0, 0, 0, 23356, 17, 5], [0, 0, 0, 0, -23356, -17, -5]], ["milliseconds", [0, 0, 0, 0, 23356, 17, 4, 865], [0, 0, 0, 0, -23356, -17, -4, -865]], ["microseconds", [0, 0, 0, 0, 23356, 17, 4, 864, 198], [0, 0, 0, 0, -23356, -17, -4, -864, -198]], - ["nanoseconds", [0, 0, 0, 0, 23356, 17, 4, 864, 197, 532], [0, 0, 0, 0, -23356, -17, -4, -864, -197, -532]], + ["nanoseconds", [0, 0, 0, 0, 23356, 17, 4, 864, 197, 500], [0, 0, 0, 0, -23356, -17, -4, -864, -197, -500]], ]; const roundingMode = "expand"; diff --git a/test/built-ins/Temporal/ZonedDateTime/prototype/until/roundingmode-floor.js b/test/built-ins/Temporal/ZonedDateTime/prototype/until/roundingmode-floor.js index 04cab27c0d..b7da61eccd 100644 --- a/test/built-ins/Temporal/ZonedDateTime/prototype/until/roundingmode-floor.js +++ b/test/built-ins/Temporal/ZonedDateTime/prototype/until/roundingmode-floor.js @@ -8,8 +8,8 @@ includes: [temporalHelpers.js] features: [Temporal] ---*/ -const earlier = new Temporal.ZonedDateTime(1546935756_123_456_789n, "UTC"); -const later = new Temporal.ZonedDateTime(1631018380_987_654_321n, "UTC"); +const earlier = new Temporal.ZonedDateTime(1546935756_123_456_789n /* 2019-01-08T08:22:36.123456789+00:00 */, "UTC"); +const later = new Temporal.ZonedDateTime(1631018380_987_654_289n /* 2021-09-07T12:39:40.987654289+00:00 */, "UTC"); const expected = [ ["years", [2], [-3]], @@ -21,7 +21,7 @@ const expected = [ ["seconds", [0, 0, 0, 0, 23356, 17, 4], [0, 0, 0, 0, -23356, -17, -5]], ["milliseconds", [0, 0, 0, 0, 23356, 17, 4, 864], [0, 0, 0, 0, -23356, -17, -4, -865]], ["microseconds", [0, 0, 0, 0, 23356, 17, 4, 864, 197], [0, 0, 0, 0, -23356, -17, -4, -864, -198]], - ["nanoseconds", [0, 0, 0, 0, 23356, 17, 4, 864, 197, 532], [0, 0, 0, 0, -23356, -17, -4, -864, -197, -532]], + ["nanoseconds", [0, 0, 0, 0, 23356, 17, 4, 864, 197, 500], [0, 0, 0, 0, -23356, -17, -4, -864, -197, -500]], ]; const roundingMode = "floor"; diff --git a/test/built-ins/Temporal/ZonedDateTime/prototype/until/roundingmode-halfCeil.js b/test/built-ins/Temporal/ZonedDateTime/prototype/until/roundingmode-halfCeil.js index f54e082108..6c0a128559 100644 --- a/test/built-ins/Temporal/ZonedDateTime/prototype/until/roundingmode-halfCeil.js +++ b/test/built-ins/Temporal/ZonedDateTime/prototype/until/roundingmode-halfCeil.js @@ -8,8 +8,8 @@ includes: [temporalHelpers.js] features: [Temporal] ---*/ -const earlier = new Temporal.ZonedDateTime(1546935756_123_456_789n, "UTC"); -const later = new Temporal.ZonedDateTime(1631018380_987_654_321n, "UTC"); +const earlier = new Temporal.ZonedDateTime(1546935756_123_456_789n /* 2019-01-08T08:22:36.123456789+00:00 */, "UTC"); +const later = new Temporal.ZonedDateTime(1631018380_987_654_289n /* 2021-09-07T12:39:40.987654289+00:00 */, "UTC"); const expected = [ ["years", [3], [-3]], @@ -20,8 +20,8 @@ const expected = [ ["minutes", [0, 0, 0, 0, 23356, 17], [0, 0, 0, 0, -23356, -17]], ["seconds", [0, 0, 0, 0, 23356, 17, 5], [0, 0, 0, 0, -23356, -17, -5]], ["milliseconds", [0, 0, 0, 0, 23356, 17, 4, 864], [0, 0, 0, 0, -23356, -17, -4, -864]], - ["microseconds", [0, 0, 0, 0, 23356, 17, 4, 864, 198], [0, 0, 0, 0, -23356, -17, -4, -864, -198]], - ["nanoseconds", [0, 0, 0, 0, 23356, 17, 4, 864, 197, 532], [0, 0, 0, 0, -23356, -17, -4, -864, -197, -532]], + ["microseconds", [0, 0, 0, 0, 23356, 17, 4, 864, 198], [0, 0, 0, 0, -23356, -17, -4, -864, -197]], + ["nanoseconds", [0, 0, 0, 0, 23356, 17, 4, 864, 197, 500], [0, 0, 0, 0, -23356, -17, -4, -864, -197, -500]], ]; const roundingMode = "halfCeil"; diff --git a/test/built-ins/Temporal/ZonedDateTime/prototype/until/roundingmode-halfEven.js b/test/built-ins/Temporal/ZonedDateTime/prototype/until/roundingmode-halfEven.js index 487964d016..fa3f53d3e9 100644 --- a/test/built-ins/Temporal/ZonedDateTime/prototype/until/roundingmode-halfEven.js +++ b/test/built-ins/Temporal/ZonedDateTime/prototype/until/roundingmode-halfEven.js @@ -8,8 +8,8 @@ includes: [temporalHelpers.js] features: [Temporal] ---*/ -const earlier = new Temporal.ZonedDateTime(1546935756_123_456_789n, "UTC"); -const later = new Temporal.ZonedDateTime(1631018380_987_654_321n, "UTC"); +const earlier = new Temporal.ZonedDateTime(1546935756_123_456_789n /* 2019-01-08T08:22:36.123456789+00:00 */, "UTC"); +const later = new Temporal.ZonedDateTime(1631018380_987_654_289n /* 2021-09-07T12:39:40.987654289+00:00 */, "UTC"); const expected = [ ["years", [3], [-3]], @@ -21,7 +21,7 @@ const expected = [ ["seconds", [0, 0, 0, 0, 23356, 17, 5], [0, 0, 0, 0, -23356, -17, -5]], ["milliseconds", [0, 0, 0, 0, 23356, 17, 4, 864], [0, 0, 0, 0, -23356, -17, -4, -864]], ["microseconds", [0, 0, 0, 0, 23356, 17, 4, 864, 198], [0, 0, 0, 0, -23356, -17, -4, -864, -198]], - ["nanoseconds", [0, 0, 0, 0, 23356, 17, 4, 864, 197, 532], [0, 0, 0, 0, -23356, -17, -4, -864, -197, -532]], + ["nanoseconds", [0, 0, 0, 0, 23356, 17, 4, 864, 197, 500], [0, 0, 0, 0, -23356, -17, -4, -864, -197, -500]], ]; const roundingMode = "halfEven"; diff --git a/test/built-ins/Temporal/ZonedDateTime/prototype/until/roundingmode-halfExpand.js b/test/built-ins/Temporal/ZonedDateTime/prototype/until/roundingmode-halfExpand.js index 709e0d4f64..a9175e1e40 100644 --- a/test/built-ins/Temporal/ZonedDateTime/prototype/until/roundingmode-halfExpand.js +++ b/test/built-ins/Temporal/ZonedDateTime/prototype/until/roundingmode-halfExpand.js @@ -8,8 +8,8 @@ includes: [temporalHelpers.js] features: [Temporal] ---*/ -const earlier = new Temporal.ZonedDateTime(1546935756_123_456_789n, "UTC"); -const later = new Temporal.ZonedDateTime(1631018380_987_654_321n, "UTC"); +const earlier = new Temporal.ZonedDateTime(1546935756_123_456_789n /* 2019-01-08T08:22:36.123456789+00:00 */, "UTC"); +const later = new Temporal.ZonedDateTime(1631018380_987_654_289n /* 2021-09-07T12:39:40.987654289+00:00 */, "UTC"); const expected = [ ["years", [3], [-3]], @@ -21,7 +21,7 @@ const expected = [ ["seconds", [0, 0, 0, 0, 23356, 17, 5], [0, 0, 0, 0, -23356, -17, -5]], ["milliseconds", [0, 0, 0, 0, 23356, 17, 4, 864], [0, 0, 0, 0, -23356, -17, -4, -864]], ["microseconds", [0, 0, 0, 0, 23356, 17, 4, 864, 198], [0, 0, 0, 0, -23356, -17, -4, -864, -198]], - ["nanoseconds", [0, 0, 0, 0, 23356, 17, 4, 864, 197, 532], [0, 0, 0, 0, -23356, -17, -4, -864, -197, -532]], + ["nanoseconds", [0, 0, 0, 0, 23356, 17, 4, 864, 197, 500], [0, 0, 0, 0, -23356, -17, -4, -864, -197, -500]], ]; const roundingMode = "halfExpand"; diff --git a/test/built-ins/Temporal/ZonedDateTime/prototype/until/roundingmode-halfFloor.js b/test/built-ins/Temporal/ZonedDateTime/prototype/until/roundingmode-halfFloor.js index 1c326ff1b3..f3faf3ad69 100644 --- a/test/built-ins/Temporal/ZonedDateTime/prototype/until/roundingmode-halfFloor.js +++ b/test/built-ins/Temporal/ZonedDateTime/prototype/until/roundingmode-halfFloor.js @@ -8,8 +8,8 @@ includes: [temporalHelpers.js] features: [Temporal] ---*/ -const earlier = new Temporal.ZonedDateTime(1546935756_123_456_789n, "UTC"); -const later = new Temporal.ZonedDateTime(1631018380_987_654_321n, "UTC"); +const earlier = new Temporal.ZonedDateTime(1546935756_123_456_789n /* 2019-01-08T08:22:36.123456789+00:00 */, "UTC"); +const later = new Temporal.ZonedDateTime(1631018380_987_654_289n /* 2021-09-07T12:39:40.987654289+00:00 */, "UTC"); const expected = [ ["years", [3], [-3]], @@ -20,8 +20,8 @@ const expected = [ ["minutes", [0, 0, 0, 0, 23356, 17], [0, 0, 0, 0, -23356, -17]], ["seconds", [0, 0, 0, 0, 23356, 17, 5], [0, 0, 0, 0, -23356, -17, -5]], ["milliseconds", [0, 0, 0, 0, 23356, 17, 4, 864], [0, 0, 0, 0, -23356, -17, -4, -864]], - ["microseconds", [0, 0, 0, 0, 23356, 17, 4, 864, 198], [0, 0, 0, 0, -23356, -17, -4, -864, -198]], - ["nanoseconds", [0, 0, 0, 0, 23356, 17, 4, 864, 197, 532], [0, 0, 0, 0, -23356, -17, -4, -864, -197, -532]], + ["microseconds", [0, 0, 0, 0, 23356, 17, 4, 864, 197], [0, 0, 0, 0, -23356, -17, -4, -864, -198]], + ["nanoseconds", [0, 0, 0, 0, 23356, 17, 4, 864, 197, 500], [0, 0, 0, 0, -23356, -17, -4, -864, -197, -500]], ]; const roundingMode = "halfFloor"; diff --git a/test/built-ins/Temporal/ZonedDateTime/prototype/until/roundingmode-halfTrunc.js b/test/built-ins/Temporal/ZonedDateTime/prototype/until/roundingmode-halfTrunc.js index bf2f0308aa..2e3f5aa710 100644 --- a/test/built-ins/Temporal/ZonedDateTime/prototype/until/roundingmode-halfTrunc.js +++ b/test/built-ins/Temporal/ZonedDateTime/prototype/until/roundingmode-halfTrunc.js @@ -8,8 +8,8 @@ includes: [temporalHelpers.js] features: [Temporal] ---*/ -const earlier = new Temporal.ZonedDateTime(1546935756_123_456_789n, "UTC"); -const later = new Temporal.ZonedDateTime(1631018380_987_654_321n, "UTC"); +const earlier = new Temporal.ZonedDateTime(1546935756_123_456_789n /* 2019-01-08T08:22:36.123456789+00:00 */, "UTC"); +const later = new Temporal.ZonedDateTime(1631018380_987_654_289n /* 2021-09-07T12:39:40.987654289+00:00 */, "UTC"); const expected = [ ["years", [3], [-3]], @@ -20,8 +20,8 @@ const expected = [ ["minutes", [0, 0, 0, 0, 23356, 17], [0, 0, 0, 0, -23356, -17]], ["seconds", [0, 0, 0, 0, 23356, 17, 5], [0, 0, 0, 0, -23356, -17, -5]], ["milliseconds", [0, 0, 0, 0, 23356, 17, 4, 864], [0, 0, 0, 0, -23356, -17, -4, -864]], - ["microseconds", [0, 0, 0, 0, 23356, 17, 4, 864, 198], [0, 0, 0, 0, -23356, -17, -4, -864, -198]], - ["nanoseconds", [0, 0, 0, 0, 23356, 17, 4, 864, 197, 532], [0, 0, 0, 0, -23356, -17, -4, -864, -197, -532]], + ["microseconds", [0, 0, 0, 0, 23356, 17, 4, 864, 197], [0, 0, 0, 0, -23356, -17, -4, -864, -197]], + ["nanoseconds", [0, 0, 0, 0, 23356, 17, 4, 864, 197, 500], [0, 0, 0, 0, -23356, -17, -4, -864, -197, -500]], ]; const roundingMode = "halfTrunc"; diff --git a/test/built-ins/Temporal/ZonedDateTime/prototype/until/roundingmode-trunc.js b/test/built-ins/Temporal/ZonedDateTime/prototype/until/roundingmode-trunc.js index fc9b131627..923847fb98 100644 --- a/test/built-ins/Temporal/ZonedDateTime/prototype/until/roundingmode-trunc.js +++ b/test/built-ins/Temporal/ZonedDateTime/prototype/until/roundingmode-trunc.js @@ -8,8 +8,8 @@ includes: [temporalHelpers.js] features: [Temporal] ---*/ -const earlier = new Temporal.ZonedDateTime(1546935756_123_456_789n, "UTC"); -const later = new Temporal.ZonedDateTime(1631018380_987_654_321n, "UTC"); +const earlier = new Temporal.ZonedDateTime(1546935756_123_456_789n /* 2019-01-08T08:22:36.123456789+00:00 */, "UTC"); +const later = new Temporal.ZonedDateTime(1631018380_987_654_289n /* 2021-09-07T12:39:40.987654289+00:00 */, "UTC"); const expected = [ ["years", [2], [-2]], @@ -21,7 +21,7 @@ const expected = [ ["seconds", [0, 0, 0, 0, 23356, 17, 4], [0, 0, 0, 0, -23356, -17, -4]], ["milliseconds", [0, 0, 0, 0, 23356, 17, 4, 864], [0, 0, 0, 0, -23356, -17, -4, -864]], ["microseconds", [0, 0, 0, 0, 23356, 17, 4, 864, 197], [0, 0, 0, 0, -23356, -17, -4, -864, -197]], - ["nanoseconds", [0, 0, 0, 0, 23356, 17, 4, 864, 197, 532], [0, 0, 0, 0, -23356, -17, -4, -864, -197, -532]], + ["nanoseconds", [0, 0, 0, 0, 23356, 17, 4, 864, 197, 500], [0, 0, 0, 0, -23356, -17, -4, -864, -197, -500]], ]; const roundingMode = "trunc";