Since https://codereview.scilab.org/#/c/12866/ , %b_rand() exists so it is now redefined.
Turn off warnings not to be notified of this.
Change-Id: I796c69a7b9724c0de093f76dd6d26cfffdaf2104
//
// <-- Short Description -->
// overloads names for grand() are not standard: %#_Rand() instead of %#_grand()
+// Save warning mode and turn off warnings
+status = warning("query");
+warning("off");
function r=%b_grand(arg)
r="boolean overload for grand is %b_grand() as expected";
endfunction
assert_checkequal(grand(%t),"boolean overload for grand is %b_grand() as expected");
+// Revert to the previous warning mode
+warning(status);
// <-- Short Description -->
// overloads names for grand() are not standard: %#_Rand() instead of %#_grand()
+// Save warning mode and turn off warnings
+status = warning("query");
+warning("off");
+
function r=%b_grand(arg)
r="boolean overload for grand is %b_grand() as expected";
endfunction
assert_checkequal(grand(%t),"boolean overload for grand is %b_grand() as expected");
+
+// Revert to the previous warning mode
+warning(status);