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.
Thanks fakedup, that's indeed correct. In your example above you are counting digits. I missed that before. Only a-z and A-Z should be counted
it seems you haven't exclude digits
When I run the tests with an invalid expected result, I get "('t', 12) should equal ('t', 15)" as a message. So I think what you are failing on is the length of the result, as I check for that too. It is entirely possible that your result has too many entries. I will adjust the tests to give better messages.
Svenito, I am not talking about the test cases in the window on the bottom right. I mean the test cases that the submit button executes after I've already tested my code. I fail on the 52nd test, but I've counted the output vs the input for that test using print() and I don't think I'm incorrect. Could you look into it?
Same problem here. my code passes all the tests, but when i try to submit, the code passes 51 tests, and fails 1...
The error message is: "15 should equal 12"
To be onest the error is a bit criptic...
What does the test message say?
If you are trying in python, you can always redefine the
__getattribute__
method to check which member is being accessed :Where
object
is the argument of the classCould you give me insight on test 19? I receive error message saying 0 should equal 1, but I can't figure out where the bug is. I did everything as it was in the instruction.
Nice kata, and well-tested. The description has some small problems however...
if the ball is of type "super"
, but don't tell us how to find this out.eatGhost
function?But as I say--a nice, simple kata. ;P
I had the same problem. Copying code, reloading and pasting back solved problem.
It's out of draft now. I had some errors and wasn't able to figure out where through the kata builder, but pasting tests and solutions into the trainer worked for trouble-shooting. It should (hopefully) be in good condition now.
Git it a try now. It should be working.
Thanks for this comment! I was able to troubleshoot the issues, and I think it should be working now!
I can't submit right now, but it seems like now you check that the state falls back to regular in test 15, then you suppose in test 16 that eating a ghost increases points by 10, but the state is now regular, so it occurs to me that this test is wrong since the value should be 0 when you ask for 10, then in test 17 you eat an other ghost, suppose that a life is lost, but a life is already lost in the previous test, therefore you suppose 2 when its 1. I also mention that since I can't submit working code, I can neither see spoiler content nor actual test cases.
I'm not sure what to do about this.
I've tried adding test cases according to what @Cameron_ suggested. However, I was unable to save them. I suddenly get a "Final Solution does not have valid code." error.
I then tried unpublishing and re-publishing, and I think that is when it got set as a draft.
Loading more items...