Mercurial > octave-nkf
changeset 17668:171e958d672e
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.
author | Rik <rik@octave.org> |
---|---|
date | Wed, 16 Oct 2013 12:16:08 -0700 |
parents | 243116aa0e44 |
children | b7670c05731b |
files | test/line-continue.tst |
diffstat | 1 files changed, 10 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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