Calculator

4b84b0ca

Larissa T.

A newer submission is available.
Some tests are incorrect: They fail when run against a reference implementation. The test suite score has been reduced.

Test Suite

70 % complete

Suggestions

  • Revise incorrect test division. The test failed on line 59 when run against a reference implementation:
    AssertionFailedError: expected: <division by zero> but was: <Infinity>

Implementation

70 % complete 11 / 11 Tests
  • addition: Passed
  • division: Passed
  • emptyInput: Passed
  • invalidOperator: Passed
  • largeNumbers: Passed
  • multiplication: Passed
  • negativeNumbers: Passed
  • nonNegativeDecimal: Passed
  • nonNegativeInt: Passed
  • spaces: Passed
  • subtraction: Passed

Other Submissions