Ad
  • Custom User Avatar

    in my case the error it is because I had a dividend and an equal divisor, so I had to do validation and if they are the same then just add one.

  • Custom User Avatar

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

  • Custom User Avatar

    random tests were added

  • Custom User Avatar

    Thanks for the feedback. I have republished the kata with a fix.

  • Default User Avatar

    actual and expected are in the wrong order:

    List<int> solve(int size) {
      // your code here
      return [42, 7, 6, 0];
    }
    
    Test Results:
    Cornersof a spiral in a 1 x 1 square
    Expected: [42, 7, 6, 0]
      Actual: [1, 1, 1, 1]
       Which: at location [0] is <1> instead of <42>
    

    pls fix!!1!

  • Custom User Avatar

    dfhwze wrote exactly

    You need to add random tests!

    And this is just true. You need to add random tests or your kata will be retired and all the effort you put in it is vain. I didn't do anything but confirm this. How would this be rude, annoying, unhelpful or aggresive? Your reaction has been obnoxious.

    So far, the most annoying things were the random tests as I never had to deal with comments like yours on codewars.

    Don't overdo it please, that's being ridiculous.

  • Custom User Avatar

    Don't poke at someone and then start crying when you get poked back. You are the one that started showing negative, and passive aggressive behavior. I will keep calling you out on your behavior.

  • Custom User Avatar

    Dfhwze... that's because I do keep learning and adjusting my opinions.

    Up until today I enjoyed codewars to the point where I tried to contribute with a kata.
    So far, the most annoying things were the random tests as I never had to deal with comments like yours on codewars.

    So, while I still maintain that the most of the random tests I experienced here were annoying (while accepting akar-0's point that they could be useful, and that they are required by the guidlines), thanks to you, I no longer find them the most annoying. Rude, unhelpful, and unnecessarily aggresive comments which you exposed me to definitely take the top spot. Congratulations.

  • Custom User Avatar

    Dfhwze, what annoys me is not the 'correct ways' but rude and unhelpful comments from strangers.

    You are mistaken, you wrote before it was annoying to write random tests. You never mentioned unhelpful comments to be annoying.
    Here are your exact words:

    I find the random tests to be the most annoying element of codewars.

    Also, don't tell me how I should phrase my sentences. You find it annoying to get unhelpful comments, yet you do the exact same thing you don't like others to do to you. You called me out for shouting, just for using an exclamation mark. I'm starting to think the annoying factor is YOU.

    You are a self-righteous nobody at all really, and I don't intend on dealing with you anymore.

  • Custom User Avatar

    That's great about 'Show Kata Test Cases' after solving. I haven't noticed this. I'll have a look at a few.

  • Custom User Avatar

    There are really many examples. The official documentation may provide good elements: https://docs.codewars.com/authoring/guidelines/submission-tests

    Once you solved a kata in any language, you can see the tests by clicking on Show Kata Test Cases from Discourse page or Solutions page. You can also see all the translations (approved or pending approvals) by clicking on Translations. Among the katas you solved I think good part of them have good tests, maybe this one for Dart (though I didn't look at it detailedly: https://www.codewars.com/kumite/5d545f3d7e60090d07fcbd35?sel=5d54ddc27d018e00266e280e )

    Hope this helps.

  • Custom User Avatar

    Thanks again, akar-0, do you have an example of well implemented random test (in any langauge). So far my experience was that I just get an error, sometimes with input values, but never with the expected correct value.

  • Custom User Avatar

    Thank you akar-0, that is a good reason, I'll try to implement some random tests.

    Dfhwze, what annoys me is not the 'correct ways' but rude and unhelpful comments from strangers.

  • Custom User Avatar

    More:

    If we know the problem domain we can design tests to cover all inputs

    -> If you can cover all inputs, fine, do it but randomize the order they are passed to the user.

    Random tests don't guarantee to cover any useful test cases,

    -> They do if they are properly designed

    and if they happen to fail, they don't offer any insight that would help to improve the code (as we don't get the input values or the expected result).

    -> This is absolutely wrong, it is possible and highly recommended to provide informative tests logs.

  • Custom User Avatar

    If creating a kata the correct way annoys you, perhaps you shouldn't create any at all.

  • Loading more items...