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.
.
.
Random tests in all languages.
Language?
Description seems to be already fixed
The description is clearer now, and I added the edge case where
n==m
to the description, examples, and tests for both languages.It looks like someone already edited the Javascript tests to use
assertEquals
. CoffeeScript's==
operator compares for strict equality (equivalent to===
in Javascript) so I think it's okay left as it is; someone else can edit the CoffeeScript tests if they think it's still an issue.I believe I've fixed this issue, if you could please check and then mark this issue as resolved, thanks! :)
Try this out, new example test cases here:
Test.describe("Fixed Tests (new)", _ => { Test.it("Tests", __ => { Test.assertEquals(wordSearch("desert",myText),true); Test.assertEquals(wordSearch("blue",myText),false); Test.assertEquals(wordSearch("well",myText),true); Test.assertEquals(wordSearch("house",myText),false); Test.assertEquals(wordSearch("beautiful",myText),true); Test.assertEquals(wordSearch("prince",myText),true); Test.assertEquals(wordSearch("le prince",myText),false); }); });
I didn't want to diverge too far from the kata's creaters idea which is why I didn't move the text to become a parameter and randomly generate the test in turn also resulting in all solutions to become invalid because they use the global variable text.. but I'll try fix something up while not invalidating the old solutions :)
I've made some modifications to this kata and added random tests, if you could mark this issue as resolved :)