Mercurial > octave
changeset 28887:09c071328135
test: remove unnecessary BIST tests in C++ files checking for excessive number of inputs.
Remove BIST tests now that interpreter enforces calling function with no more than
the number of arguments defined in the function prototype.
* chol.cc, colamd.cc, colloc.cc, conv2.cc, data.cc, det.cc, dot.cc, eig.cc,
ellipj.cc, event-manager.cc, find.cc, gcd.cc, givens.cc, hash.cc, hess.cc,
hex2num.cc, input.cc, inv.cc, lu.cc, mappers.cc, max.cc, pr-output.cc, psi.cc,
qr.cc, schur.cc, sparse.cc, strfind.cc, strfns.cc, svd.cc, sylvester.cc,
time.cc, toplev.cc, tril.cc, tsearch.cc, typecast.cc, utils.cc, variables.cc,
gzip.cc, ov-class.cc, ov-fcn-handle.cc, ov.cc:
Remove unnecessary BIST tests checking for excessive number of inputs.
line wrap: on
line diff
--- a/libinterp/corefcn/chol.cc Fri Oct 09 13:28:53 2020 -0700 +++ b/libinterp/corefcn/chol.cc Fri Oct 09 13:49:52 2020 -0700 @@ -345,7 +345,7 @@ %! [Q, p] = chol (A); %! assert (p != 0); -%!error chol () +%!error <Invalid call> chol () %!error <matrix must be positive definite> chol ([1, 2; 3, 4]) %!error <requires square matrix> chol ([1, 2; 3, 4; 5, 6]) %!error <optional arguments must be strings> chol (1, 2)
--- a/libinterp/corefcn/colamd.cc Fri Oct 09 13:28:53 2020 -0700 +++ b/libinterp/corefcn/colamd.cc Fri Oct 09 13:49:52 2020 -0700 @@ -777,8 +777,7 @@ %!assert (etree (sparse ([1,2], [1,2], [i,i], 2, 2)), [0, 0]); %!assert (etree (gallery ("poisson", 16)), [2:256, 0]); -%!error etree () -%!error etree (1, 2, 3) +%!error <Invalid call> etree () %!error <S must be a sparse matrix> etree ([1, 2; 3, 4]) %!error <TYP must be a string> etree (speye (2), 3) %!error <is not square> etree (sprand (2, 4, .25))
--- a/libinterp/corefcn/colloc.cc Fri Oct 09 13:28:53 2020 -0700 +++ b/libinterp/corefcn/colloc.cc Fri Oct 09 13:49:52 2020 -0700 @@ -103,8 +103,7 @@ %!assert (colloc (1, "left", "right"), [0; 0.5; 1]) ## Test input validation -%!error colloc () -%!error colloc (1,2,3,4) +%!error <Invalid call> colloc () %!error <N must be a scalar> colloc (ones (2,2)) %!error <N cannot be NaN> colloc (NaN) %!error <N must be positive> colloc (-1)
--- a/libinterp/corefcn/conv2.cc Fri Oct 09 13:28:53 2020 -0700 +++ b/libinterp/corefcn/conv2.cc Fri Oct 09 13:49:52 2020 -0700 @@ -291,8 +291,8 @@ %! assert (B, A); # Yes, this test is for *exact* equivalence. ## Test input validation -%!error conv2 () -%!error conv2 (1) +%!error <Invalid call> conv2 () +%!error <Invalid call> conv2 (1) %!error <must be 1-D vectors or 2-D matrices> conv2 (ones (2), ones (2,2,2)) %!error <SHAPE type not valid> conv2 (1,2, "NOT_A_SHAPE") ## Test alternate calling form which should be 2 vectors and a matrix @@ -563,8 +563,8 @@ %!assert (class (convn (ones(5, "uint8"), rand(3))), "double") %!assert (class (convn (rand (3, "single"), ones(5, "uint8"))), "single") -%!error convn () -%!error convn (1) +%!error <Invalid call> convn () +%!error <Invalid call> convn (1) %!error <SHAPE type not valid> convn (1,2, "NOT_A_SHAPE") %!error convn (rand (3), 1, 1) */
--- a/libinterp/corefcn/data.cc Fri Oct 09 13:28:53 2020 -0700 +++ b/libinterp/corefcn/data.cc Fri Oct 09 13:49:52 2020 -0700 @@ -120,8 +120,7 @@ %! assert (all (x, 1) == [0, 1, 1]); %! assert (all (x, 2) == [0; 1; 1]); -%!error all () -%!error all (1, 2, 3) +%!error <Invalid call> all () */ DEFUN (any, args, , @@ -185,8 +184,7 @@ %! assert (any (x, 1) == [0, 0, 1]); %! assert (any (x, 2) == [0; 0; 1]); -%!error any () -%!error any (1, 2, 3) +%!error <Invalid call> any () */ // These mapping functions may also be useful in other places, eh? @@ -308,8 +306,7 @@ %! assert (nnz (y), 3); %! assert (y, sparse (atan2 (0:3, zeros (1,4)))); -%!error atan2 () -%!error atan2 (1, 2, 3) +%!error <Invalid call> atan2 () */ static octave_value @@ -725,8 +722,7 @@ %!error rem (uint (8), int8 (5)) %!error rem (uint8 ([1, 2]), uint8 ([3, 4, 5])) -%!error rem () -%!error rem (1, 2, 3) +%!error <Invalid call> rem () %!error rem ([1, 2], [3, 4, 5]) %!error rem (i, 1) */ @@ -1017,7 +1013,7 @@ %!assert (cumprod (single ([2, 3; 4, 5]), 1), single ([2, 3; 8, 15])) %!assert (cumprod (single ([2, 3; 4, 5]), 2), single ([2, 6; 4, 20])) -%!error cumprod () +%!error <Invalid call> cumprod () */ DEFUN (cumsum, args, , @@ -1167,7 +1163,7 @@ %!assert (cumsum (single ([1, 2; 3, 4]), 1), single ([1, 2; 4, 6])) %!assert (cumsum (single ([1, 2; 3, 4]), 2), single ([1, 3; 3, 7])) -%!error cumsum () +%!error <Invalid call> cumsum () */ DEFUN (diag, args, , @@ -1502,8 +1498,7 @@ %!assert (prod ([true false; true true], 2, "native"), [false; true]) ## Test input validation -%!error prod () -%!error prod (1,2,3) +%!error <Invalid call> prod () %!error <unrecognized type argument 'foobar'> prod (1, "foobar") */ @@ -2865,8 +2860,7 @@ %!assert (rows (zeros (2,0)), 2) ## Test input validation -%!error rows () -%!error rows (1,2) +%!error <Invalid call> rows () */ DEFUN (columns, args, , @@ -3111,8 +3105,7 @@ ;-) %!assert (sum ("Octave") + "8", sumsq (primes (17))) -%!error sum () -%!error sum (1,2,3) +%!error <Invalid call> sum () %!error <unrecognized type argument 'foobar'> sum (1, "foobar") */ @@ -3153,7 +3146,7 @@ %!assert (sumsq (single ([1, 2; 3, 4]), 1), single ([10, 20])) %!assert (sumsq (single ([1, 2; 3, 4]), 2), single ([5; 25])) -%!error sumsq () +%!error <Invalid call> sumsq () */ DEFUN (islogical, args, , @@ -3240,7 +3233,7 @@ %!assert (! isinteger ("parrot")) %!assert (! isinteger ([1, 2, 3])) -%!error isinteger () +%!error <Invalid call> isinteger () %!error isinteger ("multiple", "parameters") */ @@ -3270,8 +3263,7 @@ %!assert (iscomplex ({i}), false) ## Test input validation -%!error iscomplex () -%!error iscomplex (1, 2) +%!error <Invalid call> iscomplex () */ DEFUN (isfloat, args, , @@ -3701,8 +3693,7 @@ %! assert (isscalar (s)); ## Test input validation -%!error isscalar () -%!error isscalar (1, 2) +%!error <Invalid call> isscalar () */ DEFUN (isvector, args, , @@ -3742,7 +3733,7 @@ %! assert (isvector (s), true); ## Test input validation -%!error isvector () +%!error <Invalid call> isvector () %!error isvector ([1, 2], 2) */ @@ -3791,7 +3782,7 @@ %! assert (isrow (s), true); ## Test input validation -%!error isrow () +%!error <Invalid call> isrow () %!error isrow ([1, 2], 2) */ @@ -3840,7 +3831,7 @@ %! assert (iscolumn (s)); ## Test input validation -%!error iscolumn () +%!error <Invalid call> iscolumn () %!error iscolumn ([1, 2], 2) */ @@ -3889,7 +3880,7 @@ %! s.a = 1; %! assert (ismatrix (s), true); -%!error ismatrix () +%!error <Invalid call> ismatrix () %!error ismatrix ([1, 2; 3, 4], 2) */ @@ -3930,7 +3921,7 @@ %!assert (sparse (([1, 2; 3, 4]))) ## Test input validation -%!error issquare () +%!error <Invalid call> issquare () %!error issquare ([1, 2; 3, 4], 2) */ @@ -5389,8 +5380,7 @@ ##%!assert <56933> (linspace (-Inf, 0, 4), [-Inf, NaN, NaN, 0]) ##%!assert <56933> (linspace (Inf, 0, 4), [Inf, NaN, NaN, 0]) -%!error linspace () -%!error linspace (1, 2, 3, 4) +%!error <Invalid call> linspace () %!error <N must be a scalar> linspace (1, 2, [3, 4]) %!error <START, END must be scalars or vectors> linspace (ones (2,2), 2, 3) %!error <START, END must be scalars or vectors> linspace (2, ones (2,2), 3) @@ -5615,8 +5605,7 @@ %! s.a = 1; %! fail ("reshape (s, 2, 3)", "can't reshape 1x1 array to 2x3 array"); -%!error reshape () -%!error reshape (1, 2, 3, 4) +%!error <Invalid call> reshape () %!error <SIZE must have 2 or more dimensions> reshape (1:3, 3) %!error <SIZE must be non-negative> reshape (1:3, [3 -1]) %!error <only a single dimension can be unknown> reshape (1:3, 1,[],[],3) @@ -5683,8 +5672,7 @@ %!assert (vec ([1, 3; 2, 4], 3), reshape ([1, 2, 3, 4], 1, 1, 4)) %!assert (vec ([1, 3; 2, 4], 3), shiftdim (vec ([1, 3; 2, 4]), -2)) -%!error vec () -%!error vec (1, 2, 3) +%!error <Invalid call> vec () %!error vec ([1, 2; 3, 4], 0) */ @@ -5950,8 +5938,7 @@ %! assert (norm (A), 1); ## Test input validation -%!error norm () -%!error norm (1,2,3,4) +%!error <Invalid call> norm () %!error <unrecognized option> norm (1, "invalid") %!error <unrecognized option> norm (1, "rows", "invalid") %!error <unrecognized option> norm (1, "invalid", "rows") @@ -6128,8 +6115,8 @@ %!assert (plus (1,2,3,4,5,6,7,8,9), sum (1:9)) ## Test input validation for all functions which use binary_assoc_op_defun_body -%!error plus () -%!error plus (1) +%!error <Invalid call> plus () +%!error <Invalid call> plus (1) */ DEFUN (minus, args, , @@ -6871,8 +6858,7 @@ %! [v, i] = sort (a); %! assert (i, [1, 4, 2, 5, 3]); -%!error sort () -%!error sort (1, 2, 3, 4) +%!error <Invalid call> sort () */ // Sort the rows of the matrix @var{a} according to the order @@ -7064,8 +7050,7 @@ %!assert (issorted ("", "rows", "descend")) ## Test input validation -%!error issorted () -%!error issorted (1,2,3,4) +%!error <Invalid call> issorted () %!error <second argument must be a string> issorted (1, 2) %!error <second argument must be a string> issorted (1, {"rows"}) %!error <sparse matrices not yet supported> issorted (sparse ([1 2 3]), "rows") @@ -7175,8 +7160,8 @@ %!assert <*51329> (nth_element ([1:10], [1:10]), [1:10]) -%!error nth_element () -%!error nth_element (1) +%!error <Invalid call> nth_element () +%!error <Invalid call> nth_element (1) %!error nth_element (1, 1.5) %!error nth_element (1, 2, 3, 4) %!error nth_element ("abcd", 3) @@ -7850,8 +7835,7 @@ %!assert (diff ([1, 2; 5, 4; 8, 7; 9, 6; 3, 1], 3), [-1, -5; -5, 0]) %!assert (isempty (diff (1))) -%!error diff () -%!error diff (1, 2, 3, 4) +%!error <Invalid call> diff () %!error diff ("foo") %!error diff ([1, 2; 3, 4], -1) */ @@ -8070,8 +8054,7 @@ %!assert (base64_encode (uint64 ([0 0 0])), "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA") %!assert (base64_encode (uint8 ([255 255 255])), "////") -%!error base64_encode () -%!error base64_encode (1,2) +%!error <Invalid call> base64_encode () %!error base64_encode ("A string") %!error base64_encode ({"A cell array"}) %!error base64_encode (struct ()) @@ -8125,8 +8108,7 @@ %! assert (outv, in(:).'); %! assert (outm, in); -%!error base64_decode () -%!error base64_decode (1,2,3) +%!error <Invalid call> base64_decode () %!error base64_decode (1, "this is not a valid set of dimensions") %!error <input was not valid base64> base64_decode (1) %!error <input was not valid base64> base64_decode ("AQ=") @@ -8181,8 +8163,7 @@ %! assert (outv, in(:).'); %! assert (outm, in); -%!error __base64_decode_bytes__ () -%!error __base64_decode_bytes__ (1,2,3) +%!error <Invalid call> __base64_decode_bytes__ () %!error __base64_decode_bytes__ (1, "this is not a valid set of dimensions") %!error <input was not valid base64> __base64_decode_bytes__ (1) */
--- a/libinterp/corefcn/det.cc Fri Oct 09 13:28:53 2020 -0700 +++ b/libinterp/corefcn/det.cc Fri Oct 09 13:49:52 2020 -0700 @@ -230,7 +230,6 @@ %!assert (det ([1, 2; 3, 4]), -2, 10*eps) %!assert (det (single ([1, 2; 3, 4])), single (-2), 10*eps ("single")) %!assert (det (eye (2000)), 1) -%!error det () -%!error det (1, 2) +%!error <Invalid call> det () %!error <must be a square matrix> det ([1, 2; 3, 4; 5, 6]) */
--- a/libinterp/corefcn/dot.cc Fri Oct 09 13:28:53 2020 -0700 +++ b/libinterp/corefcn/dot.cc Fri Oct 09 13:49:52 2020 -0700 @@ -233,9 +233,8 @@ %! assert (dot (x, x), 127); ## Test input validation -%!error dot () -%!error dot (1) -%!error dot (1,2,3,4) +%!error <Invalid call> dot () +%!error <Invalid call> dot (1) %!error <X and Y must be numeric> dot ({1,2}, [3,4]) %!error <X and Y must be numeric> dot ([1,2], {3,4}) %!error <sizes of X and Y must match> dot ([1 2], [1 2 3]) @@ -423,9 +422,8 @@ %! assert (size (z), [1, 0, 3]); ## Test input validation -%!error blkmm () -%!error blkmm (1) -%!error blkmm (1,2,3) +%!error <Invalid call> blkmm () +%!error <Invalid call> blkmm (1) %!error <A and B must be numeric> blkmm ({1,2}, [3,4]) %!error <A and B must be numeric> blkmm ([3,4], {1,2}) %!error <A and B dimensions don't match> blkmm (ones (2,2), ones (3,3))
--- a/libinterp/corefcn/eig.cc Fri Oct 09 13:28:53 2020 -0700 +++ b/libinterp/corefcn/eig.cc Fri Oct 09 13:49:52 2020 -0700 @@ -595,7 +595,7 @@ %! A = diag([1e-16, 1e-15]); %! chol_qz_accuracy (A, A, true, false); -%!error eig () +%!error <Invalid call> eig () %!error eig (false) %!error eig ([1, 2; 3, 4], [4, 3; 2, 1], 1)
--- a/libinterp/corefcn/ellipj.cc Fri Oct 09 13:28:53 2020 -0700 +++ b/libinterp/corefcn/ellipj.cc Fri Oct 09 13:49:52 2020 -0700 @@ -828,9 +828,8 @@ %! D = 1/sqrt (2) * ones (size (x)); %! assert (dn, D, 1e-6); -%!error ellipj () -%!error ellipj (1) -%!error ellipj (1,2,3,4) +%!error <Invalid call> ellipj () +%!error <Invalid call> ellipj (1) %!warning <required value 0 <= M <= 1> ellipj (1,2); ## FIXME: errors commented out until lasterr() truly returns the last error. %!#error <M must be a scalar or matrix> ellipj (1, "1")
--- a/libinterp/corefcn/event-manager.cc Fri Oct 09 13:28:53 2020 -0700 +++ b/libinterp/corefcn/event-manager.cc Fri Oct 09 13:49:52 2020 -0700 @@ -524,7 +524,7 @@ } /* -%!error openvar () +%!error <Invalid call> openvar () %!error openvar ("a", "b") %!error <NAME must be a string> openvar (1:10) */
--- a/libinterp/corefcn/find.cc Fri Oct 09 13:28:53 2020 -0700 +++ b/libinterp/corefcn/find.cc Fri Oct 09 13:49:52 2020 -0700 @@ -597,5 +597,5 @@ %!assert (find ([2 0 1 0 5 0], Inf), [1, 3, 5]) %!assert (find ([2 0 1 0 5 0], Inf, "last"), [1, 3, 5]) -%!error find () +%!error <Invalid call> find () */
--- a/libinterp/corefcn/gcd.cc Fri Oct 09 13:28:53 2020 -0700 +++ b/libinterp/corefcn/gcd.cc Fri Oct 09 13:49:52 2020 -0700 @@ -528,7 +528,7 @@ %!error <all values must be integers> gcd (1/2, 2) %!error <all complex parts must be integers> gcd (e + i*pi, 1) -%!error gcd () +%!error <Invalid call> gcd () %!test %! s.a = 1;
--- a/libinterp/corefcn/givens.cc Fri Oct 09 13:28:53 2020 -0700 +++ b/libinterp/corefcn/givens.cc Fri Oct 09 13:49:52 2020 -0700 @@ -186,7 +186,7 @@ %!assert (givens (1,0), eye (2)) %!assert (givens (0,1), [0, 1; -1 0]) -%!error givens () -%!error givens (1) +%!error <Invalid call> givens () +%!error <Invalid call> givens (1) %!error [a,b,c] = givens (1, 1) */
--- a/libinterp/corefcn/hash.cc Fri Oct 09 13:28:53 2020 -0700 +++ b/libinterp/corefcn/hash.cc Fri Oct 09 13:49:52 2020 -0700 @@ -227,7 +227,7 @@ %! unlink (tfile); ## Test bad function calls -%!error hash () +%!error <Invalid call> hash () %!error hash ("") %!error hash ("", "") %!error hash ("", "", "")
--- a/libinterp/corefcn/hess.cc Fri Oct 09 13:28:53 2020 -0700 +++ b/libinterp/corefcn/hess.cc Fri Oct 09 13:49:52 2020 -0700 @@ -147,7 +147,7 @@ %! [p, h] = hess (a); %! assert (p * h * p', a, sqrt (eps ("single"))); -%!error hess () +%!error <Invalid call> hess () %!error hess ([1, 2; 3, 4], 2) %!error <must be a square matrix> hess ([1, 2; 3, 4; 5, 6]) */
--- a/libinterp/corefcn/hex2num.cc Fri Oct 09 13:28:53 2020 -0700 +++ b/libinterp/corefcn/hex2num.cc Fri Oct 09 13:49:52 2020 -0700 @@ -370,8 +370,7 @@ %!assert (hex2num (num2hex (pi)), pi) %!assert (hex2num (num2hex (single (pi)), "single"), single (pi)) -%!error num2hex () -%!error num2hex (1,2) +%!error <Invalid call> num2hex () %!error num2hex (1,"foo") %!error num2hex (1,2,3) %!error num2hex (1j)
--- a/libinterp/corefcn/input.cc Fri Oct 09 13:28:53 2020 -0700 +++ b/libinterp/corefcn/input.cc Fri Oct 09 13:49:52 2020 -0700 @@ -1154,8 +1154,7 @@ %!assert (any (strcmp ("abs", deblank (cellstr (completion_matches ("abs")))))) %!assert (! any (strcmp ("abs", deblank (cellstr (completion_matches ("absa")))))) -%!error completion_matches () -%!error completion_matches (1, 2) +%!error <Invalid call> completion_matches () */ DEFUN (readline_read_init_file, args, ,
--- a/libinterp/corefcn/inv.cc Fri Oct 09 13:28:53 2020 -0700 +++ b/libinterp/corefcn/inv.cc Fri Oct 09 13:49:52 2020 -0700 @@ -258,7 +258,7 @@ %! fail ("A = inv (sparse ([1, 0, 0; 0, 0, 0; 0, 0, 1]))", "warning", "matrix singular"); %! assert (A, sparse ([Inf, 0, 0; 0, 0, 0; 0, 0, Inf])); -%!error inv () +%!error <Invalid call> inv () %!error inv ([1, 2; 3, 4], 2) %!error <must be a square matrix> inv ([1, 2; 3, 4; 5, 6]) %!error <inverse of the null matrix not defined> inv (sparse (2, 2, 0))
--- a/libinterp/corefcn/lu.cc Fri Oct 09 13:28:53 2020 -0700 +++ b/libinterp/corefcn/lu.cc Fri Oct 09 13:49:52 2020 -0700 @@ -552,7 +552,7 @@ %! [L, U, P, Q] = lu (B); %! assert (P'*L*U*Q', B); -%!error lu () +%!error <Invalid call> lu () %!testif HAVE_UMFPACK %! fail ("[l,u] = lu (sparse (magic (3)))", "warning", "function may fail"); %!error <can not define pivoting threshold> lu ([1, 2; 3, 4], 2)
--- a/libinterp/corefcn/mappers.cc Fri Oct 09 13:28:53 2020 -0700 +++ b/libinterp/corefcn/mappers.cc Fri Oct 09 13:49:52 2020 -0700 @@ -80,8 +80,7 @@ %!assert (abs (single (3-4i)), single (5)) %!assert (abs (single ([1.1, 3i; 3+4i, -3-4i])), single ([1.1, 3; 5, 5])) -%!error abs () -%!error abs (1, 2) +%!error <Invalid call> abs () */ DEFUN (acos, args, , @@ -141,8 +140,7 @@ %! v = [0, pi, pi/2, pi/2]; %! assert (real (acos (x)), v); -%!error acos () -%!error acos (1, 2) +%!error <Invalid call> acos () */ DEFUN (acosh, args, , @@ -216,8 +214,7 @@ %! v = [0, pi, pi/2, -pi/2]; %! assert (imag (acosh (x)), v); -%!error acosh () -%!error acosh (1, 2) +%!error <Invalid call> acosh () */ DEFUN (angle, args, , @@ -284,8 +281,7 @@ %!assert (arg (single (-i)), single (-pi/2)) %!assert (arg (single ([1, i; -1, -i])), single ([0, pi/2; pi, -pi/2]), 2e1*eps ("single")) -%!error arg () -%!error arg (1, 2) +%!error <Invalid call> arg () */ DEFUN (asin, args, , @@ -344,8 +340,7 @@ %! v = [pi/2, -pi/2, 0, -0]; %! assert (real (asin (x)), v); -%!error asin () -%!error asin (1, 2) +%!error <Invalid call> asin () */ DEFUN (asinh, args, , @@ -387,8 +382,7 @@ %! v = [0, 0, pi/2, -pi/2]; %! assert (imag (asinh (x)), v); -%!error asinh () -%!error asinh (1, 2) +%!error <Invalid call> asinh () */ DEFUN (atan, args, , @@ -426,8 +420,7 @@ %! assert (real (atan (x)), v); %! assert (imag (atan (x)), [0, 0, 0, 0], eps); -%!error atan () -%!error atan (1, 2) +%!error <Invalid call> atan () */ DEFUN (atanh, args, , @@ -461,8 +454,7 @@ %! assert (imag (atanh (x)), v); %! assert (real (atanh (x)), [0, 0, 0, 0], eps); -%!error atanh () -%!error atanh (1, 2) +%!error <Invalid call> atanh () */ DEFUN (cbrt, args, , @@ -491,8 +483,7 @@ %!assert (cbrt (2^300), 2^100) %!assert (cbrt (125*2^300), 5*2^100) -%!error cbrt () -%!error cbrt (1, 2) +%!error <Invalid call> cbrt () */ DEFUN (ceil, args, , @@ -533,8 +524,7 @@ ## complex single precision %!assert (ceil (single ([2+2i, 1.1+1.1i, -1.1-1.1i, -1-i])), single ([2+2i, 2+2i, -1-i, -1-i])) -%!error ceil () -%!error ceil (1, 2) +%!error <Invalid call> ceil () */ DEFUN (conj, args, , @@ -571,8 +561,7 @@ %!assert (conj (single (1-i)), single (1+i)) %!assert (conj (single ([-1, -i; -1+i, -1-i])), single ([-1, i; -1-i, -1+i])) -%!error conj () -%!error conj (1, 2) +%!error <Invalid call> conj () */ DEFUN (cos, args, , @@ -605,8 +594,7 @@ %! v = single ([1, rt3/2, rt2/2, 1/2, 0, -1/2, -rt2/2, -rt3/2, -1]); %! assert (cos (x), v, sqrt (eps ("single"))); -%!error cos () -%!error cos (1, 2) +%!error <Invalid call> cos () */ DEFUN (cosh, args, , @@ -633,8 +621,7 @@ %! v = single ([1, 0, -1, 0]); %! assert (cosh (x), v, sqrt (eps ("single"))); -%!error cosh () -%!error cosh (1, 2) +%!error <Invalid call> cosh () */ DEFUN (erf, args, , @@ -702,8 +689,7 @@ %! assert (erf (-x), -v, -1.e-10); %! assert (erfc (x), 1-v, -1.e-10); -%!error erf () -%!error erf (1, 2) +%!error <Invalid call> erf () */ DEFUN (erfinv, args, , @@ -739,8 +725,7 @@ %!assert (erfinv ([-1, 1, 1.1, -2.1]), [-Inf, Inf, NaN, NaN]) %!error erfinv (1+2i) -%!error erfinv () -%!error erfinv (1, 2) +%!error <Invalid call> erfinv () */ DEFUN (erfcinv, args, , @@ -776,8 +761,7 @@ %!assert (erfcinv ([2, 0, -0.1, 2.1]), [-Inf, Inf, NaN, NaN]) %!error erfcinv (1+2i) -%!error erfcinv () -%!error erfcinv (1, 2) +%!error <Invalid call> erfcinv () */ DEFUN (erfc, args, , @@ -806,8 +790,7 @@ %! a = -1i*sqrt (-1/(6.4187*6.4187)); %! assert (erfc (a), erfc (real (a))); -%!error erfc () -%!error erfc (1, 2) +%!error <Invalid call> erfc () */ DEFUN (erfcx, args, , @@ -848,8 +831,7 @@ %! v = [0.0056416137829894329, 0.0054246791754558-0.00108483153786434i]; %! assert (erfcx (x), v, -1.e-10); -%!error erfcx () -%!error erfcx (1, 2) +%!error <Invalid call> erfcx () */ DEFUN (erfi, args, , @@ -885,8 +867,7 @@ %! x = [-0.1, 0.1, 1, 1+2i,-1+2i,1e-6+2e-6i,0+2i]; %! assert (erfi (x), -i * erf(i*x), -1.e-10); -%!error erfi () -%!error erfi (1, 2) +%!error <Invalid call> erfi () */ DEFUN (dawson, args, , @@ -924,8 +905,7 @@ %! assert (dawson (x), v, -1.e-10); %! assert (dawson (-x), -v, -1.e-10); -%!error dawson () -%!error dawson (1, 2) +%!error <Invalid call> dawson () */ DEFUN (exp, args, , @@ -959,8 +939,7 @@ %!assert (exp ([Inf, -Inf, NaN]), [Inf 0 NaN]) %!assert (exp (single ([Inf, -Inf, NaN])), single ([Inf 0 NaN])) -%!error exp () -%!error exp (1, 2) +%!error <Invalid call> exp () */ DEFUN (expm1, args, , @@ -989,8 +968,7 @@ %!assert (expm1 ([Inf, -Inf, NaN]), [Inf -1 NaN]) %!assert (expm1 (single ([Inf, -Inf, NaN])), single ([Inf -1 NaN])) -%!error expm1 () -%!error expm1 (1, 2) +%!error <Invalid call> expm1 () */ DEFUN (isfinite, args, , @@ -1025,8 +1003,7 @@ %!assert (! isfinite (single (NaN))) %!assert (isfinite (single (rand (1,10)))) -%!error isfinite () -%!error isfinite (1, 2) +%!error <Invalid call> isfinite () */ DEFUN (fix, args, , @@ -1058,8 +1035,7 @@ %!assert (fix (single ([1.1, 1, -1.1, -1])), single ([1, 1, -1, -1])) %!assert (fix (single ([1.1+1.1i, 1+i, -1.1-1.1i, -1-i])), single ([1+i, 1+i, -1-i, -1-i])) -%!error fix () -%!error fix (1, 2) +%!error <Invalid call> fix () */ DEFUN (floor, args, , @@ -1091,8 +1067,7 @@ %!assert (floor (single ([2, 1.1, -1.1, -1])), single ([2, 1, -2, -1])) %!assert (floor (single ([2+2i, 1.1+1.1i, -1.1-1.1i, -1-i])), single ([2+2i, 1+i, -2-2i, -1-i])) -%!error floor () -%!error floor (1, 2) +%!error <Invalid call> floor () */ DEFUN (gamma, args, , @@ -1160,8 +1135,7 @@ %! assert (gamma (x), v); %! assert (gamma (single (x)), single (v)); -%!error gamma () -%!error gamma (1, 2) +%!error <Invalid call> gamma () */ DEFUN (imag, args, , @@ -1188,8 +1162,7 @@ %!assert (imag (single (1+i)), single (1)) %!assert (imag (single ([i, 1; 1, i])), full (eye (2,"single"))) -%!error imag () -%!error imag (1, 2) +%!error <Invalid call> imag () */ DEFUNX ("isalnum", Fisalnum, args, , @@ -1363,8 +1336,7 @@ %!assert (isinf (single (rand (1,10))), false (1,10)) %!assert (isinf (single ([NaN -Inf -1 0 1 Inf NA])), [false, true, false, false, false, true, false]) -%!error isinf () -%!error isinf (1, 2) +%!error <Invalid call> isinf () */ DEFUNX ("isgraph", Fisgraph, args, , @@ -1456,8 +1428,7 @@ %!assert (isna (single (rand (1,10))), false (1,10)) %!assert (isna (single ([NaN -Inf -1 0 1 Inf NA])), [false, false, false, false, false, false, true]) -%!error isna () -%!error isna (1, 2) +%!error <Invalid call> isna () */ DEFUN (isnan, args, , @@ -1496,8 +1467,7 @@ %!assert (isnan (single (rand (1,10))), false (1,10)) %!assert (isnan (single ([NaN -Inf -1 0 1 Inf NA])), [true, false, false, false, false, false, true]) -%!error isnan () -%!error isnan (1, 2) +%!error <Invalid call> isnan () */ DEFUNX ("isprint", Fisprint, args, , @@ -1709,8 +1679,7 @@ %!assert (log (single ([1, e, e^2])), single ([0, 1, 2]), sqrt (eps ("single"))) %!assert (log (single ([-0.5, -1.5, -2.5])), single (log ([0.5, 1.5, 2.5]) + pi*1i), 4*eps ("single")) -%!error log () -%!error log (1, 2) +%!error <Invalid call> log () */ DEFUN (log10, args, , @@ -1730,8 +1699,7 @@ %!assert (log10 ([0.01, 0.1, 1, 10, 100]), [-2, -1, 0, 1, 2], sqrt (eps)) %!assert (log10 (single ([0.01, 0.1, 1, 10, 100])), single ([-2, -1, 0, 1, 2]), sqrt (eps ("single"))) -%!error log10 () -%!error log10 (1, 2) +%!error <Invalid call> log10 () */ DEFUN (log1p, args, , @@ -1758,8 +1726,7 @@ %!assert (log1p ([0, 2*eps, -2*eps]), [0, 2*eps, -2*eps], 1e-29) %!assert (log1p (single ([0, 2*eps, -2*eps])), single ([0, 2*eps, -2*eps]), 1e-29) -%!error log1p () -%!error log1p (1, 2) +%!error <Invalid call> log1p () */ DEFUN (real, args, , @@ -1786,8 +1753,7 @@ %!assert (real (single (1+i)), single (1)) %!assert (real (single ([1, i; i, 1])), full (eye (2, "single"))) -%!error real () -%!error real (1, 2) +%!error <Invalid call> real () */ DEFUN (round, args, , @@ -1831,8 +1797,7 @@ %!assert (round (single (-2.6)), single (-3)) %!assert (round (single ([1.1, -2.4; -3.7, 7.1])), single ([1, -2; -4, 7])) -%!error round () -%!error round (1, 2) +%!error <Invalid call> round () */ DEFUN (roundb, args, , @@ -1871,8 +1836,7 @@ %!assert (roundb (single (-2.6)), single (-3)) %!assert (roundb (single ([1.1, -2.4; -3.7, 7.1])), single ([1, -2; -4, 7])) -%!error roundb () -%!error roundb (1, 2) +%!error <Invalid call> roundb () */ DEFUN (sign, args, , @@ -1923,8 +1887,7 @@ %!assert (sign (single (3)), single (1)) %!assert (sign (single ([1, -pi; e, 0])), single ([1, -1; 1, 0])) -%!error sign () -%!error sign (1, 2) +%!error <Invalid call> sign () */ DEFUNX ("signbit", Fsignbit, args, , @@ -1994,8 +1957,7 @@ %! v = single ([0, 1/2, rt2/2, rt3/2, 1, rt3/2, rt2/2, 1/2, 0]); %! assert (sin (x), v, sqrt (eps ("single"))); -%!error sin () -%!error sin (1, 2) +%!error <Invalid call> sin () */ DEFUN (sinh, args, , @@ -2022,8 +1984,7 @@ %! v = single ([0, i, 0, -i]); %! assert (sinh (x), v, sqrt (eps ("single"))); -%!error sinh () -%!error sinh (1, 2) +%!error <Invalid call> sinh () */ DEFUN (sqrt, args, , @@ -2054,8 +2015,7 @@ %!assert (sqrt (single (1+i)), single (exp (0.5 * log (1+i))), sqrt (eps ("single"))) %!assert (sqrt (single ([4, -4; i, 1-i])), single ([2, 2i; exp(0.5 * log (i)), exp(0.5 * log (1-i))]), sqrt (eps ("single"))) -%!error sqrt () -%!error sqrt (1, 2) +%!error <Invalid call> sqrt () */ DEFUN (tan, args, , @@ -2086,8 +2046,7 @@ %! v = single ([0, rt3/3, 1, rt3, -rt3, -1, -rt3/3, 0]); %! assert (tan (x), v, sqrt (eps ("single"))); -%!error tan () -%!error tan (1, 2) +%!error <Invalid call> tan () */ DEFUN (tanh, args, , @@ -2114,8 +2073,7 @@ %! v = single ([0, 0]); %! assert (tanh (x), v, sqrt (eps ("single"))); -%!error tanh () -%!error tanh (1, 2) +%!error <Invalid call> tanh () */ DEFUNX ("tolower", Ftolower, args, ,
--- a/libinterp/corefcn/max.cc Fri Oct 09 13:28:53 2020 -0700 +++ b/libinterp/corefcn/max.cc Fri Oct 09 13:49:52 2020 -0700 @@ -649,8 +649,7 @@ %! assert (min (2, x), sparse ([1 2 2 2])); %! assert (min (x, 2.1i), sparse ([1 2 2.1i 2.1i])); -%!error min () -%!error min (1, 2, 3, 4) +%!error <Invalid call> min () %!error <DIM must be a valid dimension> min ([1 2; 3 4], [], -3) %!warning <second argument is ignored> min ([1 2 3 4], 2, 2); %!error <wrong type argument 'cell'> min ({1 2 3 4}) @@ -874,8 +873,7 @@ %!assert <*40743> (max (sparse (zeros (1,0)), sparse (ones (1,1))), %! sparse (zeros (1,0))) -%!error max () -%!error max (1, 2, 3, 4) +%!error <Invalid call> max () %!error <DIM must be a valid dimension> max ([1 2; 3 4], [], -3) %!warning <second argument is ignored> max ([1 2 3 4], 2, 2); %!error <wrong type argument 'cell'> max ({1 2 3 4}) @@ -1039,8 +1037,7 @@ %! assert (ndims (iw), 3); %! assert (iw, ones (2,2,2)); -%!error cummin () -%!error cummin (1, 2, 3) +%!error <Invalid call> cummin () */ DEFUN (cummax, args, nargout, @@ -1094,6 +1091,5 @@ %! assert (ndims (iw), 3); %! assert (iw, ones (2,2,2)); -%!error cummax () -%!error cummax (1, 2, 3) +%!error <Invalid call> cummax () */
--- a/libinterp/corefcn/pr-output.cc Fri Oct 09 13:28:53 2020 -0700 +++ b/libinterp/corefcn/pr-output.cc Fri Oct 09 13:49:52 2020 -0700 @@ -3551,8 +3551,7 @@ %! end_unwind_protect ## Test input validation -%!error display () -%!error display (1,2) +%!error <Invalid call> display () */ static inline void
--- a/libinterp/corefcn/psi.cc Fri Oct 09 13:28:53 2020 -0700 +++ b/libinterp/corefcn/psi.cc Fri Oct 09 13:49:52 2020 -0700 @@ -222,8 +222,7 @@ %! endfor ## Test input validation -%!error psi () -%!error psi (1, 2, 3) +%!error <Invalid call> psi () %!error <Z must be> psi ("non numeric") %!error <K must be an integer> psi ({5.3}, 1) %!error <K must be non-negative> psi (-5, 1)
--- a/libinterp/corefcn/qr.cc Fri Oct 09 13:28:53 2020 -0700 +++ b/libinterp/corefcn/qr.cc Fri Oct 09 13:49:52 2020 -0700 @@ -643,7 +643,7 @@ %! assert (qr (zeros (1, 0)), zeros (1, 0)) %! assert (qr (zeros (0, 1)), zeros (0, 1)) -%!error qr () +%!error <Invalid call> qr () %!error qr ([1, 2; 3, 4], 0, 2) %!function retval = __testqr (q, r, a, p) @@ -796,7 +796,7 @@ %! assert (r, re, sqrt (eps ("single"))); %! assert (q'*b, c, sqrt (eps ("single"))); -%!error qr () +%!error <Invalid call> qr () %!error qr ([1, 2; 3, 4], 0, 2) %!test
--- a/libinterp/corefcn/schur.cc Fri Oct 09 13:28:53 2020 -0700 +++ b/libinterp/corefcn/schur.cc Fri Oct 09 13:49:52 2020 -0700 @@ -259,8 +259,7 @@ %! [u, s] = schur (a); %! assert (u' * a * u, s, sqrt (eps ("single"))); -%!error schur () -%!error schur (1,2,3) +%!error <Invalid call> schur () %!error [a,b,c] = schur (1) %!error <must be a square matrix> schur ([1, 2, 3; 4, 5, 6]) %!error <wrong type argument 'cell'> schur ({1})
--- a/libinterp/corefcn/sparse.cc Fri Oct 09 13:28:53 2020 -0700 +++ b/libinterp/corefcn/sparse.cc Fri Oct 09 13:49:52 2020 -0700 @@ -72,8 +72,7 @@ %!assert (issparse (cell (1)), false) ## Test input validation -%!error issparse () -%!error issparse (1,2) +%!error <Invalid call> issparse () */ DEFUN (sparse, args, , @@ -316,9 +315,8 @@ %!assert (spalloc (2,1), sparse (2,1)) %!assert (spalloc (2,1,2), sparse (2,1)) -%!error spalloc () -%!error spalloc (1) -%!error spalloc (1,2,3,4) +%!error <Invalid call> spalloc () +%!error <Invalid call> spalloc (1) %!error <M, N, and NZ must be non-negative> spalloc (-1, 1, 1) %!error <M, N, and NZ must be non-negative> spalloc (1, -1, 1) %!error <M, N, and NZ must be non-negative> spalloc (1, 1, -1)
--- a/libinterp/corefcn/strfind.cc Fri Oct 09 13:28:53 2020 -0700 +++ b/libinterp/corefcn/strfind.cc Fri Oct 09 13:49:52 2020 -0700 @@ -304,8 +304,9 @@ %!assert (strfind ("abc", {"", "b", ""}), {[], 2, []}) %!assert (strfind ({"abc", "def"}, ""), {[], []}) -%!error strfind () -%!error strfind ("foo", "bar", 1) +%!error <Invalid call> strfind () +%!error <Invalid call> strfind ("str1") +%!error <Invalid call> strfind ("foo", "bar", 1) %!error <unknown option: foobar> strfind ("foo", 100, "foobar", 1) %!error <each element of CELLSTR must be a string> strfind ({"A", 1}, "foo") %!error <first argument must be a string> strfind (100, "foo") @@ -503,7 +504,7 @@ %!assert (size (strrep ("a", "a", "")), [0 0]) -%!error strrep () +%!error <Invalid call> strrep () %!error strrep ("A") %!error strrep ("A", "B") %!error strrep ("A", "B", "C", "D")
--- a/libinterp/corefcn/strfns.cc Fri Oct 09 13:28:53 2020 -0700 +++ b/libinterp/corefcn/strfns.cc Fri Oct 09 13:49:52 2020 -0700 @@ -312,7 +312,7 @@ %!assert (ischar (["test"; "ing"]), true) %!assert (ischar (struct ("foo", "bar")), false) -%!error ischar () +%!error <Invalid call> ischar () %!error ischar ("test", 1) */ @@ -607,7 +607,7 @@ %!assert (strcmp ("foobar", "fooBar"), false) %!assert (strcmp ("fooba", "foobar"), false) -%!error strcmp () +%!error <Invalid call> strcmp () %!error strcmp ("foo", "bar", 3) */ @@ -668,7 +668,7 @@ %!assert <*54373> (strncmp ("abc", "abc", 100)) -%!error strncmp () +%!error <Invalid call> strncmp () %!error strncmp ("abc", "def") */ @@ -1189,7 +1189,7 @@ %! result = " abc mnop \n def qrs \n ghijkl tuv \n"; %! assert (list_in_columns (input, 20, " "), result); -%!error list_in_columns () +%!error <Invalid call> list_in_columns () %!error list_in_columns (["abc", "def"], 20, 2) %!error list_in_columns (["abc", "def"], 20, " ", 3) %!error <list_in_columns: WIDTH must be an integer> list_in_columns (["abc", "def"], "a")
--- a/libinterp/corefcn/svd.cc Fri Oct 09 13:28:53 2020 -0700 +++ b/libinterp/corefcn/svd.cc Fri Oct 09 13:49:52 2020 -0700 @@ -377,7 +377,7 @@ %!assert <*55710> (1 / svd (-0), Inf) -%!error svd () +%!error <Invalid call> svd () %!error svd ([1, 2; 4, 5], 2, 3) */
--- a/libinterp/corefcn/sylvester.cc Fri Oct 09 13:28:53 2020 -0700 +++ b/libinterp/corefcn/sylvester.cc Fri Oct 09 13:49:52 2020 -0700 @@ -160,10 +160,9 @@ %!assert (sylvester (single ([1, 2; 3, 4]), single ([5, 6; 7, 8]), single ([9, 10; 11, 12])), single ([1/2, 2/3; 2/3, 1/2]), sqrt (eps ("single"))) ## Test input validation -%!error sylvester () -%!error sylvester (1) -%!error sylvester (1,2) -%!error sylvester (1, 2, 3, 4) +%!error <Invalid call> sylvester () +%!error <Invalid call> sylvester (1) +%!error <Invalid call> sylvester (1,2) %!error <A must be a square matrix> sylvester (ones (2,3), ones (2,2), ones (2,2)) %!error <B must be a square matrix> sylvester (ones (2,2), ones (2,3), ones (2,2)) %!error <nonconformant matrices> sylvester (ones (2,2), ones (2,2), ones (3,3))
--- a/libinterp/corefcn/time.cc Fri Oct 09 13:28:53 2020 -0700 +++ b/libinterp/corefcn/time.cc Fri Oct 09 13:49:52 2020 -0700 @@ -182,8 +182,7 @@ %! assert (isfield (ts, "isdst")); %! assert (isfield (ts, "yday")); -%!error gmtime () -%!error gmtime (1, 2) +%!error <Invalid call> gmtime () */ DEFUN (localtime, args, , @@ -237,8 +236,7 @@ %! assert (isfield (ts, "isdst")); %! assert (isfield (ts, "yday")); -%!error localtime () -%!error localtime (1, 2) +%!error <Invalid call> localtime () */ DEFUN (mktime, args, , @@ -279,9 +277,8 @@ %!assert (datestr (datenum (1901, 1, 1), 0), "01-Jan-1901 00:00:00") %!assert (datestr (datenum (1795, 1, 1), 0), "01-Jan-1795 00:00:00") -%!error mktime () -%!error mktime (1) -%!error mktime (1, 2, 3) +%!error <Invalid call> mktime () +%!error <TM_STRUCT argument must be a structure> mktime (1) %!error mktime (struct ("year", "foo")) */ @@ -462,7 +459,7 @@ %!assert (ischar (strftime ("%c%C%d%e%D%h%j", localtime (time ())))) %!assert (ischar (strftime ("%m%U%w%W%x%y%Y", localtime (time ())))) -%!error strftime () +%!error <Invalid call> strftime () %!error strftime ("foo", 1) %!error strftime ("foo", struct ("year", "foo")) %!error strftime ("foo", localtime (time ()), 1) @@ -509,5 +506,5 @@ %! assert (isfield (ts, "isdst")); %! assert (isfield (ts, "yday")); -%!error strptime () +%!error <Invalid call> strptime () */
--- a/libinterp/corefcn/toplev.cc Fri Oct 09 13:28:53 2020 -0700 +++ b/libinterp/corefcn/toplev.cc Fri Oct 09 13:49:52 2020 -0700 @@ -317,8 +317,7 @@ %! assert (ischar (output)); %! assert (! isempty (output)); -%!error system () -%!error system (1, 2, 3) +%!error <Invalid call> system () */ static octave_value
--- a/libinterp/corefcn/tril.cc Fri Oct 09 13:28:53 2020 -0700 +++ b/libinterp/corefcn/tril.cc Fri Oct 09 13:49:52 2020 -0700 @@ -476,5 +476,5 @@ %!assert (triu (a, -4), um3); %!error tril () -%!error triu () +%!error <Invalid call> triu () */
--- a/libinterp/corefcn/tsearch.cc Fri Oct 09 13:28:53 2020 -0700 +++ b/libinterp/corefcn/tsearch.cc Fri Oct 09 13:49:52 2020 -0700 @@ -173,5 +173,5 @@ %!assert (tsearch (x,y,tri,-1/3, -1/3), 1) %!assert (tsearch (x,y,tri, 1, 1), NaN) -%!error tsearch () +%!error <Invalid call> tsearch () */
--- a/libinterp/corefcn/typecast.cc Fri Oct 09 13:28:53 2020 -0700 +++ b/libinterp/corefcn/typecast.cc Fri Oct 09 13:49:52 2020 -0700 @@ -301,9 +301,8 @@ %!assert (typecast (-inf, "double"), -inf) %!assert (typecast (nan, "double"), nan) -%!error typecast () -%!error typecast (1) -%!error typecast (1, 2, 3) +%!error <Invalid call> typecast () +%!error <Invalid call> typecast (1) %!error typecast (1, "invalid") %!error typecast (int8 (0), "double") */ @@ -451,9 +450,8 @@ %! x([1, 9]) = true; %! assert (bitpack (x, "uint32"), uint32 (257)); -%!error bitpack () -%!error bitpack (1) -%!error bitpack (1, 2, 3) +%!error <Invalid call> bitpack () +%!error <Invalid call> bitpack (1) %!error bitpack (1, "invalid") %!error bitpack (1, "double") %!error bitpack (false, "invalid") @@ -585,7 +583,6 @@ %!assert (bitunpack (complex (single (0))), zeros (1, 64, "logical")) %!assert (bitunpack (complex (double (0))), zeros (1, 128, "logical")) -%!error bitunpack () -%!error bitunpack (1, 2) +%!error <Invalid call> bitunpack () %!error bitunpack ({}) */
--- a/libinterp/corefcn/utils.cc Fri Oct 09 13:28:53 2020 -0700 +++ b/libinterp/corefcn/utils.cc Fri Oct 09 13:49:52 2020 -0700 @@ -127,7 +127,7 @@ %!assert (isvarname (12), false) %!assert (isvarname ("foo+bar"), false) -%!error isvarname () +%!error <Invalid call> isvarname () %!error isvarname ("foo", "bar") */ @@ -241,7 +241,7 @@ %!assert (is_same_file ({pwd(), ".", tempdir()}, canonicalize_file_name (".")), %! [true, true, false]) -%!error is_same_file () +%!error <Invalid call> is_same_file () %!error is_same_file ("foo") %!error is_same_file ("foo", "bar", "baz") %!error <must be strings or cell arrays of strings> is_same_file ("foo", 1) @@ -457,7 +457,7 @@ %! lst = file_in_loadpath ("$$probably_!! _not_&&_a_!! _file$$", "all"); %! assert (lst, {}); -%!error file_in_loadpath () +%!error <Invalid call> file_in_loadpath () %!error file_in_loadpath ("foo", "bar", 1) %!error file_in_loadpath ([]) %!error file_in_loadpath ("plot.m", "bar") @@ -528,7 +528,7 @@ %! lst = file_in_path (path (), "$$probably_!! _not_&&_a_!! _file$$", "all"); %! assert (lst, {}); -%!error file_in_path () +%!error <Invalid call> file_in_path () %!error file_in_path ("foo") %!error file_in_path ("foo", "bar", "baz", 1) %!error file_in_path ([]) @@ -826,7 +826,7 @@ %!assert (do_string_escapes ('A\x4AG'), ["A" char(74) "G"]) %!assert (sprintf ('\x4f\x63\x74\x61\x76\x65'), "Octave") -%!error do_string_escapes () +%!error <Invalid call> do_string_escapes () %!error do_string_escapes ("foo", "bar") %!error <STRING argument> do_string_escapes (3) %!warning <malformed hex escape sequence> do_string_escapes ('\xG'); @@ -949,7 +949,7 @@ %!assert (undo_string_escapes ("\"double-quoted\""), '\"double-quoted\"') %!assert (undo_string_escapes ("\"double-quoted\""), "\\\"double-quoted\\\"") -%!error undo_string_escapes () +%!error <Invalid call> undo_string_escapes () %!error undo_string_escapes ("foo", "bar") %!error undo_string_escapes (3) */ @@ -971,7 +971,7 @@ /* ## FIXME: We need system-dependent tests here. -%!error is_absolute_filename () +%!error <Invalid call> is_absolute_filename () %!error is_absolute_filename ("foo", "bar") */ @@ -992,7 +992,7 @@ /* ## FIXME: We need system-dependent tests here. -%!error is_rooted_relative_filename () +%!error <Invalid call> is_rooted_relative_filename () %!error is_rooted_relative_filename ("foo", "bar") */ @@ -1018,7 +1018,7 @@ /* ## FIXME: We need system-dependent tests here. -%!error make_absolute_filename () +%!error <Invalid call> make_absolute_filename () %!error make_absolute_filename ("foo", "bar") */ @@ -1076,7 +1076,7 @@ %! lst = dir_in_loadpath ("$$probably_!! _not_&&_a_!! _dir$$", "all"); %! assert (lst, {}); -%!error dir_in_loadpath () +%!error <Invalid call> dir_in_loadpath () %!error dir_in_loadpath ("foo", "bar", 1) */ @@ -1539,7 +1539,7 @@ %!assert (isindex (1:3, 2), false) %!assert (isindex ([1, 2, -3]), false) -%!error isindex () +%!error <Invalid call> isindex () %!error isindex (1:3, 2, 3) */
--- a/libinterp/corefcn/variables.cc Fri Oct 09 13:28:53 2020 -0700 +++ b/libinterp/corefcn/variables.cc Fri Oct 09 13:49:52 2020 -0700 @@ -191,7 +191,7 @@ %! assert (isglobal ("x"), true); %! clear -global x; # cleanup after test -%!error isglobal () +%!error <Invalid call> isglobal () %!error isglobal ("a", "b") %!error isglobal (1) */ @@ -505,8 +505,7 @@ %!assert (exist (dirtmp, "dir"), 7) %!assert (exist (dirtmp, "file"), 7) -%!error exist () -%!error exist (1,2,3) +%!error <Invalid call> exist () %!warning <"class" type argument is not implemented> exist ("a", "class"); %!error <TYPE must be a string> exist ("a", 1) %!error <NAME must be a string> exist (1)
--- a/libinterp/dldfcn/gzip.cc Fri Oct 09 13:28:53 2020 -0700 +++ b/libinterp/dldfcn/gzip.cc Fri Oct 09 13:49:52 2020 -0700 @@ -632,7 +632,7 @@ } /* -%!error gzip () +%!error <Invalid call> gzip () %!error gzip ("1", "2", "3") %!error <FILES must be a character array or cellstr|was unavailable or disabled> gzip (1) */
--- a/libinterp/octave-value/ov-class.cc Fri Oct 09 13:28:53 2020 -0700 +++ b/libinterp/octave-value/ov-class.cc Fri Oct 09 13:49:52 2020 -0700 @@ -1783,7 +1783,7 @@ %! assert (class (jobj), "java.lang.StringBuffer"); ## Test Input Validation -%!error class () +%!error <Invalid call> class () */ DEFUN (isa, args, ,
--- a/libinterp/octave-value/ov-fcn-handle.cc Fri Oct 09 13:28:53 2020 -0700 +++ b/libinterp/octave-value/ov-fcn-handle.cc Fri Oct 09 13:49:52 2020 -0700 @@ -3255,8 +3255,7 @@ %!assert (! is_function_handle ({fh})) %!assert (! is_function_handle (1)) -%!error is_function_handle () -%!error is_function_handle (1, 2) +%!error <Invalid call> is_function_handle () */ /*
--- a/libinterp/octave-value/ov.cc Fri Oct 09 13:28:53 2020 -0700 +++ b/libinterp/octave-value/ov.cc Fri Oct 09 13:49:52 2020 -0700 @@ -3523,7 +3523,7 @@ %!assert (is_sq_string (1.0), false) %!assert (is_sq_string ({2.0}), false) -%!error is_sq_string () +%!error <Invalid call> is_sq_string () %!error is_sq_string ('foo', 2) */ @@ -3546,7 +3546,7 @@ %!assert (is_dq_string (1.0), false) %!assert (is_dq_string ({2.0}), false) -%!error is_dq_string () +%!error <Invalid call> is_dq_string () %!error is_dq_string ("foo", 2) */