Ad
  • Custom User Avatar

    In the PHP version the last test (visible) test case has an error:

     $a1 = ["live", "strong", "arp"];
     $this->revTest(inArray($a1, $a2), ["arp", "live", "strong"]);
    

    As you can see it expects the array keys in a different order than they were given, which is different from what the first two test cases suggest.

  • Custom User Avatar

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

  • Custom User Avatar

    I think it would be a good idea to add two more test-cases to the default ones. Namely the Cheshire cat and the one where 'shire' is surrounded by non-alphabetical characters.