Ad
  • Custom User Avatar

    Hey hobovsky ! Many thanks for your advice !! You were perectly right ! Hi hadn't noticed the #\R ! Now it works perfectly !

  • Custom User Avatar

    Hi all ! Many thanks for your help and for your fast answers !! I'm gonna review my code...

  • Custom User Avatar

    So it seems the problem was actaully a user error, bcause OP used 'R instead of #\R for direction.

    Failure messages in the Rove framework are another story. The framework is not easy to force it to cooperate, and while messages can be somewhat improved, they still won't be great, and most probably would not help in the OP's case.

  • Custom User Avatar

    I tried to solve the kata in CommonLisp and I think I run into similar issue. I will see what I can do, but I might be too much of a LISP noob to figure this out :D

  • Custom User Avatar

    Hey. I know/remember almost nothing about CommonLisp, but I checked your current solution and the way you're checking for equality seems wrong. Take a look at sample tests to see what form "dir" argument is of.

    As for assertion messages, they indeed look weird, but the tests seem to pass the right values, so maybe it's just an issue of displaying incomplete/wrong error messages in assertions.

  • Custom User Avatar

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

  • Custom User Avatar

    ok ! thanks Suic !
    So the problem is in my code :-)

  • Custom User Avatar

    It fails, as the input is not the string "quijote" but a piece of text from that novel. Not a kata issue.

  • Custom User Avatar

    Hi !

    Is it me or there something wrong with this kata in Rust :
    when I attempt to post my solution, the second test fails, saying

    "
    tests::test_quijote
    assertion failed: (left == right)
    left: [('e', 12), ('n', 9), (' ', 25), ('u', 7), ('l', 7), ('g', 2), ('a', 12), ('r', 6), ('d', 6), ('m', 5), ('c', 4), ('h', 4), (',', 2), ('y', 1), ('o', 11), ('b', 1), ('q', 2), ('i', 5), ('t', 2), ('p', 1), ('v', 2), ('í', 2), ('s', 2), ('z', 1)],
    right: [('e', 12), ('n', 9), (' ', 25), ('u', 7), ('l', 7), ('g', 2), ('a', 12), ('r', 6), ('d', 6), ('m', 5), ('c', 4), ('h', 4), (',', 2), ('y', 1), ('o', 11), ('b', 1), ('q', 2), ('i', 5), ('t', 2), ('p', 1), ('v', 2), ('í', 1), ('s', 2), ('z', 1)]
    "

    So it seems to mean that it tests with the "quijote" string, but the expected output has nothing to do with "quijote" ....