# HG changeset patch # User John W. Eaton # Date 1289344874 18000 # Node ID 0910020c5ab68711b3f377ab884ace34a6c0338e # Parent 521373e25613f587fdf0debd8402fc4263d2ff5c add omitted file from previous change diff -r 521373e25613 -r 0910020c5ab6 test/test_parser.m --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test/test_parser.m Tue Nov 09 18:21:14 2010 -0500 @@ -0,0 +1,29 @@ +## Copyright (C) 2010 John W. Eaton +## +## This file is part of Octave. +## +## Octave is free software; you can redistribute it and/or modify it +## under the terms of the GNU General Public License as published by +## the Free Software Foundation; either version 3 of the License, or (at +## your option) any later version. +## +## Octave is distributed in the hope that it will be useful, but +## WITHOUT ANY WARRANTY; without even the implied warranty of +## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +## General Public License for more details. +## +## You should have received a copy of the GNU General Public License +## along with Octave; see the file COPYING. If not, see +## . + +## Tests for parser problems belong in this file. We need many more +## tests here! + +%!assert ({1 2 {3 4}}, {1,2,{3,4}}) +%!assert ({1, 2 {3 4}}, {1,2,{3,4}}) +%!assert ({1 2, {3 4}}, {1,2,{3,4}}) +%!assert ({1 2 {3, 4}}, {1,2,{3,4}}) +%!assert ({1, 2, {3 4}}, {1,2,{3,4}}) +%!assert ({1 2,{3 4}}, {1,2,{3,4}}) +%!assert ({1 2,{3,4}}, {1,2,{3,4}}) +%!assert ({1,2,{3 4}}, {1,2,{3,4}})