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:
+3
-3
@@ -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);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user