changeset 13811:240d6810204c

update tests for patch * patch.m: Update tests for new default property values.
author John W. Eaton <jwe@octave.org>
date Fri, 04 Nov 2011 04:47:24 -0400
parents e6c1308568c3
children d3f0d75faf2c
files scripts/plot/patch.m
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/plot/patch.m	Fri Nov 04 04:39:49 2011 -0400
+++ b/scripts/plot/patch.m	Fri Nov 04 04:47:24 2011 -0400
@@ -201,14 +201,14 @@
 %! unwind_protect
 %!   h = patch;
 %!   assert (findobj (hf, "type", "patch"), h);
-%!   assert (get (h, "xdata"), [0; 1; 1], eps);
-%!   assert (get (h, "ydata"), [0; 0; 1], eps);
+%!   assert (get (h, "xdata"), [0; 1; 0], eps);
+%!   assert (get (h, "ydata"), [1; 1; 0], eps);
 %!   assert (isempty(get (h, "zdata")));
 %!   assert (isempty(get (h, "cdata")));
 %!   assert (get (h, "faces"), [1, 2, 3], eps);
-%!   assert (get (h, "vertices"), [0 0; 1 0; 1 1], eps);
+%!   assert (get (h, "vertices"), [0 1; 1 1; 0 0], eps);
 %!   assert (get (h, "type"), "patch");
-%!   assert (get (h, "facecolor"), [0 0 1]);
+%!   assert (get (h, "facecolor"), [0 0 0]);
 %!   assert (get (h, "linestyle"), get (0, "defaultpatchlinestyle"));
 %!   assert (get (h, "linewidth"), get (0, "defaultpatchlinewidth"), eps);
 %!   assert (get (h, "marker"), get (0, "defaultpatchmarker"));