Passes that test now. Cool. Thanks so much.
I've just checked the description and this particular test indeed contradicted it. Reset the trainer and try your code again.
I can't see the tests. When I write the test according to the demands in the instructions, it's correct. There's no indication about how the input object should be modified. I'm left guessing what the issue could be.
What's wrong? How should it be tweaked? Why? All tests are correct, and expect you to modify the input object.
This comment is hidden because it contains spoiler information about the solution
Not an issue
I can't submit my answer although it says all test cases passes...
--- Edit: found out why.
You say, "Your mission is simple: write a function that takes an integer 'n'", but this is not correct. It does not take an integer 'n', it takes an integer n. (It's not a string.)
It would be swell if the edge cases were in the example with a little description of what we're trying to do. That would be most educational. I'm passing all the random tests, but obviously am not thinking of the edge cases.
I'm getting the same issue with your solution, which is strange. I need to sit with your solution for a minute and see wha might be going on there, but I fear it might be something wierd on codewar's end.
Do you mean you can't submit your final answer? Does it past all test cases when you click, "Submit Suite?" If not which tests does your solution fail? Feel free to post your code here and mark it spoiler content.
All test cases looks green but can't submit my answer. Maybe my code is wrong but in that case, test cases shouldn't say code works.
Okay. I just forgot to put in a second arg in the function when being tested. I'll fix that in a sec. Thanks so much. :-)