Skip to content

Commit e31824c

Browse files
committed
Test Pod::Convenience::pod-block
1 parent 2dbf8d9 commit e31824c

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

t/pod-convenience.t

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,22 @@ subtest {
2121
is($pod.contents[0].contents, $title, "title contents set correctly");
2222
}, "pod-title";
2323

24+
subtest {
25+
plan 5;
26+
my $pod = pod-block('');
27+
isa_ok($pod, Pod::Block::Para);
28+
ok(pod-block(), "empty argument ok");
29+
30+
$pod = pod-block("hello");
31+
is($pod.contents, "hello", "simple contents match input");
32+
33+
$pod = pod-block("hello", "there");
34+
is($pod.contents, "hello there", "multi-argument input");
35+
36+
$pod = pod-block(qw{hello there world});
37+
is($pod.contents, 'hello there world', "array argument input");
38+
}, "pod-block";
39+
2440
done;
2541

2642
# vim: expandtab shiftwidth=4 ft=perl6

0 commit comments

Comments
 (0)