Commits

Anonymous committed 4a322d4

catch exceptions in doctests, attempt to compare them to expected output

Comments (0)

Files changed (1)

 for I = 1:length(matches)
     
     % ['<<' matches(I).want '>>']
-    
-    got = evalc(matches(I).source);
+    try
+        got = evalc(matches(I).source);
+    catch exc
+        got = ['??? ' exc.message];
+    end
     % ['{{' got '}}']
     
     want_unspaced = regexprep(matches(I).want, '\s+', ' ');