Cody

Solution 608701

Submitted on 30 Mar 2015 by Brian Moore
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
%% x = {'hello', 'basic', 'test', 'case'}; y_correct = 'hello basic test case'; assert(isequal(cellstr_joiner(x, ' '),y_correct))

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In cellstr_joiner (line 2) In evaluateCode', '/users/mss.system.AVni9C/+cody/verifyCode.m', 238)" style="font-weight:bold">cody.verifyCode>evaluateCode (line 238) In cody.verifyCode (line 43) In mls.internal.fevalJSON (line 14)] ans = 1

2   Pass
%% x = {'this', 'one', '', 'has', ' ', 'some tricky', 'stuff'}; y_correct = 'this one has some tricky stuff'; assert(isequal(cellstr_joiner(x, ' '),y_correct))

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In cellstr_joiner (line 2) In evaluateCode', '/users/mss.system.AVni9C/+cody/verifyCode.m', 238)" style="font-weight:bold">cody.verifyCode>evaluateCode (line 238) In cody.verifyCode (line 43) In mls.internal.fevalJSON (line 14)] ans = 1

3   Pass
%% x = {'delimiters', 'are', 'not', 'always', 'spaces'}; y_correct = 'delimiters?are?not?always?spaces'; assert(isequal(cellstr_joiner(x, '?'),y_correct))

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In cellstr_joiner (line 2) In evaluateCode', '/users/mss.system.AVni9C/+cody/verifyCode.m', 238)" style="font-weight:bold">cody.verifyCode>evaluateCode (line 238) In cody.verifyCode (line 43) In mls.internal.fevalJSON (line 14)] ans = 1

Suggested Problems

More from this Author95