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.
Anybody can tell me how is it works? Please!
Ok, there seems to be a misunderstanding right from the beginning so I'll amend on this.
"This causes an impossible solution."
-> that's where I stopped reading, since the tests passed.Well, warning causes handled.
Sorry for the misunderstanding. But next time, jump on the "discussion button" rather than on the downvote one. The latter doesn't help to make a constructive discussion.
Totally, it's totally not happening at line 62 of fixture.kt. Nope. Not happening at all.
see below.
I'm tired of all those... "people", that (sic) think they are right when they cannot even prove the least of it.
no casting problem anywhere.
Meaning that you're completely wrong, whatever you might think.
Kotlin
The tests fail.
The tests are passing an unchecked casted Array of String? to the function argument declared as Array of String. This causes an impossible solution. Change the function stub to take Array of String? then all the other tests fail as they are trying to pass in the wrong type. The issue isn't resolved because the tests are still wrong not only from an actual assertion standpoint but from an actual coding practice standpoint.
It also has bugs in Kotlin.
Kotlin
The tests fail.
The tests are passing an unchecked casted Array of String? to the function argument declared as Array of String. This causes an impossible solution. Change the function stub to take Array of String? then all the other tests fail as they are trying to pass in the wrong type. The issue isn't resolved because the tests are still wrong not only from an actual assertion standpoint but from an actual coding practice standpoint.
Hi,
This tells me you're new on CW... x)
If you post issues, do it right:
Closing for now, since this looks like an invalid issue. Feel free to reopen if you're sure that's an actual issue (documented, this time ;) )
Note:
Issue
: problem in the kata itself (description, wrong tests, wrong internal solution...)Suggestions
: well, I guess that part is clearQuestion
anything else that is related to you having a problem solving a kata.cheers
That's Kotlin isn't it?
This tells me there is something wrong with this.
Do you see the first there? You have to return
boatshoes
in that case (if k is 2 ofc).Print the input.
It's particularly hard to figure out what's wrong with a test without seeing the input for the tests, regarding the Kotlin tests. I haven't tried it with another language but my solution seems sound but I'm failing 2 tests without any info to lead into what is wrong other than "expected but found" which doesn't help if I don't know the input.