Cody

Solution 2223555

Submitted on 20 Apr 2020
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
% gets expected output/score fh=fopen('zeroscore.m');str=fread(fh,'*char')'; fclose(fh); results=scoringengine.verifyCode(str,'assert(isequal(zeroscore(),0))'); % pass/fail str={'Failed','Passed'}; if results.pass&results.score=='0'&ischar(results.score), fprintf('Congrats! Solution score: %s; Solution status: %s\n',results.score, str{1+results.pass}); else fprintf('Sorry! Solution score: %s; Solution status: %s\n',results.score, str{1+results.pass}); [a,b]=1; end

Error using fread Invalid file identifier. Use fopen to generate a valid file identifier. Error in Test1 (line 2) fh=fopen('zeroscore.m');str=fread(fh,'*char')'; fclose(fh);