Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
There it is. "Random triplets test generator". Still beta.
Not so easy.
I've found a hack- The Haskell version contains all text. Have fun :)
I am also experiencing this, and would like some resolution before I get to this problem. Is there a fix coming?
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?
Thanks Balkoth, my mistake!
Guess I should report this problem even though it really doesn't affect anything else.
On the kata page, I selected the following options:
The problem is the list of kata I get from that includes a few dozen kata that I have already completed.
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.
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']);
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 aReset test cases
button ?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
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?
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?
Fixed the test message to match the input given. Thanks for catching that error!
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")
You can show the visual tree of your example, it's a 'nice to have'
Loading more items...