mirror of https://github.com/tc39/test262.git
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:
parent
30091032c1
commit
5d3d39ee16
|
@ -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,
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue