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.
Same problem
for what this shit?
functions dont write for this
The final result has no spaces, so no, it's not longer than 140 chars. Not a kata issue.
The final result (#CodeWars) not the input should be less than 140 chars.
I think there is an issue with a basic test ("testThatSomethingShouldHappen") request. The function should reject strings longer than 140 or equal chars.
This request wishes to see the string "#CodeWars" but the input string is larger than 140 chars:
$this->assertSame('#CodeWars', generateHashtag('Code' . str_repeat(' ', 140) . 'wars'));
I'm using PHP on this Kata
Ah. Makes sense.
With the hashtag, it has 141 chars. Not a kata issue.
The question says "If the final result is longer than 140 chars it must return false". But, the "Too long" part (below is JavaScript version of the test code),
just gives me 140 "a"s and does not return "false". I think that the question should be "140 chars or longer".
Hi. I've been running into the same error with the Looo...ong Cat test and another one where the final hashtag is longer than 140 characters. According to the tests I should be returning False instead of whatever it is I'm returning. However I've been debugging my code in pycharm to see what was going on and what I was returning... my code IS returning False for those cases yet here it is not? I'm not sure what's going on.
EDIT: Nevermind I'm dumb. I don't really use twitter (ig it's X now) so I thought the length of the hashtag was counted after the "#" so I was substracting 1 to the length of the final string.
arreglen el copilador, en local me funciona
My favourite kata ever! Thank you very mutch! Lllove it!
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
@Anjali Singh why did you copy the tests code? Please use the initial code:
Probably you forfeited the kata. Not the same problem as the OP one.
This comment is hidden because it contains spoiler information about the solution
Loading more items...