fix: Correct negative zero logic for +/- and update test

Co-authored-by: aider (gemini/gemini-2.5-pro) <aider@aider.chat>
This commit is contained in:
2026-03-14 17:42:25 -06:00
committed by Tanner
parent 73cd819e94
commit 98fdddac5d
2 changed files with 18 additions and 5 deletions
+3 -3
View File
@@ -493,11 +493,11 @@ test('Negative zero handling', () => {
press('0N'); // get -0
checkDisplay(-0);
press('*5');
checkDisplay(-0);
checkDisplay('5'); // after typing 5, display should be 5
press('=');
checkDisplay(-0);
checkDisplay(-0); // -0 * 5 = -0
buttonPress('R'); buttonPress('R');
press('5*-0=');
press('5*0N='); // 5 * -0 = -0
checkDisplay(-0);
});