Ad
  • Custom User Avatar

    python:

    • no random tests
    • missing important assertion messages
    • missing new test framework
  • Default User Avatar
  • Default User Avatar

    JS: No random tests

  • Custom User Avatar
  • Custom User Avatar

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

  • Custom User Avatar

    no non-char test code?so i don't what your non-char characters,and the rule
    what a waste of time......

  • Custom User Avatar

    Something fishy is going on with the test cases on submit:

    finalSearchTestRareCases(WildsTest)
    expected:<0> but was:<-1>
    nonCharTest(WildsTest)
    expected:<0> but was:<-1>
    

    So I made a single change in my code, I now return 0 on non-match to see what it reports:

    finalSearchTestRareCases(WildsTest)
    expected:<-1> but was:<0>
    nonCharTest(WildsTest)
    expected:<11> but was:<0>
    

    What is going on here?!
    Are the test strings pseudo randomly generated with the hash of my code as the seed?

  • Default User Avatar

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

  • Custom User Avatar

    i have completed unit tests successfully but if i submit them to server i get unknown error.
    does that mean i get infinite loop or something? thanks

    edit: i am using java

    edit: i have solved the issue. it is because i have code that looked like this

    if (blahblah // some comment
        || blehbleh ) { // another comment
        some_statements();
    }
    

    i fixed it by having if construct terminate properly before commenting.

  • Custom User Avatar

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

  • Default User Avatar

    I would either expand on the description describing specifically what needs to be accomplished or perhaps add the stubbed out construstor and secret number field. With out this information the kata starts off more as a guess and check to figure out what needs to be accomplished rather than trying to actually solve the problem.

  • Custom User Avatar

    This is too vague:

    1. It's hard to tell what you want (at first I thought you wanted a game solver). The usage of "you" throughout the description is the main culprit, it's ambiguous whether "you" means the person writing the solution, or the person playing the game.
    2. There's too little feeback when something goes wrong.
    3. The phrase "between 1 and 10" is too ambiguous. You need to specify whether this is inclusive (1, 2, 3, ..., 10]) or exclusive ([2, 3, ..., 9]). Technically, between 1 and 10 means "only 2 through 9, inclusive."
    4. Some example test cases would go a long way to helping here.
  • Default User Avatar

    Nice kata and tests. Thanks for contributing, hansrusten!

    There are a number of grammatical issues though that should be fixed:

    1. "weight" is misspelled as "weigth" everywhere it is used.
    2. "capasity" should be spelled "capacity" in the kata solution and tests.
    3. The phrase "If its free space" could be more naturally said as "If there's free space". This pattern happens several times in the kata description.
    4. kiloGram should be kilogram according to standard camel casing rules, since "kilogram" is a single word.
    5. "allready" should be spelled "already".

    Besides the grammar, I think the kata could be improved by explaning exactly what the liftees, kilogram, capacity, and maxKg variables mean. For instance, the description could say something like, liftees is the number of passengers in the intelevator. Although it's possible to figure out each variable's meaning, it's currently unclear because the word "capacity" can also be used to describe a container's maximum weight.