X-Git-Url: http://git.tremily.us/?a=blobdiff_plain;f=t%2Fpreprocess.t;h=2211e8471dce0b3dad7a54d0a19e2562a3637596;hb=64e09f9968c5db26aef7bfdd70bde7c86c8fa144;hp=7bb9878d0fdbfd16d2db04af6190bf11209c50c2;hpb=9f401d6617a11efcedda1c956b2ccea061a7540f;p=ikiwiki.git diff --git a/t/preprocess.t b/t/preprocess.t index 7bb9878d0..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 => 31; +use Test::More tests => 34; BEGIN { use_ok("IkiWiki"); } @@ -67,10 +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)", "nested strings via heredoc (for key)"); +is(IkiWiki::preprocess("foo", "foo", "[[!foo < $multiline)", "nested multiline strings"); + "foo(a => $multiline)", "nested multiline strings"); }