Cody

Solution 2023479

Submitted on 15 Nov 2019 at 18:09
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
inStr = 'doug'; shift = 10; outStr = 'nyeq'; assert(isequal(cypher(inStr, shift),outStr))

num = 100 111 117 103 outStr = 'nyq'

Assertion failed.

2   Fail
inStr = 'thequickbrownfox'; shift = 5; outStr = 'ymjvznhpgwtbsktc'; assert(isequal(cypher(inStr, shift),outStr))

num = 116 104 101 113 117 105 99 107 98 114 111 119 110 102 111 120 outStr = 'ymjvznhpgwt|skt}'

Assertion failed.

3   Fail
inStr = 'thecrowfliesatmidnight'; shift = 22; outStr = 'pdaynksbheaowpiezjecdp'; assert(isequal(cypher(inStr, shift),outStr))

num = 116 104 101 99 114 111 119 102 108 105 101 115 97 116 109 105 100 110 105 103 104 116 outStr = 'Š~{yˆ…|‚{‰wŠƒz„}~Š'

Assertion failed.