# HG changeset patch # User John W. Eaton # Date 1364068545 14400 # Node ID b9e510a1f308ecbc9639e1e4aa52457cffaf86c9 # Parent e1dcd834751f3536c4e9de8a692389b3d2ef1679 new test for command syntax * test/bug-38565.tst: New file. diff -r e1dcd834751f -r b9e510a1f308 test/bug-38565.tst --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test/bug-38565.tst Sat Mar 23 15:55:45 2013 -0400 @@ -0,0 +1,9 @@ +%!function r = f (x) +%! if (ischar (x)) +%! r = x; +%! else +%! error ("expecting character string"); +%! endif +%!endfunction + +%!assert (eval ("f 10;"), "10");