From 5d3d39ee16cb731adc1c7771765f57adae9ce80c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Bargull?= Date: Wed, 27 Jul 2022 14:17:01 +0200 Subject: [PATCH] Remove tests which use negative day lengths There are already tests to reject negative day lengths, so we can simply remove these other tests. Also remove a misleading comment ("Test negative divisor"), because the test following the comment actually uses a positive divisor. --- .../round/smallest-unit-day-rounding-modes.js | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/test/built-ins/Temporal/ZonedDateTime/prototype/round/smallest-unit-day-rounding-modes.js b/test/built-ins/Temporal/ZonedDateTime/prototype/round/smallest-unit-day-rounding-modes.js index 89641ef0b6..cff0b81929 100644 --- a/test/built-ins/Temporal/ZonedDateTime/prototype/round/smallest-unit-day-rounding-modes.js +++ b/test/built-ins/Temporal/ZonedDateTime/prototype/round/smallest-unit-day-rounding-modes.js @@ -78,13 +78,6 @@ test(-3n, 10n, { halfExpand: 0n, }); -// Test negative divisor (dayLengthNs). -test(3n, -10n, { - ceil: 0n, - floor: -oneDay, - trunc: 0n, - halfExpand: 0n, -}); test(-3n, -10n, { ceil: oneDay, floor: 0n, @@ -99,9 +92,3 @@ test(3n, /*INT64_MAX=*/ 9223372036854775807n, { trunc: 0n, halfExpand: 0n, }); -test(3n, /*INT64_MIN=*/ -9223372036854775808n, { - ceil: 0n, - floor: -oneDay, - trunc: 0n, - halfExpand: 0n, -});