Cody

# Problem 1721. Backslang, odds are you used it at some point in time...

Solution 2748367

Submitted on 28 Jul 2020
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?'

Brace indexing is not supported for variables of this type. Error in backslang (line 5) temp=cell_str{i}(1); Error in Test1 (line 3) assert(isequal(backslang(str),output))

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?'

Brace indexing is not supported for variables of this type. Error in backslang (line 5) temp=cell_str{i}(1); Error in Test2 (line 3) assert(isequal(backslang(str),output))

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.'

Brace indexing is not supported for variables of this type. Error in backslang (line 5) temp=cell_str{i}(1); Error in Test3 (line 3) assert(isequal(backslang(str),output))

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!'

Brace indexing is not supported for variables of this type. Error in backslang (line 5) temp=cell_str{i}(1); Error in Test4 (line 3) assert(isequal(backslang(str),output))