Mercurial > octave-nkf
diff test/parser.tst @ 18492:e4c319ed2414 stable
Fix regression, allow space-separated cell array of function handles (bug #41569)
* lex.ll ("@"): Unput comma before function handle when after whitespace in
an array context.
* parser.tst: New test case.
author | Mike Miller <mtmiller@ieee.org> |
---|---|
date | Thu, 20 Feb 2014 09:24:59 -0500 |
parents | 1f072ae35ede |
children | e5a78897be9e |
line wrap: on
line diff
--- a/test/parser.tst Thu Feb 20 00:44:14 2014 -0500 +++ b/test/parser.tst Thu Feb 20 09:24:59 2014 -0500 @@ -287,3 +287,10 @@ %! a = [97 ... % comment %! 'b']; %! assert (a, 'ab'); + +## Check that a cell array containing function handles is parsed +## correctly with or without commas. +%!test +%! a = {1, @sin, 2, @cos}; +%! b = {1 @sin 2 @cos}; +%! assert (a, b)