File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ class Example is export {
10
10
has $ . subcategory is rw ;
11
11
has $ . filename is rw ;
12
12
has $ . pod-link is rw ;
13
+ has $ . pod-contents is rw ;
13
14
}
14
15
15
16
# vim: expandtab shiftwidth=4 ft=perl6
Original file line number Diff line number Diff line change @@ -20,12 +20,13 @@ subtest {
20
20
subcategory => " " ,
21
21
filename => " " ,
22
22
pod-link => " " ,
23
+ pod-contents => " " ,
23
24
);
24
25
ok ($ example , " Instantiation setting all attributes" );
25
26
}, " Object instantiation" ;
26
27
27
28
subtest {
28
- plan 6 ;
29
+ plan 7 ;
29
30
30
31
my $ example = Example. new ;
31
32
$ example . title = " my title" ;
@@ -46,6 +47,9 @@ subtest {
46
47
$ example . pod-link = " /just/a/plain/link.html" ;
47
48
is ($ example . pod-link, " /just/a/plain/link.html" , " Can set pod-link attribute" );
48
49
50
+ $ example . pod-contents = Pod ::Block. new ;
51
+ ok ($ example . pod-contents ~~ Pod ::Block, " pod-contents is a Pod::Block" );
52
+
49
53
}, " Attribute setting" ;
50
54
51
55
# vim: expandtab shiftwidth=4 ft=perl6
You can’t perform that action at this time.
0 commit comments