Ad
  • Custom User Avatar

    There it is. "Random triplets test generator". Still beta.
    Not so easy.

  • Custom User Avatar

    I've found a hack- The Haskell version contains all text. Have fun :)

  • Custom User Avatar

    I am also experiencing this, and would like some resolution before I get to this problem. Is there a fix coming?

  • Custom User Avatar

    Did you see all the kata deatils? I've described an issue that I'm having with this kata just below your comment. Are you also experiencing this?

  • Custom User Avatar

    Thanks Balkoth, my mistake!

  • Custom User Avatar

    Guess I should report this problem even though it really doesn't affect anything else.

    On the kata page, I selected the following options:

    • Sort by: Latest
    • Language: My Languages
    • Status: Approved
    • Progress: Kata I have not completed

    The problem is the list of kata I get from that includes a few dozen kata that I have already completed.

  • Custom User Avatar

    Well, technically, ["Bob"] and ["Bob"] are two different objects, so they're not equal.

    To compare arrays or objects, you should use Test.assertSimilar instead of Test.assertEquals.

  • Custom User Avatar

    The testing framework seems to be buggy - go to Kata http://www.codewars.com/kata/5356ad2cbb858025d800111d/train/javascript

    With my solution, I get the following error:

    Expected: ["Bob"], instead got: ["Bob"]

    ...obviously, these are the same, so it should have passed! Below is my solution and test data (spoiler alert):

    Solution:

    function capMe(names) {
    var capitalised = [], newName;
    for (var i = 0; i<names.length; i++) {
    newName = names[i].toLowerCase();
    newName = newName.charAt(0).toUpperCase() + newName.slice(1);
    capitalised.push(newName);
    }
    return capitalised;
    }

    TEST CASES:

    var test = ['bob'];
    Test.assertEquals(capMe(test), ['Bob']);
    test = ['bob', 'james', 'CHRIS'];
    Test.assertEquals(capMe(test), ['Bob', 'James', 'Chris']);

  • Custom User Avatar

    When solving a kata, there is no way to reset the test cases.

    The Reset button will only replace the solution block but will leave the test cases intact. Please update its behaviour, or maybe add a Reset test cases button ?

  • Custom User Avatar

    There's something wrong with this kata:
    http://www.codewars.com/kata/5265b0885fda8eac5900093b/discuss#54e629ee7f087c14c5000a90

    I can't see some of the code examples. Look for the phrase "the following representations:" - should there be an example right after that line? The html source shows several

     tags with style="display:none".
    

    Am I the only one experiencing this?

  • Custom User Avatar

    Is there something wrong with the kata details? I can't see some of the code examples.
    Look for the phrase "the following representations:" shouldn't there be something there?

    Am I the only one experiencing this?

  • Custom User Avatar

    def midpoint_sum(ints):
    if len(ints) <= 2:
    return None
    for i in range(len(ints)):
    left = sum(range(ints[i-1]))
    right = sum(range(ints[i+1,len(ints)]))
    if sum(left)==sum(right):
    return i
    return None

    Hey peeps.
    I am getting an error because it is encountering tuples, any clue why?

  • Custom User Avatar

    Fixed the test message to match the input given. Thanks for catching that error!

  • Custom User Avatar

    You have a small mistake in the test cases:
    Test.expect(midpointSum([-10,3,7,8,-6,-13,21]) == 4, "[8,-6,-13,21] should equal 4")

    should be
    Test.expect(midpointSum([-10,3,7,8,-6,-13,21]) == 4, "[-10,3,7,8,-6,-13,21] should equal 4")

  • Custom User Avatar

    You can show the visual tree of your example, it's a 'nice to have'

  • Loading more items...