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.
Forked the Haskell translation to fix the following issues:
" \t\r\n\f\v"
) instead of just' '
Fork
I'm trying to solve kata in Haskell. According to output from random tests my code fail on strings like "\na", "a\n", "a\t". if i understood everything correctly, this strings should be returned as is or i'm wrong? Tests do not show expected results. I tested code on local mashine and it works fine on those input.
I propose add test cases with 3 spaces, and 4, 5 spaces between words. Almost all solutions do not save 3 spaces between words.
This comment is hidden because it contains spoiler information about the solution
The test cases are wrong. It shows an expected output with numbers that aren't in the original matrix, besides i had to click on the attempt button several times without changing the code until it finally marked my solution as correct.
Whats happening? What did i do wrong?
Expected: "elbuod decaps sdrow", instead got: "elbuod decaps sdrow"
Expected: "ehT kciuq nworb xof spmuj revo eht yzal .god", instead got: "ehT kciuq nworb xof spmuj revo eht yzal .god"
expected:<[ ]> but was:<[]> i am unable to get this test case help!
Languages are inconsistent w.r.t. handling of adjacent, leading, and trailing spaces. Some languages test for those, some do not, and some generate such inputs by pure accident.
Languages should be unified and either all of them should have corresponding tests (also random), or such inputs should not be generated. If tests would contain extensive test cases for spaces, they most probably should take care to include inputs with double (or more) leading spaces, and double (or more) trailing spaces.
Language: C++
Test suit missing the required header
std::string
Gday,
Struggling to handle the string with double spacing, i have tried using find() function with if statements but to no avail.
Can anyone give me a hint of what direction i need to take? all other strings have passed, its just this double spacing thats messing me up!
Cheers!
Edit: I seem to have found a solution! the .split() needed an argument that i will avoid mentioning here, but if anyone could explain why this works it would be greatly appreciated! i kind of stumbled upon it and dont really understand why it solved the problem...
Lua translation!
D translation
NO random tests
Missing fixed tests for
Y
,Draw
&&In progress
This one should be reranked or sent back to beta (so don't resolve this until it's done)
No random tests in CS & JS
No sample tests in CS & JS
Test.expect
should be replacedJS Node 18. (
mocha + chai
) should be enabledThis comment is hidden because it contains spoiler information about the solution
Loading more items...