From: Timo Paulssen Date: Sun, 1 May 2011 00:04:36 +0000 (+0200) Subject: simple tests for heredoc. X-Git-Tag: 3.20110431~113 X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/commitdiff_plain/505439cc0abe814a9dffd24224b8b660db0d3624?hp=635f5284671b5f97531155ac004663c9a180a2d4 simple tests for heredoc. --- diff --git a/t/preprocess.t b/t/preprocess.t index 7bb9878d0..4a140bb61 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 => 33; BEGIN { use_ok("IkiWiki"); } @@ -67,6 +67,11 @@ 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 <