Ad
  • Default User Avatar

    Very interesting implementation. I don't see a reason to do this in C-style, but definitely a good job.

  • Custom User Avatar

    Hope you got this handled. Thanks for helping AcesOfGlory. This looks like what is happening is that the assertEquals test function uses strict comparison which this doesn't pass. Read more in the testing docs here:

    http://www.codewars.com/docs/js-slash-coffeescript-test-reference

    And as AcesOfGlory mentioned, please keep these comments on the kata page.

  • Custom User Avatar

    Which Kata is it (send me a link) and which language did you do it in? If the problem is Kata specific, you should post on the discourse page for that Kata instead of the forum which is for general topics. It's possible that you are giving the wrong data type - maybe it wants a string and you gave a float or vise versa.

  • Default User Avatar

    Hi guys. I was working on a Kata and everything looks good, but the program cannot pass the test, here is the error:
    Expected: equal to 1.2125
    Actual: 1.2125
    Expected: equal to 1.03128
    Actual: 1.03128
    Seems that I got all of them right, but it just won't let it go through, can anyone help me with it? Thank you very much for your time!!
    Alex

  • Default User Avatar

    Best solution so far

  • Custom User Avatar

    Welcome to Codewars!

    You can print the input parameter directly to the console so that you can see where you went wrong.

  • Default User Avatar

    I am new to the community. I was working on a challenges and my code passed 9 out of test cases. I really want to know which case did the program failed so I could figure out why the code was not running properly. Is there a way I may know which test case I was wrong?
    Thank you for your time