changeset 24579:304501c692e6

bounds.m: Fix failing BIST tests. * bounds.m: Fix failing BIST tests.
author Rik <rik@octave.org>
date Tue, 09 Jan 2018 21:59:41 -0800
parents 3ee61988e9a9
children a276f008ea74
files scripts/statistics/bounds.m
diffstat 1 files changed, 9 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/statistics/bounds.m	Tue Jan 09 21:52:35 2018 -0800
+++ b/scripts/statistics/bounds.m	Tue Jan 09 21:59:41 2018 -0800
@@ -85,9 +85,15 @@
 endfunction
 
 
-%!assert (bounds (1:10), [1, 10])
-%!assert (bounds ([10:-1:1]'), [1, 10])
-%!assert (bounds (single (1:10)), single ([1, 10]))
+%!test
+%! [s,l] = bounds (1:10);
+%! assert ([s,l], [1, 10]);
+%!test
+%! [s,l] = bounds ([10:-1:1]');
+%! assert ([s,l], [1, 10]);
+%!test
+%! [s,l] = bounds (single (1:10));
+%! assert ([s,l], single ([1, 10]));
 %!assert (bounds (magic (3)), [3, 1, 2])
 %!assert (bounds (magic (3), 2), [1; 3; 2])
 %!test