Ad
  • Custom User Avatar

    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

  • Custom User Avatar

    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?

  • Custom User Avatar

    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?

  • Custom User Avatar

    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!

  • Custom User Avatar

    Whoops! I meant for this kata to only be in Ruby. I believe it is fixed now!

  • Custom User Avatar

    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.

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    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.

  • Custom User Avatar

    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) from block in ' from block in describe' from measure' from describe' from describe' from '

  • Custom User Avatar

    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

  • Custom User Avatar

    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:

    3.is_a(Integer) => true
    (3.0).is_a(Integer) => false
    (3.0).is_a(Fixnum) => false
    (3.0).is_a(Numeric) => true
    (3.3).is_a(Numeric) => true
    3.is_a(Numeric) => true