Graphics tests: fix barhomogenize 31/14131/2
Paul Bignier [Wed, 26 Mar 2014 10:01:42 +0000 (11:01 +0100)]
Fix test after https://codereview.scilab.org/#/c/14108/

Change-Id: I474cb955ac210f210bb2668e981f21049776a9b1

scilab/modules/graphics/tests/unit_tests/barhomogenize.dia.ref
scilab/modules/graphics/tests/unit_tests/barhomogenize.tst

index 1680de7..e4db9a9 100644 (file)
@@ -58,7 +58,7 @@ assert_checkequal(a3.y_ticks.labels, ["0";"2";"4";"6";"8";"10";"12"]);
 assert_checkequal(a3.z_ticks.labels, []);
 assert_checkequal(a3.sub_ticks, [0,1]);
 assert_checktrue(abs(a3.data_bounds - [0.55,0;3.45,11]) < 0.05);
-assert_checkequal(a3.margins, [0.125,0.125,0.125,0.125]);
+assert_checkequal(a3.margins(2:$), [0.125,0.125,0.125]);
 assert_checktrue(abs(a3.axes_bounds - [0,0,0.3333333333,0.5]) < 0.0005);
 // Check Second
 assert_checkequal(a2.x_location, a3.x_location);
index 78e7b62..97d505e 100644 (file)
@@ -65,7 +65,7 @@ assert_checkequal(a3.y_ticks.labels, ["0";"2";"4";"6";"8";"10";"12"]);
 assert_checkequal(a3.z_ticks.labels, []);
 assert_checkequal(a3.sub_ticks, [0,1]);
 assert_checktrue(abs(a3.data_bounds - [0.55,0;3.45,11]) < 0.05);
-assert_checkequal(a3.margins, [0.125,0.125,0.125,0.125]);
+assert_checkequal(a3.margins(2:$), [0.125,0.125,0.125]);
 assert_checktrue(abs(a3.axes_bounds - [0,0,0.3333333333,0.5]) < 0.0005);
 
 // Check Second