Ad
  • Default User Avatar

    hi! what is the reason of adding spaces in random tests for decoder and where am I going wrong?
    for example:

    (_ for whitespace here)

    data for decoding (0N1N2N2W0W5W6W6A0A9A10_0_12_12W7I0I16I17I17E0E20E20V0V23P0P25P26) =>
    my answer
    (NNNNNNNNWWWWWWWWWAAAAAA___WWWWIIIIIIIIIEEEEEVVVPPPPPP) =>
    message about wrong answer: "Expected: equal to "NNNNNNNNWWWWWWWWWAAAAAA ....(the end of expected answer is not displayed).....".

    and one more example(_ for whitespace here):

    data for decoding (0_1_2_3E0E5E6Z0Z8Z9Z8K0K12K12) =>

    my answer (____EEEEEEZZZZZZZZKKKKK) =>

    message about wrong answer: "Expected: equal to " ....(the end of expected answer is not displayed).....".

  • Custom User Avatar

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

  • Custom User Avatar

    Ruby 3.0 should be enabled, see this to learn how to do it

    Please organize the structure of test fixture as following (although it has been mentioned in the attached link, I'm repeated here again)

    describe "<This message should describe the categories of test groups inside this block>" do
      it "<A short message describing this test group>" do
        expect(...).to eq(...) #Assertions
        #Or Test.assert_equals(user_response, reference_response)
      end
    end
    
  • Custom User Avatar

    I tested my code on VS Code and it has correct results but it does not work here in Codewars. May I know why?

  • Default User Avatar

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

  • Default User Avatar

    Hi,

    It's seen, seen again, more and more... Put at least some interest at it so that we would have to manage actually the WORDS, meaning, without the punctation.

    I bet on an issue raised for duplicate soon enough...