feat: Build calculator UI and input handling
Implement complete calculator logic, UI event binding, keyboard input handling, error handling, and unit tests.
Files (5)
src/calculator.jssrc/app.jsindex.htmlpackage.jsontests/calculator.test.js
Verification
Review — fail
The PR updates UI input handling and introduces a test suite, but the unit test helper method does not invoke the actual Calculator methods, causing unit tests to fail.
-
error: The unit test helper
press()intests/calculator.test.jsattempts to callhandleInput,press,input, orpressKeyon theCalculatorinstance. SinceCalculatorimplementsinputDigit,inputDecimal,inputOperator,calculate,clear, andbackspace, calls topress()perform no
Opened by a Praxis run (35f8d776-f3c9-47a0-9056-0ecb2add0716) for merge by a human.