Commits

Anonymous committed 607d4b2

clean up a little bit, and section up the file

Comments (0)

Files changed (1)

 % This is a dumb way to be verbose or not, sorry.
 verbose = 0;
 
-
+% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 %
 % Make a list of every method/function that we need to examine, in the
 % to_test struct.
 end
 
 
-
+% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 %
 % Examine each function/method for a docstring, and run any examples in
 % that docstring
     these_results = doctest_run(docstring);
     
  
-    for R = 1:length(these_results)
-        these_results(R).link = to_test(I).link;
+    if ~ isempty(these_results)
+        [these_results.link] = deal(to_test(I).link);
     end
+    
     result = [result, these_results];
 end
     
+
+
+% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%
+% Print the results
+%
+
 test_anything(result, verbose);