diff test/mk-conv-tst.sh @ 29982:605275522c37

Deprecate disable_range, disable_diagonal_matrix, disable_permutation_matrix. Replace configuration options with inverted sense (true means functionality is disabled) with ordinary sense options: optimize_range, optimize_diagonal_matrix, optimize_permutation_matrix. * NEWS: Announce deprecation and replacement functions. * basics.txi, diagperm.txi, numbers.txi: Replace instances of functions in Octave manual with their replacements. * interpreter.cc (maximum_braindamage): Change options for --traditional to disable Octave optimizations. * ov-typeinfo.cc (Ftypeinfo): Replace old functions in BIST tests. * ov.cc: Rename variables Vdisable_diagonal_matrix, Vdisable_permutation_matrix, Vdisable_range. Update code for inverted sense of new optimize_XXX variables. * ov.cc (Foptimize_range, Foptimize_diagonal_matrix, Foptimize_permutation_matrix): New replacement functions. * diag-perm.tst, mk-conv-tst.sh: Replace instances of disable_range with optimize_range in BIST tests. * scripts/deprecated/module.mk: Add disable_diagonal_matrix.m, disable_permutation_matrix.m, disable_range.m to build system. * scripts/deprecated/disable_diagonal_matrix.m, scripts/deprecated/disable_permutation_matrix.m, scripts/deprecated/disable_range.m: New m-functions to issue a warning before calling replacement optimize_XXX function.
author Rik <rik@octave.org>
date Tue, 17 Aug 2021 14:34:42 -0700
parents 7854d5752dd2
children 796f54d4ddbf
line wrap: on
line diff
--- a/test/mk-conv-tst.sh	Tue Aug 17 10:50:49 2021 -0700
+++ b/test/mk-conv-tst.sh	Tue Aug 17 14:34:42 2021 -0700
@@ -72,10 +72,10 @@
 %! ui64m = uint64 (rand (5) * 10);
 %!
 %!test
-%! if (disable_range ())
+%! if (optimize_range ())
+%!   assert (typeinfo (r), "range")
+%! else
 %!   assert (typeinfo (r), "matrix")
-%! else
-%!   assert (typeinfo (r), "range")
 %! endif
 %!assert (typeinfo (dq), "string")
 %!assert (typeinfo (sq), "sq_string")