diff test/diag-perm.tst @ 25926:373fe1608f7c

Emit an error when utility matrices (zeros, ones, rand, etc.) are given a fractional dimension (bug #54781). * data.cc (fill_matrix): Replace calls to "xidx_type_value" with "idx_type_value (true)" which enables input checking. * data.cc (Fones): Add new BIST tests for negative dimensions, fractional dimensions, unknown conversion type. * rand.cc (do_rand): Replace call to "xidx_type_value" with "idx_type_value (true)" which enables input checking. * rand.cc (Frand): Add new BIST tests for negative dimensions and fractional dimensions. * diag-perm.tst: Fix incorrect BIST test using a fractional dimension.
author Rik <rik@octave.org>
date Thu, 11 Oct 2018 14:04:47 -0700
parents 6652d3823428
children 00f796120a6d
line wrap: on
line diff
--- a/test/diag-perm.tst	Thu Oct 11 18:46:05 2018 +0200
+++ b/test/diag-perm.tst	Thu Oct 11 14:04:47 2018 -0700
@@ -77,7 +77,7 @@
 %! P1 = eye (1) (:, [1]);
 %! A1 = 1;
 %! P = eye (n) (:, randperm (n));
-%! A = rand (n-3, n, .5);
+%! A = rand (n-3, n);
 %! assert (typeinfo (A * P1), "matrix");
 %! assert (full (A * P1), full (A) * P1);
 %! assert (typeinfo (P1 * A), "matrix");