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.
Those tests are all similar to the sample test:
Test.assertEquals(validate("MASH", "M*A*S*H"), true)
They are a valid username and password, even though they both contain "MASH", because the password has "*" inserted every other letter. (ie 'letters in between').
It looks like you passed all the sample tests, but failed some of the hidden tests.
I updated the hidden tests recently, so it's definitely possible I broke something. If you post your solution, I will investigate further.
Thank you!
Ahh, thankyou. I think I fixed it now.
(Also, sorry about taking two years to respond. I forgot XD)
Thanks, should be fixed now.
Should be fixed now.
I made a go translation for this kata, awaiting approval.
Hello, I made a go translation for this kata.
Thanks for the feedback!
Were there any values that stood out as less predictable? Should I state the expected values for those cases, or tweak the expectations at all?
Would putting the passing and failing random tests into one bucket help avoid the possiblity of hardcoding answers? I thought I'd avoided that just by making them random. If you have time to explain further, I'd be interested in your reasoning.
Thanks :P
Yes, because a noun on its own is not a Noun Phrase. It needs to be a noun AND and an artical to be replaced by a pronoun.
Does that help? Or are there sometimes fewer pronouns than Noun Phrases?
This seems much easier than other 4th kyu katas, although maybe I just got lucky and my first attempt was the right approach.
Good kata, it helped me learn about bitwise operations. Maybe could use some more random tests though? My code passed all tests, then I removed a comment, and I failed some random tests. I think I still have some bug, but by trying a few times I was able to get lucky and pass.
I'm not sure I understand. By "a paragraph that does not use capital letters" I meant a paragraph that is entirely lower case. So, the tests do not cover weird casing because that is not part of the task.
Added, thanks.
Loading more items...