Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
% 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
|
9839 Solvers
1963 Solvers
413 Solvers
360 Solvers
140 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!