["hello", "Hello"]
должен возвращать true, потому что все буквы во второй строке присутствуют в первом, игнорирующем случае. Аргументы ["hello", "hey"]
должны возвращать false, потому что строка "hello" не содержит "y". Наконец, ["Alien", "line"]
должен возвращать true, потому что все буквы в «строке» присутствуют в «Alien». Не забудьте использовать Read-Search-Ask, если вы застряли. Напишите свой собственный код.
mutation(["hello", "hey"])
should return false.
testString: assert(mutation(["hello", "hey"]) === false);
- text: mutation(["hello", "Hello"])
should return true.
testString: assert(mutation(["hello", "Hello"]) === true);
- text: mutation(["zyxwvutsrqponmlkjihgfedcba", "qrstu"])
should return true.
testString: assert(mutation(["zyxwvutsrqponmlkjihgfedcba", "qrstu"]) === true);
- text: mutation(["Mary", "Army"])
should return true.
testString: assert(mutation(["Mary", "Army"]) === true);
- text: mutation(["Mary", "Aarmy"])
should return true.
testString: assert(mutation(["Mary", "Aarmy"]) === true);
- text: mutation(["Alien", "line"])
should return true.
testString: assert(mutation(["Alien", "line"]) === true);
- text: mutation(["floor", "for"])
should return true.
testString: assert(mutation(["floor", "for"]) === true);
- text: mutation(["hello", "neo"])
should return false.
testString: assert(mutation(["hello", "neo"]) === false);
- text: mutation(["voodoo", "no"])
should return false.
testString: assert(mutation(["voodoo", "no"]) === false);
```