Ad
  • Custom User Avatar

    Description should be language-agnostic

  • Custom User Avatar

    I created a Rust translation, please take a look!

  • Custom User Avatar

    I made a Rust translation, please take a look!

  • Custom User Avatar

    Please move calls of the user solution to within the it-block containing the associated actual tests. This is doubtlessly documented somewhere, but I don't know exactly where. See this fork. ( the Diff tab is useful! )

  • Custom User Avatar

    Not sure how you feel about solutions like mine, perhaps some larger tests are warranted?

  • Custom User Avatar

    you could enlarge a bit the possible ranges for the random cases (not too much, otherwise you could get troubles about the number of valid cases)

  • Custom User Avatar

    ( JS, possibly others )

    Do not rely on random tests only. Have fixed tests for any edge cases you can think of, and keep an eye out for ones that you didn't immediately think of ( which random tests might generate for you or for other solvers, and which you can then add as fixed tests ). ( What is and is not an edge case may differ for different solutions. )

    Also, use test headers instead of logging text directly to the console.

  • Custom User Avatar

    CW has enough straight up map / filter / reduce kata ( with completely artificial transformation to make it worse ). You may have already noticed the general sentiment from the satisfaction rating.

    Read available documentation, and, when the urge to create a kata strikes you, ask yourself not what CodeWars can do for you, but what you can do for CodeWars. Please create interesting kata.

  • Custom User Avatar
    Traceback (most recent call last):
      File "/workspace/default/src/codewars-test/codewars_test/test_framework.py", line 111, in wrapper
        func()
      File "tests.py", line 7, in __
        test.assert_equals(сhange_array([10]), [100])
    NameError: name 'сhange_array' is not defined