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.
Ahh, jeez. Thanks so much for your time ... rookie error there by me.
There is a typo in your solution, your function is named
decending_order
but it should bedescending_order
.Hi folks,
I'm very new to this so apologies if this is a foolish question.
I've built a solution which I belive works as intended, I've tested it with variations of integers and it seems to be working fine, until ... when I add the code into codewars and run it, a syntax error is thrown on this sample test:
test.assert_equals(descending_order(def), 987654321)
The error points to def.
I'd expect the test to read: test.assert_equals(descending_order(123456789), 987654321)
Is this an error with me or with the test?
thanks :*
Read this: https://docs.codewars.com/training/troubleshooting#expected-the-same
This comment is hidden because it contains spoiler information about the solution
That your code is returning a string, see those quotes, instead of a number.
which means expected '0' to equal +0 ?
working now, actually you gave me the right direction to get into the problem, Thanks mate.
actually the same code working fine in vs code, dont know why here it is throwing error.
Your function does not return anything, does it?
This comment is hidden because it contains spoiler information about the solution
This problem shouldn't have been in the fundamental category, although it is beginner level.
Did you add all necessary imports to your code?
why is my solution failing to pass because of Lists and ArrayList keywords, are they not allowed ?
Loading more items...