Problem 42491. Quine : write a quine in MATLAB

Solution 1878053

Submitted on 18 Jul 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
nl = char(10); contents = strsplit(fileread('quine.m'),nl); ref_contents = [strjoin(contents(1:end-2),nl), nl]; actual_contents=quine(); assert( isequal(ref_contents,actual_contents) )

Error using quine Too many output arguments. Error in Test1 (line 4) actual_contents=quine();