Ad
  • Custom User Avatar

    Translation added to https://www.codewars.com/kata/fluent-calculator-1
    Do I un-publish this Kata now to close it?

  • Custom User Avatar
  • Custom User Avatar

    I suggest updating the description to "Create a simple calculator that given a string of operators () + - * / and numbers separated by spaces returns the value of that expression".
    It caused some confusion initially, given that the Sample Test Cases don't reflect the submission ones.

    I'd consider adding these test cases to the sample ones:
    [TestCase("2 / 2 + 3 * 4.75 - -6", ExpectedResult = 21.25)]
    [TestCase("(2+2)(4)", ExpectedResult = 16)]
    [TestCase("12
    -1", ExpectedResult = -12)]
    [TestCase("((80 - (19)))", ExpectedResult = 61)]
    [TestCase("12 * 123 / -(-5 + 2)", ExpectedResult = 492)]