Ad
  • Custom User Avatar

    -Changed number of random tests to 100 (up from 2)

    -Fixed random tests to actually generate random numbers instead of using the same sequence every time

    -Added random tests for getPrimes function (Originally kata only had random tests for isPrime)

  • Custom User Avatar

    There is no precision for the output of 2 digits implemented

  • Custom User Avatar

    COBOL translation (author is inactive). This translation updates the description and fixes the issue below (wording and incorrect range of inputs). If it's approved, Swift tests should be updated in order to generate more values in the full range (according to what I could see, it should not have any significant impact invalidating solutions).

  • Custom User Avatar

    The description is inaccurate (beside, the wording is incorrect) : The highest the will be passed in will be in the 1,000,000,000,000 (1 trillion) range, but fixed tests include 895,156,000,329,152 (> 895 trillions). It appears to be the unique number tested out of the specified range.

  • Custom User Avatar

    that should be clear from the type of the function, and in this way it is better readable

  • Custom User Avatar

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

  • Custom User Avatar
  • Custom User Avatar

    I feel like this should be mentioned in the descriptions. Or at least put up a test case where this distinction matters.

    The point about 0 and negative numbers still stand though.

  • Custom User Avatar

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

  • Custom User Avatar

    returns true if one nuber is within 10% of the other number.

    In what definition? 10% of the larger number, or the smaller number? (This incur about 1.1% difference.)

    Also (probably) needs test cases for 0 and negative numbers.

  • Custom User Avatar

    You arer like me! love big solutions!

  • Custom User Avatar

    It is because the mistake doesnt refer to the test input 43 but to the test above....-1.

  • Custom User Avatar

    The example code should be put in a code block.

  • Custom User Avatar

    I tried to do random tests, but the server kept timing out, so I had to get rid of them.

  • Custom User Avatar

    Now, if you want to add some random seed (I don't see any) you can prepare your changes, edit your Swift translation, modify your tests (don't modify the description) and re-publish... hoping that works. But you can remain with the present translation and keep yourself for next translation:-)

  • Loading more items...