Ad
  • Custom User Avatar

    JS: missing random tests

  • Custom User Avatar

    National Identity Number is not a numerical value and should not be modelled with numeric data types. PINs, serial numbers, credit card numbers, ISBNs, phone numbers, are formatted strings (potentially, but not necessarily, limited to decimal digits) not numerical values, and representing them with int or a numeric data type is a design error.

  • Custom User Avatar

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

  • Custom User Avatar
    • Python new test framework should be used (Refer this & this for more detail)

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

  • Custom User Avatar

    Oh come on, if your program gets "3angle" as an integer input, you should let it die, not pass the error silently to the next unsuspecting function.

  • Custom User Avatar

    a function that takes a positive integer n

    So why are there tests with n being a string?

  • Custom User Avatar

    In C# version:

    Test Failed
      Thats not a valid time!
      Expected: <System.Exception>
      But was:  <System.ArgumentException: Invalid time>
    

    If tests expect instance of exactly System.Exception to be thrown (and that's bad, BTW), it should be mentioned in the description.

  • Custom User Avatar

    Ruby translation, please check and approve :-)

  • Default User Avatar

    The test cases don't check the case [n > length of the string], but the instructions demand to handle that case:

    "If n is greater than the lenght of the string, you should return an array with the only element being the same string."

    So currently that part could be left out and you still get to submit your final solution.

  • Default User Avatar

    Typo in description:
    "If n is not a valid size(> 0) (or is absent)" should be <0 (less than 0) rather than greater than 0 as it's describing invalid conditions.

    Also a small typo in the next line 'lenght' --> 'length'