We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2dbf8d9 commit e31824cCopy full SHA for e31824c
t/pod-convenience.t
@@ -21,6 +21,22 @@ subtest {
21
is($pod.contents[0].contents, $title, "title contents set correctly");
22
}, "pod-title";
23
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
40
done;
41
42
# vim: expandtab shiftwidth=4 ft=perl6
0 commit comments