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.
Even the custom tests I wrote "Fail" even though each individual test passes:
Time: 385ms Passed: 11 Failed: 0
Test Results:
Example tests
✔ Test Passed: Value == "white"
✔ Test Passed: Value == "black"
✔ Test Passed: Value == "black"
✔ Test Passed: Value == "white"
✔ Test Passed: Value == "white"
✔ Test Passed: Value == "white"
✔ Test Passed: Value == "white"
✔ Test Passed: Value == "black"
✔ Test Passed: Value == "white"
✔ Test Passed: Value == "black"
✔ Test Passed: Value == "white"
Completed in 2ms
Confused. All my tests pass but the test window border stays red and I can't submit my solution. Is there some kind of constraint that tests should run at or faster than an unspecified benchmark?
Just confirming, your issue is that you can't access the interface for creating your own kata, but you are able to access the edit screen for other's katas?
I know that at a few points yesterday CW was acting a bit buggy for me. Perhaps you were experiencing some of the same. Is it still an issue for you?
Thanks for the catch! JavaScript has been removed as a kata language, though I may add it as a language at a later time.
Would you mind elaborating on your random test case suggestion? Thanks!
Whoops! I meant for this kata to only be in Ruby. I believe it is fixed now!
My apologies. This being my first time writing a kata, I didn't realize that JavaScript was added as a language. Thanks for pointing it out! I believe it is fixed now.
This comment is hidden because it contains spoiler information about the solution
Currently as it stands, the author of this kata provides a template method with the name of areYouPlayingBanjo(name). Down in the tests, areYouPlayingBanjo(name) is called.
However, for some reason when the submit button it pressed, whatever tests in the background are calling are_you_playing_banjo(name).
If you switch your method name to are_you_playing_banjo(name)
You will pass the submission tests, but then the provided tests fail. This really needs to be fixed.
I've managed to pass all tests, but I'm getting the following error that is preventing me from submitting my answer:
goto': undefined method
>=' for []:Array (NoMethodError) fromblock in ' from
block in describe' frommeasure' from
describe' fromdescribe' from
'Confused by failed save and submit output:
"NoMethodError: undefined method `gsub!' for #"
I'm really not sure what is going on here. My best guess is that is isn't playing nice with Date.parse
I really like your use of the unless structure here, and I really like that you are making sure that the values are numbers. One thing that I encountered as I was working on this kata is that class Integer only includes whole numbers, such as 3, 17, 293, but not floats, such as 3.0, 17.4, and 293.3333. It is the same issue if with Fixnum. I found that I needed to use Numeric to ensure that I was able to check all sorts of numbers for validity. Example: