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.
Fixed.
I think it's a problem with the Haskell test cases, at least the Python ones will fail if you don't check the whole string.
Edit: yeah, whoever wrote that should've used
isInfixOf
instead ofisPrefixOf
.Good point! I am adding something like that.
@zamcl: I know you are very good at Haskell but maybe you forgot the head
module Codewars.G964.Emirps where
... at the beginning of your solution. It can happen or it could be badly written and then you have "Could not find moduleCodewars.G964.Emirps
" which should be your module :-) I just tried the kata and had no problem. Tell me if that works.I'll message to the translator into Haskell Thanks
Oh, I see. Did you try something to solve it already?
@Giacomo: that's one of the Haskell random tests (the one that does not check whether there are any discounts)
Which language and are you sure it is a random test case? Because the last fixed test case should expect
""
as an output.In that case the instructions should be changed from "the string CONTAINS the word hallo .." to "the string STARTS WITH the word hallo" to remove the ambiguity.
Yes, SquishyStrawberry is right. I think this issue can be closed.
You're meant to check if the string starts with a greeting, not if it contains one.. I thought that was what was intended?
Same thing.
The same problem here, seems like a bug in the test.
Falsifiable (after 12 tests):
expected: False
but got: True
"foo bar bar salut textbook"
You are welcome, thanks for the feedback!
I had made the change but CW had taken no account! Now it should work.
Loading more items...