Ad
  • Custom User Avatar

    First of all: this time your post is perfect!
    Nevertheless I'm worried - for you and for me - : you are getting the "good" result but for a reason I don't know it seems that CW don't give the good "expected".
    I verified once more the tests.
    They are of the good form:
    Test.assertEquals(actual, expected, msg) with here

    Test.assertEquals(orderWeight(a), orderWeightSol(a) ,"It should work for random tests too")
    

    where a is the input string. Maybe you could post your solution (mark it as spoiler), I will try it to see where the problem is.
    Sorry for that inconvenience that doesn't seem to come from the kata since I tried my solution and a few others some time ago and just now again with no problem as I told you. Do you modify the input string to get your result? Anyway whatever I see it's now impossible to modify something in this kata since there are more than 500 people who passed it.

  • Custom User Avatar

    You are kind but your post is unreadable. I said between backticks (google "markdown backticks" to see how to proceed if you don't know). Furthermore I need only the result of one random tests, not all... Plus: you can console.log your input and output to compare with expected and actual.

  • Custom User Avatar

    Seems that you are swapping "Expected" and "got". Please put exactly what it is shown between three backticks ....
    I tried once more my solution and a few solutions from CW who passed the kata and had no problems at all...