Cody

Solution 1935798

Submitted on 14 Sep 2019
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Fail
str = 'The sky is falling, the sky is falling, or is it?' output = 'Hetay kysay siay allingfay, hetay kysay siay allingfay, roay siay tiay?' assert(isequal(backslang(str),output))

str = 'The sky is falling, the sky is falling, or is it?' output = 'Hetay kysay siay allingfay, hetay kysay siay allingfay, roay siay tiay?' L = 1×11 cell array {'The'} {'sky'} {'is'} {'falling'} {'the'} {'sky'} {'is'} {'falling'} {'or'} {'is'} {'it'} tt = 'The\s' tt = 'sky\s' tt = 'is\s' tt = 'falling\s' tt = 'the\s' tt = 'sky\s' tt = 'is\s' tt = 'falling\s' tt = 'or\s' tt = 'is\s' tt = 'it\s' C1 = 1×1 cell array {'heT'} output = 'Hetaykysaysiayfalling, hetaykysaysiayfalling, roaysiayit?'

Assertion failed.

2   Fail
str = 'If Allen is Janes husband and Tom is Jill husband, who is Roys wife?' output = 'Fiay Llenaay siay Anesjay usbandhay ndaay Omtay siay Illjay usbandhay, howay siay Oysray ifeway?' assert(isequal(backslang(str),output))

str = 'If Allen is Janes husband and Tom is Jill husband, who is Roys wife?' output = 'Fiay Llenaay siay Anesjay usbandhay ndaay Omtay siay Illjay usbandhay, howay siay Oysray ifeway?' L = 1×14 cell array {'If'} {'Allen'} {'is'} {'Janes'} {'husband'} {'and'} {'Tom'} {'is'} {'Jill'} {'husband'} {'who'} {'is'} {'Roys'} {'wife'} tt = 'If\s' tt = 'Allen\s' tt = 'is\s' tt = 'Janes\s' tt = 'husband\s' tt = 'and\s' tt = 'Tom\s' tt = 'is\s' tt = 'Jill\s' tt = 'husband\s' tt = 'who\s' tt = 'is\s' tt = 'Roys\s' tt = 'wife\s' C1 = 1×2 cell array {'fIayllenAaysiayanesJayusbandhayndaayomTaysiayillJ'} {'howaysiayoysR'} output = 'Fiayllenaaysiayanesjayusbandhayndaayomtaysiayilljayhusband, Howaysiayoysraywife?'

Assertion failed.

3   Fail
str = 'This is the sentence I will use.' output = 'Histay siay hetay entencesay Iay illway seuay.' assert(isequal(backslang(str),output))

str = 'This is the sentence I will use.' output = 'Histay siay hetay entencesay Iay illway seuay.' L = 1×7 cell array {'This'} {'is'} {'the'} {'sentence'} {'I'} {'will'} {'use'} tt = 'This\s' tt = 'is\s' tt = 'the\s' tt = 'sentence\s' tt = 'I\s' tt = 'will\s' tt = 'use\s' C1 = 1×1 cell array {'hisTaysiayhetayentencesayI'} output = 'Histaysiayhetayentencesayiayillwayuse.'

Assertion failed.

4   Fail
str = 'Christopher Columbus sailed the ocean blue!' output = 'Hristophercay Olumbuscay ailedsay hetay ceanoay luebay!' assert(isequal(backslang(str),output))

str = 'Christopher Columbus sailed the ocean blue!' output = 'Hristophercay Olumbuscay ailedsay hetay ceanoay luebay!' L = 1×6 cell array {'Christopher'} {'Columbus'} {'sailed'} {'the'} {'ocean'} {'blue'} tt = 'Christopher\s' tt = 'Columbus\s' tt = 'sailed\s' tt = 'the\s' tt = 'ocean\s' tt = 'blue\s' C1 = 1×1 cell array {'hristopherCayolumbusC'} output = 'Hristophercayolumbuscayailedsayhetayceanoayblue!'

Assertion failed.