Cody

Solution 1495046

Submitted on 17 Apr 2018 by Gareth Lee
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
delim_str = 'apple pear'; str1 = 'apple'; assert(isequal(your_fcn_name(delim_str),str1))

ans = 1×2 cell array {'apple'} {'pear'}

2   Pass
delim_str = 'apple pear pineapple'; str1 = 'apple'; assert(isequal(your_fcn_name(delim_str),str1))

ans = 1×3 cell array {'apple'} {'pear'} {'pineapple'}

3   Pass
delim_str = 'one'; str1 = 'one'; assert(isequal(your_fcn_name(delim_str),str1))

ans = 1×1 cell array {'one'}

4   Pass
delim_str = 'one two three'; str1 = 'one'; assert(isequal(your_fcn_name(delim_str),str1))

ans = 1×3 cell array {'one'} {'two'} {'three'}

5   Pass
delim_str = '123 456'; str1 = '123'; assert(isequal(your_fcn_name(delim_str),str1))

ans = 1×2 cell array {'123'} {'456'}

6   Pass
delim_str = '123456'; str1 = '123456'; assert(isequal(your_fcn_name(delim_str),str1))

ans = 1×1 cell array {'123456'}