Correct typo to improve coverage

Prior to this commit, the modified test included two different
expressions in positions that were meant to describe the same
expression. This meant that the value of the intended expression was
only partially verified.

Correct the test to fully verify the value of the expression.
This commit is contained in:
Mike Pennisi 2021-09-15 17:15:45 -04:00 committed by Rick Waldron
parent 2314b99bac
commit 93ecde9f3a
1 changed files with 2 additions and 2 deletions

View File

@ -33,8 +33,8 @@ if (-0 / -1 !== +0) {
if (+0 / 1 !== +0) {
throw new Test262Error('#3.1: +0 / 1 === 0. Actual: ' + (+0 / 1));
} else {
if (1 / (+0 / -1) !== Number.NEGATIVE_INFINITY) {
throw new Test262Error('#3.2: +0 / -1 === + 0. Actual: -0');
if (1 / (+0 / 1) !== Number.POSITIVE_INFINITY) {
throw new Test262Error('#3.2: +0 / 1 === + 0. Actual: -0');
}
}