Mercurial > octave
changeset 31083:4dbd8d999b9e stable
test: Add BISTs for __FILE__ and __LINE__ (bug #52587)
author | Arun Giridhar <arungiridhar@gmail.com> |
---|---|
date | Thu, 09 Jun 2022 08:59:55 -0400 |
parents | 4d45392387ec |
children | 037c1e768b56 4b6f03d7264a |
files | libinterp/parse-tree/oct-parse.yy |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libinterp/parse-tree/oct-parse.yy Tue Jun 07 08:05:13 2022 -0400 +++ b/libinterp/parse-tree/oct-parse.yy Thu Jun 09 08:59:55 2022 -0400 @@ -6477,6 +6477,12 @@ %! [a,] = gcd (1,2); %! [a,b,] = gcd (1, 2); +%!test <*62587> +%! assert (ischar (__FILE__)) + +%!test <*62587> +%! assert (isnumeric (__LINE__)) + ## Can't assign to a keyword %!error eval ("switch = 13;")