diff libinterp/octave-value/ov-cell.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 53c10d69a9be
children 4d6615bca5b4
line wrap: on
line diff
--- a/libinterp/octave-value/ov-cell.cc	Wed Apr 26 14:40:37 2023 -0700
+++ b/libinterp/octave-value/ov-cell.cc	Wed Apr 26 16:26:32 2023 -0700
@@ -1286,6 +1286,8 @@
 }
 
 /*
+## Note: Matlab compatibility requires using 0 for negative dimensions.
+%!assert (size (cell (2, -3)), [2, 0])
 
 %!test <*63132>
 %! x = {1, 3};