Cody

Solution 1909575

Submitted on 22 Aug 2019 at 19:39
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))

ind = 14 17 25 31 ind = 14 17 25 5 outStr = 'nqye'

Assertion failed.

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

ind = 7 8 10 11 13 14 16 19 20 22 23 25 26 28 29 ind = 7 8 10 11 13 14 16 19 20 22 23 25 26 2 3 outStr = 'ghjkmnpstvwyzbc'

Assertion failed.

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

ind = 23 25 26 27 28 29 30 31 34 35 36 37 40 41 42 45 ind = 23 25 26 1 2 3 4 5 8 9 10 11 14 15 16 19 outStr = 'wyzabcdehijknops'

Assertion failed.