["hello", "Hello"]
، true لأن كافة الأحرف الموجودة في السلسلة الثانية موجودة في الحالة الأولى ، مع تجاهل الحالة. يجب أن ترجع الوسيطة ["hello", "hey"]
false لأن السلسلة "hello" لا تحتوي على "y". وأخيرًا ، يجب أن تعود ["Alien", "line"]
، إلى true لأن جميع الأحرف في "line" موجودة في "Alien". تذكر استخدام Read-Search-Ask إذا واجهتك مشكلة. اكتب الكود الخاص بك. mutation(["hello", "hey"])
false.'
testString: 'assert(mutation(["hello", "hey"]) === false, "mutation(["hello", "hey"])
should return false.");'
- text: 'يجب أن تعود mutation(["hello", "Hello"])
true.'
testString: 'assert(mutation(["hello", "Hello"]) === true, "mutation(["hello", "Hello"])
should return true.");'
- text: 'يجب أن ترجع mutation(["zyxwvutsrqponmlkjihgfedcba", "qrstu"])
صحيح.'
testString: 'assert(mutation(["zyxwvutsrqponmlkjihgfedcba", "qrstu"]) === true, "mutation(["zyxwvutsrqponmlkjihgfedcba", "qrstu"])
should return true.");'
- text: 'يجب أن تعود mutation(["Mary", "Army"])
الحقيقة.'
testString: 'assert(mutation(["Mary", "Army"]) === true, "mutation(["Mary", "Army"])
should return true.");'
- text: 'يجب أن تعود mutation(["Mary", "Aarmy"])
true.'
testString: 'assert(mutation(["Mary", "Aarmy"]) === true, "mutation(["Mary", "Aarmy"])
should return true.");'
- text: 'يجب أن تعود mutation(["Alien", "line"])
true.'
testString: 'assert(mutation(["Alien", "line"]) === true, "mutation(["Alien", "line"])
should return true.");'
- text: 'يجب أن تعود mutation(["floor", "for"])
true.'
testString: 'assert(mutation(["floor", "for"]) === true, "mutation(["floor", "for"])
should return true.");'
- text: 'يجب أن تعود mutation(["hello", "neo"])
false.'
testString: 'assert(mutation(["hello", "neo"]) === false, "mutation(["hello", "neo"])
should return false.");'
- text: 'يجب أن تعود mutation(["voodoo", "no"])
كاذبة.'
testString: 'assert(mutation(["voodoo", "no"]) === false, "mutation(["voodoo", "no"])
should return false.");'
```