My bad had the wrong impression of what suggestion meant. Though I do have suggest that in the test cases, there should be test instances where misc. characters not being treated as white space causes issues with output.
i.e. test.assert_equals(top_3_words("suggestion//for//a,*&test/.instance/a/a/for"), ["a", "for", "suggestion"])
Had some trouble with this kata. Pretty useful tip for anyone having a hard time: You can find out what the "random" inputs are when you hit attempt by making your function print it out. (Lightbulb moment courtesy of Chrono79 who replied to one of the comments)
If anyone else faced the same issue as me, remember from the instructions: "*, /, ., #, ..." should be treated as WHITESPACE and not simply removed
It does actually matter, because every language has its own tests. It is hard to validate and fix a problem if one doesn't know where to start looking.
the language does not really matter here, but I was doing the C# one.
In my opinion there should be at least two more testcases that explicitly check that a certain solution is not correct.
all values are 5. A simple sum check would say this is valid and accept it as a valid solution
My bad had the wrong impression of what suggestion meant. Though I do have suggest that in the test cases, there should be test instances where misc. characters not being treated as white space causes issues with output.
i.e. test.assert_equals(top_3_words("suggestion//for//a,*&test/.instance/a/a/for"), ["a", "for", "suggestion"])
Not a suggestion.
Had some trouble with this kata. Pretty useful tip for anyone having a hard time: You can find out what the "random" inputs are when you hit attempt by making your function print it out. (Lightbulb moment courtesy of Chrono79 who replied to one of the comments)
If anyone else faced the same issue as me, remember from the instructions: "*, /, ., #, ..." should be treated as WHITESPACE and not simply removed
I have a mathematical equation that checks for x and y in one for loop, but still need to pass a loop to solve it...
If your code reads through the whole list then it's probably not right. Think about the problem like a math equation
im using 1 loop and also stuck
could you give me a hint ? I use for loop, then time out...
It does actually matter, because every language has its own tests. It is hard to validate and fix a problem if one doesn't know where to start looking.
Hi JohanWiltink,
the language does not really matter here, but I was doing the C# one.
In my opinion there should be at least two more testcases that explicitly check that a certain solution is not correct.
Hope this is clearer now.
Best regards,
Robert
easy kata i think this one should be 5 kata
Duplicate. Closing.
What language ( of the twelve ) ?
What language ( of the twelve ) ?
( Yes, I can see it's JavaScript. )
Duplicate. Closing.
What language ( of the twelve ) ?
Loading more items...