From: Timo Paulssen Date: Sun, 1 May 2011 00:37:18 +0000 (+0200) Subject: added test cases for heredoc and triple-single. X-Git-Tag: 3.20110431~112 X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/commitdiff_plain/8e120bf7182e93f27d4afa446193986e6309b485 added test cases for heredoc and triple-single. --- diff --git a/t/preprocess.t b/t/preprocess.t index 4a140bb61..2211e8471 100755 --- a/t/preprocess.t +++ b/t/preprocess.t @@ -1,7 +1,7 @@ #!/usr/bin/perl use warnings; use strict; -use Test::More tests => 33; +use Test::More tests => 34; BEGIN { use_ok("IkiWiki"); } @@ -67,15 +67,17 @@ is(IkiWiki::preprocess("foo", "foo", $long, 0, 0), $long, is(IkiWiki::preprocess("foo", "foo", $long."]]", 0, 0), $long."]]", "unterminated triple-quoted string is not treated as a bare word"); -is(IkiWiki::preprocess("foo", "foo", "[[!foo a=< $multiline)", "heredoc for key"); -is(IkiWiki::preprocess("foo", "foo", "[[!foo < $multiline)", "nested strings via heredoc (for key)"); +is(IkiWiki::preprocess("foo", "foo", "[[!foo < $multiline)", "nested multiline strings"); + "foo(a => $multiline)", "nested multiline strings"); }