diff libinterp/corefcn/rand.cc @ 32060:1203a2d81a42

Add BIST tests for Matlab compatibility for functions which accept negative dimensions. * data.cc (Fones, Finf, Feps, Feye): Add BIST test for negative dimensions. * rand.cc (Frand): Add BIST test for negative dimensions. * ov-cell.cc (Fcell): Add BIST test for negative dimensions.
author Rik <rik@octave.org>
date Wed, 26 Apr 2023 16:26:32 -0700
parents 597f3ee61a48
children 2e484f9f1f18
line wrap: on
line diff
--- a/libinterp/corefcn/rand.cc	Wed Apr 26 14:40:37 2023 -0700
+++ b/libinterp/corefcn/rand.cc	Wed Apr 26 16:26:32 2023 -0700
@@ -538,7 +538,7 @@
 */
 
 /*
-## Check that negative dimensions are treated as zero for Matlab compatibility
+## Note: Matlab compatibility requires using 0 for negative dimensions.
 %!assert (size (rand (1, -1, 2)), [1, 0, 2])
 
 ## Test input validation