Mercurial > jwe > octave
changeset 26765:c4e53014f248
* ismethod.m: New tests.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 21 Feb 2019 18:56:32 +0000 |
parents | 8554becefe1b |
children | 12fe42e16841 |
files | scripts/miscellaneous/ismethod.m |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/miscellaneous/ismethod.m Thu Feb 21 18:41:15 2019 +0000 +++ b/scripts/miscellaneous/ismethod.m Thu Feb 21 18:56:32 2019 +0000 @@ -43,3 +43,7 @@ retval = ismember (method, method_list); endfunction + +%!assert (ismethod (javaObject ("java.lang.String", "Yo"), "hashCode")) +%!assert (ismethod (ftp (), "ascii")) +%!assert (ismethod (inputParser (), "addRequired"))