Ad
  • Custom User Avatar

    Forked the Haskell translation to fix the following issues:

    • Random test cases did not show expected result
    • Reference solution now accounts for all space characters (" \t\r\n\f\v") instead of just ' '

    Fork

  • Default User Avatar

    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.

  • Default User Avatar

    I propose add test cases with 3 spaces, and 4, 5 spaces between words. Almost all solutions do not save 3 spaces between words.

  • Custom User Avatar

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

  • Custom User Avatar

    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.

  • Default User Avatar

    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"

  • Default User Avatar

    expected:<[ ]> but was:<[]> i am unable to get this test case help!

  • Custom User Avatar

    All spaces in the string should be retained.

    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.

  • Custom User Avatar

    Language: C++
    Test suit missing the required headerstd::string

  • Default User Avatar

    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...

  • Custom User Avatar
  • Custom User Avatar
  • Custom User Avatar
    • 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)

  • Custom User Avatar
    • No random tests in CS & JS

    • No sample tests in CS & JS

    • Test.expect should be replaced

    • JS Node 18. (mocha + chai) should be enabled

  • Custom User Avatar

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

  • Loading more items...