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.
Good kata, but the tests are sometimes confusing and it's not clear what the problem is.
There is no precision for the output of 2 digits implemented
I dont understand a bit what should I return. Bolean or string? I return boolean, it asks for string.
This problem still exists, at least for Javascript. Sometimes the random tests catch it and sometimes not.
Even when my code failed on the following, it still passed the full test suite.
Test.expect(!oneCharDifference('abcd', 'dcbe'), 'abcd and dcba differ by more than one letter')
This comment is hidden because it contains spoiler information about the solution
approved
Hello,
I am aware of the concept of the challenge and that the desired output for the challenge is a Boolean
I am also aware that there is the capacity to output a pre-determinated message if a test fails
but
What I am finding is that no matter what I ask the function to return I don't see what I am asking it to return
I am therefore kindly asking yourself to review the programming behind this challenge
Sample tests are designed to print a determinated message for each failed test, explaining why the expected answer is true or false. If your code returns the good answer, fine. If you return a bad answer, you receive a message. Is it incorrect?
Hello,
I am finding that it does not matter what data format I am trying to return - whether it be Boolean, String etc - the same outcome is occurring
On that basis, I am respectfully compelled to the conclusion that the tests are not programmed correctly
You must return a boolean (true/false). The log tells you 'grant and gant vary by one letter', which means, considering the task you are asked to do, the expected answer is true, and your function didn´t return it. Maybe tests could be better designed, but what you are testing with returning a string doesn't make much sense either. Additionally, you don't provide anything that would tend to prove tests are not working.
Can the author of this Kata please review the programming behind the tests on this challenge
I am finding that even if I ask the function to return a random piece of text - like return "Hello!" - I don't see the usual 'actual "Hello!" expected ...' but instaead I simply get a comment message saying something like 'grant and gant vary by one letter'
On that basis, I am doubtful that the test cases are working properly, as I cannot seem to return anything - regardless of whether or not it is the right answer
Here's the test that I suggest to add (Haskell) which I believe is correct. My solution fails it but still passes current full test suite.
Could you give an example? I guess you don't check letters positions, but you check they are in equal numbers... I can hardly imagine a solution that would check only set of letters and would pass all tests...
COBOL translation.
@FArekkusu he's not asking of what the specs is, he's asking why the specs is that way.
Loading more items...