Mercurial > hg > octave-lyh
diff scripts/plot/line.m @ 13096:5553412c6614
Tests for scripts/plot
* (allchild.m, ancestor.m, clf.m, findall.m, findobj.m, gcf.m,
line.m, view.m, whitebg.m, xlim.m, ylim.m, zlim.m): Add tests
author | Kai Habel <kai.habel@gmx.de> |
---|---|
date | Sun, 04 Sep 2011 21:58:42 +0200 |
parents | fd0a3ac60b0e |
children | ebb42fb2da04 |
line wrap: on
line diff
--- a/scripts/plot/line.m +++ b/scripts/plot/line.m @@ -42,3 +42,17 @@ endif endfunction + +%!test +%! hf = figure (1232, "visible", "off"); +%! unwind_protect +%! h = line; +%! assert (get (h, "xdata"), [0 1], eps); +%! assert (get (h, "ydata"), [0 1], eps); +%! assert (get (h, "type"), "line"); +%! assert (get (h, "color"), [0 0 0]); +%! assert (get (h, "linestyle"), "-"); +%! assert (get (h, "linewidth"), 0.5, eps); +%! unwind_protect_cleanup +%! close (hf); +%! end_unwind_protect