# HG changeset patch # User Rik # Date 1381950968 25200 # Node ID 171e958d672ed9fac632e3926aa11b58f0b6620a # Parent 243116aa0e44e25ab462ff6cb8f2f137b4a19f3f line-continue.tst: Add tests for '\' used in strings. * test/line-continue.tst: Add tests for '\' used in strings. Add note about removing tests for '\' as a line continuation because it is now deprecated. diff -r 243116aa0e44 -r 171e958d672e test/line-continue.tst --- a/test/line-continue.tst Wed Oct 16 20:29:28 2013 +0200 +++ b/test/line-continue.tst Wed Oct 16 12:16:08 2013 -0700 @@ -26,6 +26,9 @@ %! b]; %! assert (y, x); +## FIXME: Next 3 tests use '\' continuation outside of a double-quoted string +## This behavior is deprecated and will be removed at some point. +## When it does these %!test %! x = [1;2]; %! y = [a... # comments here ok @@ -51,6 +54,13 @@ %! %!assert (f (), 1) +# String continuation using '\' +%!assert (["abc\ +%! def"], "abc def") + +%!assert (['abc\ +%! def'], "abc def") + %!test %!assert (1 == 1 %! && 2 == 2