Calculator

3565812d

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

73 % complete

Suggestions

  • Revise incorrect test tooManyDecimals. The test failed on line 95 when run against a reference implementation:
    AssertionFailedError: expected: <invalid number> but was: <0.12345678901>
  • Revise incorrect test tooManyDigits. The test failed on line 89 when run against a reference implementation:
    AssertionFailedError: expected: <invalid number> but was: <1.2345678901234568E16>

Implementation

73 % complete 13 / 13 Tests
  • addition: Passed
  • division: Passed
  • emptyInput: Passed
  • invalidOperator: Passed
  • largeNumbers: Passed
  • multiplication: Passed
  • negativeNumbers: Passed
  • nonNegativeDecimal: Passed
  • nonNegativeInt: Passed
  • spaces: Passed
  • subtraction: Passed
  • tooManyDecimals: Passed
  • tooManyDigits: Passed

Other Submissions