Ad
  • Custom User Avatar
  • Custom User Avatar

    .

  • Custom User Avatar

    Random tests in all languages.

  • Custom User Avatar

    Language?

  • Custom User Avatar

    Description seems to be already fixed

  • Custom User Avatar

    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.

  • Custom User Avatar

    I believe I've fixed this issue, if you could please check and then mark this issue as resolved, thanks! :)

  • Custom User Avatar

    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); }); });

  • Custom User Avatar

    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 :)

  • Custom User Avatar

    I've made some modifications to this kata and added random tests, if you could mark this issue as resolved :)