Mercurial > octave
diff test/parser.tst @ 23788:c94e9509461b
restore parse tree dup function delete in changeset 214cb58ccc1c
* pt-assign.cc (tree_simple_assignment::dup): Restore function deleted
in changeset 214cb58ccc1c.
* parser.tst: New test.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Mon, 24 Jul 2017 08:55:33 -0400 |
parents | 092078913d54 |
children | 648616b26cc6 |
line wrap: on
line diff
--- a/test/parser.tst Sun Jul 23 21:34:22 2017 -0700 +++ b/test/parser.tst Mon Jul 24 08:55:33 2017 -0400 @@ -326,3 +326,8 @@ ## Maybe unnecessary, but check that further changes to parser don't ## invalidate error handling (bug #46534). #!error <vertical dimensions mismatch \(1x2 vs 1x1\)> z = [1, 2; 3] + +%!test +%! f = @(s,t=toeplitz(s),u=t(x=2:end-1,x)=32)t; +%! assert (f (1), 1); +%! assert (f (1, 2), 2);