changeset 24543:0c204cd762a4

Fix reversal of START,END in linspace BIST test in cset 22a2bc91cc7f. * data.cc: Reverse START, END in calculation of delta for x3.
author Rik <rik@octave.org>
date Sun, 07 Jan 2018 07:20:03 -0800
parents d6f06eeb8917
children d3a507ca2d5d
files libinterp/corefcn/data.cc
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libinterp/corefcn/data.cc	Thu Sep 28 17:35:59 2017 -0700
+++ b/libinterp/corefcn/data.cc	Sun Jan 07 07:20:03 2018 -0800
@@ -5147,7 +5147,7 @@
 %! assert (size (x2) == [1, 10] && x2(1) == 1 && x2(10) == 2);
 %! assert (x2(2) - x2(1), (2 - 1)/ (10 - 1), eps);
 %! assert (size (x3) == [1, 10] && x3(1) == 1 && x3(10) == -2);
-%! assert (x3(2) - x3(1), (1 - -2)/ (10 - 1), eps);
+%! assert (x3(2) - x3(1), (-2 - 1)/ (10 - 1), eps);
 
 ## Test complex values
 %!test