diff --git a/calculator/test.js b/calculator/test.js index 77888ea..7aac20b 100644 --- a/calculator/test.js +++ b/calculator/test.js @@ -548,17 +548,17 @@ test('Trig functions with Pi (rad)', () => { press('p'); press('sin'); - checkDisplay(Math.sin(Math.PI)); // ~0 + checkDisplay(0); // Math.sin(Math.PI) is ~0, calculator snaps to 0 press('R'); press('R'); press('p'); press('cos'); - checkDisplay(Math.cos(Math.PI)); // -1 + checkDisplay(-1); press('R'); press('R'); press('p'); press('tan'); - checkDisplay(Math.tan(Math.PI)); // ~0 + checkDisplay(0); // Math.tan(Math.PI) is ~0, calculator snaps to 0 buttonPress('angleMode'); // switch back to DEG assert.strictEqual(scientificOperators.angleMode.val, 'deg');