Mercurial > octave-nkf
comparison 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 |
comparison
equal
deleted
inserted
replaced
18491:477b5916cafe | 18492:e4c319ed2414 |
---|---|
285 | 285 |
286 %!test | 286 %!test |
287 %! a = [97 ... % comment | 287 %! a = [97 ... % comment |
288 %! 'b']; | 288 %! 'b']; |
289 %! assert (a, 'ab'); | 289 %! assert (a, 'ab'); |
290 | |
291 ## Check that a cell array containing function handles is parsed | |
292 ## correctly with or without commas. | |
293 %!test | |
294 %! a = {1, @sin, 2, @cos}; | |
295 %! b = {1 @sin 2 @cos}; | |
296 %! assert (a, b) |