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.
This commit is contained in:
André Bargull 2022-07-27 14:17:01 +02:00 committed by Philip Chimento
parent 30091032c1
commit 5d3d39ee16
1 changed files with 0 additions and 13 deletions

View File

@ -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,
});