Skip to content

feat: Build calculator UI and input handling

gitLab_calculator requested to merge praxis/35f8d776 into main

Implement complete calculator logic, UI event binding, keyboard input handling, error handling, and unit tests.

Files (5)

  • src/calculator.js
  • src/app.js
  • index.html
  • package.json
  • tests/calculator.test.js

Verification

✅ no test command detected — skipped

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() in tests/calculator.test.js attempts to call handleInput, press, input, or pressKey on the Calculator instance. Since Calculator implements inputDigit, inputDecimal, inputOperator, calculate, clear, and backspace, calls to press() perform no

Opened by a Praxis run (35f8d776-f3c9-47a0-9056-0ecb2add0716) for merge by a human.

Merge request reports