Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
It's works!
I have
Function "sum" is guilty. Why? I do not know.
Thanks! Good job!
Do you have a
n
in your solution? Could you post your solution? (mark it as spoiler).Edit: thanks for your feedback! No need then to post your solution...
the problem was
'use strict';
on top of my codelang JS, passes all basic tests and fails with error:
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 herewhere
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.
My function input (console.log()):
My function output (console.log()):
Console output:
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.
This comment is hidden because it contains spoiler information about the solution
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...
In Javascript again:
Testing Order Weights: 3586 17 135122 66 105243 168 142653 64 407988 34 388602 127 108585 99 100626 12 291904 180 340923 176 2
It should work for random tests too - Expected: 3586 2 135122 66 105243 168 142653 64 407988 34 17 127 108585 99 100626 12 291904 180 340923 176 388602, instead got: 2 12 34 17 180 127 64 66 135122 176 100626 105243 168 99 142653 340923 3586 291904 108585 388602 407988
And others "Random tests".