kinda of a janky kata tbh
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)
Ruby translation kumited -- please check and approve (note: author is inactive)
Yes, it's kind of thing like You came up with an idea, found the shortest solution and you add all the restrictions there must be to force people write the same code as you wrote.
That's how russian education system works. People don't think the same way...
Already reported in the post below.
error messages are swaped expected -> actual
'approved some time ago'
Thanks for this cool kata!
It was really fun to solve, also fun to see how others have solved it!
did you read one of the last things in the instructions? ----> that you should return 0 if there is no such n.? that is one difference here. other than that, there is only the character limit...
0 if there is no such n.
I've got a "sometimes passes" solution. Coverage should be improved to invalidate it.
Hi! Are you sure that all test cases are valid? Cause my solutions works well with original kata, and have problems with you. Can you check it?
Thank you, I was scratching my head if my code is wrong or what.