Ad
  • Custom User Avatar
  • Custom User Avatar
    • Tests should not use test.expect in all languages

    • Python 3.8 should be enabled with new test framework (Refer this & this for more detail)

    • Ruby 3.0 should be enabled (Refer this & this for more detail)

  • Default User Avatar

    The constraints should be mentioned in the description. Also, please add large tests that reach septillion as of now there is only two fixed tests in that case (in this case, Python)

  • Custom User Avatar

    Test cases are far from enough. There are only 7 tests, and lots of buggy solution passed.

    Also, needs random tests.

  • Default User Avatar

    Hi guys, I was intrigued by the top solution and then I decided to run it against my tests and some tests failed.

    I think this kata should contain more tests (sorry, I never suggested something to a kata, I don't know how to do this)

    But here are some that failed (I can probably send my whole suite if you are interested)

    Test.assert_equals(int_to_english(1000), 'one thousand')

    Test.assert_equals(int_to_english(100), 'one hundred')

    Test.assert_equals(int_to_english(30), 'thirty')

    Test.assert_equals(int_to_english(20), 'twenty')

    Test.assert_equals(int_to_english(14), 'fourteen')

  • Custom User Avatar

    I would recommend to REQUIRE using - and and in the result.

    That would make the kata more fun and also simplify the test and debugging by using assert_equals.