changeset 32689:427b8e07ad7a

test: Changed test of default colormap to be exact, no tolerance (bug #65010). * graphics.cc (viridis_colormap): Removed eps tolerance from assert statement.
author Rik <rik@octave.org>
date Fri, 05 Jan 2024 12:02:07 -0800
parents c34d571b5855
children a11d7442f9cd
files libinterp/corefcn/graphics.cc
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libinterp/corefcn/graphics.cc	Wed Jan 03 17:10:50 2024 -0800
+++ b/libinterp/corefcn/graphics.cc	Fri Jan 05 12:02:07 2024 -0800
@@ -413,12 +413,12 @@
 }
 
 /*
-## Test default colormap returns as 256 color viridis
+## Test default colormap returns a 256-color viridis map
 %!test
 %! hf = figure ("visible", "off");
 %! unwind_protect
 %!   hax = axes ("parent", hf);
-%!   assert (get (hax, "colormap"), viridis (256), eps);   
+%!   assert (get (hax, "colormap"), viridis (256));
 %! unwind_protect_cleanup
 %!   delete (hf);
 %! end_unwind_protect