Mercurial > octave
changeset 33286:b7702e35cbef
maint: merge stable to default
author | Rik <rik@octave.org> |
---|---|
date | Mon, 01 Apr 2024 10:19:23 -0700 |
parents | f9e4e87a0f4a (current diff) aacbcf3cbc6a (diff) |
children | 1db14e08bee4 |
files | |
diffstat | 1 files changed, 11 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/io/is_valid_file_id.m Mon Apr 01 12:55:56 2024 -0400 +++ b/scripts/io/is_valid_file_id.m Mon Apr 01 10:19:23 2024 -0700 @@ -52,3 +52,14 @@ %!assert (! is_valid_file_id ("not_a_file_id")) %!assert (! is_valid_file_id (-1)) %!assert (! is_valid_file_id (pi)) +%!test <*65543> +%! unwind_protect +%! fid = tmpfile (); +%! assert (is_valid_file_id (fid)); +%! unwind_protect_cleanup +%! fclose (fid); +%! end_unwind_protect + +## Test input validation +%!error <Invalid call> is_valid_file_id () +