Cody

Solution 1745675

Submitted on 8 Mar 2019
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
fclose('all'); fid = fopen('titi.txt','w+') assert(isequal(your_fcn_name, {'titi.txt'}))

fid = 3 C_filenames = 1×2 cell array {'foo.m'} {'bar.m'}

Assertion failed.

2   Fail
fclose('all'); fid = fopen('titi.txt','w+') fid = fopen('cloclo.mat3','w+') assert(isequal(your_fcn_name, {'titi.txt','cloclo.mat3'}))

fid = 3 fid = 4 C_filenames = 1×2 cell array {'foo.m'} {'bar.m'}

Assertion failed.

3   Fail
fclose('all'); assert(isequal(your_fcn_name, {}))

C_filenames = 1×2 cell array {'foo.m'} {'bar.m'}

Assertion failed.