Ad
  • Custom User Avatar

    Unclear issue, closing

  • Custom User Avatar

    tolerance and actual value were swapped in the assertions. Corrected.

  • Default User Avatar

    resolved

  • Default User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    That seems a problem with your code, not a kata issue.

    const Calculator = function() {
      this.evaluate = string => {
        return 1;
      }
    };
    

    Are you returning the result?

  • Default User Avatar

    JavaScript:
    i get error in every case with array length more than 1.
    For example in this expression '10 * 5 / 2' :
    "Expected actual value undefined to approximately equal expected value 25 (accepted relative error: 1e-9)"
    and actually i have right answer in output, can somebody explain me, what is going on?

  • Default User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Default User Avatar

    I am sorry. 5254 guys passed the kata, the tests are the same in all languages. It is not an issue of the kata but maybe a problem in your code.

  • Default User Avatar

    Who can explain to me, why my result not acceptable?
    ['EAST', 'WEST', 'SOUTH', 'NORTH', 'SOUTH', 'WEST', 'WEST', 'EAST', 'SOUTH', 'NORTH']
    ✘ Expected: '['SOUTH', 'WEST']', instead got: '['WEST', 'SOUTH']'

    ['NORTH', 'SOUTH', 'EAST', 'WEST', 'NORTH', 'SOUTH', 'WEST', 'NORTH', 'EAST', 'WEST', 'NORTH', 'SOUTH', 'EAST', 'WEST']
    ✘ Expected: '['WEST', 'NORTH']', instead got: '['NORTH', 'WEST']'

    ['WEST', 'EAST', 'SOUTH', 'NORTH', 'NORTH', 'EAST', 'WEST', 'EAST', 'NORTH', 'SOUTH']
    ✘ Expected: '['NORTH', 'EAST']', instead got: '['EAST', 'NORTH']'