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.
This comment is hidden because it contains spoiler information about the solution
seems like you solved it soooo...
What about now?
Hi,
MMmmmhh... I guess that means you either didn't see or didn't understood the stuff logged to the console, telling what team is tested at what point...
Mmmmmmmhhh... Let's rebuild this with
it
blocks.Note: those assertions need
Test.assert_equals
, if you wanna have the expected/actual thing in the error message.I have a small suggestion to make the kata's Test and Attempts failed test results a bit more clear.
Instead of printing "Nope!", I would suggest to print a message giving a hint about the method name and the passed arguments of each test.
E.g.:
Let's imagine that the the second test of Test failed.
Current test and failure message:
Suggested test/failure message:
Thanks for your prompt answer.
I will follow the guidelines and ask a question about this kata, if it still make sense to ask it after my code recheck.
[EDIT] it was definitely my code, sorry for this and thanks again for your support.
Hi,
Well... errr... first, there is no
Test.expect
in the "attempt" part of the tests. If you see this, that means it's in the sample tests. Then, we aren't in your mind and we don't see your code. So... How are we supposed to help you, here? x)I just tested my code on the sample tests and everything is going smoothly, so the error is somewhere in your code/algo. In this kind of case, the first step for you would be "pen & paper": retrace by hand what's happening to see what you forgot/misunderstood.
Generic message below, about the local terminology:
Seems you're "rather new" to cw, so here are some general guidelines about the comments:
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 -> that's you, currently.When you post issues:
When you post a question: well, most of the above apply too x)
When you post code, use proper github markdown, so that it's readable.
Closing the "issue" aspect & cheers
The "Attempt" tests don't seem to work from
Test.expect(lt.get_points("Liverpool") == 1, "Nope!")
My code seems to work okay for the full test scenario (I called each method manually and checked the result), but I don't pass the above test, frustating :P
Can you recheck your test and correct if necessary?
Above test error message:
And below my test results for each method:
Fixed.
This comment is hidden because it contains spoiler information about the solution
clojure translation
C++ translation. Please, review and approve (the author is inactive).
Yep, it's now fixed
Sorry, it's now fixed!
Loading more items...