Ad
  • Custom User Avatar

    No worries! Thanks for the Kata!! I really enjoyed it.

  • Custom User Avatar

    Apologies, the example test cases were broken :).

  • Custom User Avatar

    For the Ruby Version, it throws errors before you even add any code.

    For each of the rows of the test that are expecting results i.e.
    Test.assert_equals(animals(72, 200), (44, 28))
    Test.assert_equals(animals(116, 282), (91, 25))

    I think you're saying the result should be an array, correct? So I think each of these results should be listed with [ ] .

    So it would look like:
    Test.assert_equals(animals(72, 200), [44, 28])
    Test.assert_equals(animals(116, 282), [91, 25])

  • Custom User Avatar

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

  • Custom User Avatar

    I'm having the same problem it fails the last test. I added your test cases and my code passes. I wish we could see all the test cases.

  • Custom User Avatar

    You are welcome! ;)

  • Custom User Avatar

    I have completed this kata and got the following feedback:
    Digitize
    is defined
    Test Passed
    should work

    Then it shows that it passed but then I'm not passing on to the next level. There is a bunch of texts that looks like I didn't pass it's in red but you can see it says test passed. If it did pass then I have no idea what to change to make it pass better or something so that I can move to the next kata. Any advice anyone?

  • Custom User Avatar

    I'm not sure I understand how to do this. On other problems there has been test cases already created but these ones look like they're not there. Am I supposed to create these tests to test my change to the code that already existed? I think I solved it but it keeps coming back as an error but there's no error msg so I'm wondering if this is what my problem is? I have run this in irb and it works fine.

  • Custom User Avatar

    I love your solution. I didn't even think to use the log. I'm grateful for the oportunity to look at others solutions after I'm able to come up with a workable solution, it helps me learn. Thank you.