Cody

Solution 1935770

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   Pass
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?' ans = 1 ans = [] ans = [] ans = [] ans = [] ans = [] ans = [] ans = [] ans = [] ans = [] ans = [] ans = [] ans = [] ans = [] ans = 1 ans = [] ans = [] ans = [] ans = 1 ans = [] ans = [] ans = [] ans = [] ans = [] ans = 1 ans = [] ans = [] ans = [] ans = 1 ans = [] ans = [] ans = 1 ans = [] ans = [] ans = [] ans = [] ans = [] ans = [] ans = [] ans = [] ans = [] ans = [] ans = [] ans = 1 ans = [] ans = [] ans = [] ans = [] ans = [] ans = [] ans = [] ans = [] ans = 1 ans = [] ans = [] ans = [] ans = 1 ans = [] ans = [] ans = [] ans = 1 ans = [] ans = [] ans = [] ans = [] ans = [] ans = [] ans = [] ans = [] ans = [] ans = 1 ans = [] ans = [] ans = [] ans = [] ans = [] ans = [] C1 = 1×1 cell array {'heT'} output = 'Hetay kysay siay allingfay, hetay kysay siay allingfay, roay siay tiay?'

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?' ans = [] ans = 1 ans = [] ans = [] ans = [] ans = [] ans = [] ans = [] ans = [] ans = [] ans = [] ans = [] ans = [] ans = [] ans = 1 ans = [] ans = [] ans = [] ans = [] ans = [] ans = [] ans = [] ans = [] ans = [] ans = [] ans = [] ans = [] ans = [] ans = [] ans = [] ans = [] ans = 1 ans = [] ans = [] ans = [] ans = [] ans = [] ans = [] ans = [] ans = [] ans = [] ans = [] ans = [] ans = [] ans = [] ans = [] ans = [] ans = [] ans = [] ans = [] ans = 1 ans = [] ans = [] ans = [] ans = [] ans = [] ans = [] ans = [] ans = [] ans = [] ans = [] ans = [] ans = [] ans = [] ans = [] ans = [] ans = [] ans = [] ans = 1 ans = [] ans = [] ans = [] ans = [] ans = [] ans = [] ans = [] ans = 1 ans = [] ans = [] ans = [] ans = [] ans = [] ans = [] ans = [] ans = [] ans = [] ans = [] ans = [] ans = 5 ans = 1 ans = [] ans = [] ans = [] ans = 5 ans = [] ans = [] ans = [] ans = [] ans = [] ans = [] ans = [] ans = [] ans = 1 ans = [] ans = [] ans = [] ans = [] ans = 1 ans = [] ans = [] ans = [] ans = [] ans = [] ans = [] ans = 1 ans = [] ans = [] ans = [] ans = [] ans = 1 ans = [] ans = [] ans = [] ans = 1 ans = [] ans = [] ans = [] ans = [] ans = [] ans = [] ans = [] ans = [] ans = [] ans = [] ans = [] ans = [] ans = 1 ans = [] ans = [] ans = [] ans = [] ans = [] ans = [] ans = [] ans = [] ans = [] ans = [] ans = [] ans = [] ans = [] ans = [] ans = [] ans = [] ans = 1 C1 = 1×6 cell array {'fI'} {'llenA'} {'anesJ'} {'omT'} {'illJ'} {'oysR'} output = 'Fiay Llenaay siay Anesjay husbndaay ndaay Omtay siay Illjay husbndaay, howay siay Oysray ifeway?'

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.' ans = [] ans = [] ans = [] ans = [] ans = 1 ans = [] ans = [] ans = 1 ans = [] ans = [] ans = [] ans = [] ans = [] ans = [] ans = 3 ans = 1 ans = [] ans = [] ans = [] ans = [] ans = [] ans = [] ans = [] ans = [] ans = 1 ans = [] ans = [] ans = [] ans = [] ans = [] ans = 1 ans = [] ans = [] ans = [] ans = [] ans = [] ans = [] ans = [] ans = [] ans = [] ans = [] ans = 1 ans = [] ans = [] ans = [] ans = [] ans = [] ans = 1 ans = [] C1 = 1×2 cell array {'hsiayT'} {'I'} output = 'Hsiaytay siay hetay entencesay Iay illway seuay.'

Assertion failed.

4   Pass
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!' ans = 1 ans = [] ans = [] ans = [] ans = [] ans = [] ans = [] ans = 1 ans = [] ans = [] ans = [] ans = [] ans = [] ans = [] ans = [] ans = [] ans = [] ans = 1 ans = [] ans = [] ans = [] ans = [] ans = 1 ans = [] ans = [] ans = [] ans = 1 ans = [] ans = [] ans = [] ans = [] ans = [] ans = [] ans = 1 ans = [] ans = [] C1 = 1×2 cell array {'hristopherC'} {'olumbusC'} output = 'Hristophercay Olumbuscay ailedsay hetay ceanoay luebay!'