Ad
  • Custom User Avatar

    kata should make sure not to pass in values like "loop" for input (included as a fixed test in JS) because they are not solvable according to the requirement of the kata (make sure the word is different by changing its inner characters), or there should be some extra-specification, or something else.

  • Custom User Avatar

    I passed about 20 tests during submission, but then it goes into time out.
    I call my function multiple times (while loop) until the word is not the same as the one entered in tests.

    Can someone help?
    I can not understand where is the mistake.

    Thanks in advance.

  • Custom User Avatar

    Needs a javascript tests update (also random tests as written below), it throws warnings

    assertSimilar is deprecated, use assertDeepEquals
    
  • Custom User Avatar

    Ruby 3.0 should be enabled.

  • Custom User Avatar

    specifications are incomplete:

    • can we find empty strings in the tests? -> no
    • an example with a string of length 1 shoul dbe given in the description too
    • especially, it should be told that the default gender is "masculine" for the single letter "s"
  • Custom User Avatar

    Ruby, python (probably JS, too):

    These requirements are not tested strictly/at all:

    1 . Check that the string returned is not equal to the string passed

    So "TEST" should always return "TSET" (and never "TEST")

    5 . Checks the function returns undefined for non-strings

    That would be None/nil in Python/Ruby?

    7 . Checks that letters are randomly assigned.

    That would require a repetitive test with the same string, making sure that you don't always get the same thing. E.g. "xABCz" should return all possible combinations after a few tries: "xACBz", "xCABz", "xCBAz"

  • Default User Avatar

    Javascript version of Kata needs random test cases

  • Custom User Avatar

    Please don't use reserved words as argument names: "string" is a name of a Python module, so please use "s" or something like that instead in Python.

  • Custom User Avatar

    I think there is a nice kata in here somewhere but you need to work out what you want this kata to be about. Either it's about shuffling a set of letters, or replacing the middle characters of words.

    Then, you either need to add in a lot more tests for testing the 'shuffledness' of the returned words, or provide a function that the user can use to shuffle the letters, which you can then stub out when testing.

    Either way you need more tests.

  • Custom User Avatar

    Some examples with more than one argument would be great. Both description and example tests have only one argument.
    And mention what to do when the letters are uppercase. Or mention that words will always be lowercase.

    Adding more tests, preferably randomized, would be nice too.

    Also, you can equate arrays with Test.assertSimilar instead of using Test.assertEquals on every element.
    For other tips on making a better Test Suite, see Tests Best Practices