diff scripts/plot/figure.m @ 13204:be7bfd59300a

Add tests for scripts/plot (plot/figure.m, plot/ishold.m, plot/ishold.m, plot/newplot.m): Add tests.
author Kai Habel <kai.habel@gmx.de>
date Fri, 23 Sep 2011 22:18:05 +0200
parents fd0a3ac60b0e
children 984359717d71
line wrap: on
line diff
--- a/scripts/plot/figure.m
+++ b/scripts/plot/figure.m
@@ -80,3 +80,12 @@
   endif
 
 endfunction
+
+%!test
+%! hf = figure ("visible", "off");
+%! unwind_protect
+%!   assert (gcf, hf);
+%!   assert (isfigure (hf));
+%! unwind_protect_cleanup
+%!   close (hf);
+%! end_unwind_protect
\ No newline at end of file