Mercurial > hg > octave-lyh
diff scripts/plot/ylabel.m @ 13136:79b9a7669bb8
Tests added for scripts/plot
(plot/ishghandle.m, plot/text.m, plot/title.m, plot/xlabel.m, plot/ylabel.m,
plot/zlabel.m): Tests added for plot functions.
plot/whitebg.m: Fix typo. Change colors only for figure under test
author | Kai Habel <kai.habel@gmx.de> |
---|---|
date | Wed, 14 Sep 2011 21:03:39 +0200 |
parents | 62b7ea59a6ff |
children | e81ddf9cacd5 |
line wrap: on
line diff
--- a/scripts/plot/ylabel.m +++ b/scripts/plot/ylabel.m @@ -47,3 +47,15 @@ endif endfunction + +%!test +%! hf = figure ("visible", "off"); +%! unwind_protect +%! y = ylabel ("ylabel_string"); +%! assert (get(gca, "ylabel"), y); +%! assert (get(y, "type"), "text"); +%! assert (get(y, "visible"), "on"); +%! assert (get(y, "string"), "ylabel_string"); +%! unwind_protect_cleanup +%! close (hf); +%! end_unwind_protect