File tree Expand file tree Collapse file tree 3 files changed +22
-3
lines changed Expand file tree Collapse file tree 3 files changed +22
-3
lines changed Original file line number Diff line number Diff line change 1
1
use Test;
2
- plan 284 ;
2
+ plan 291 ;
3
3
4
4
my $pod_index = 0;
5
5
@@ -302,4 +302,11 @@ sub has-where(Int $n where * > 10) {}
302
302
303
303
test-both(&has-where, " where constraints shouldn't" , ' prevent declarative comments' );
304
304
305
+ # | this is
306
+ my $block = {;
307
+ };
308
+ # = a block
309
+
310
+ test-both($block , ' this is' , ' a block' );
311
+
305
312
is $=pod.elems, $pod_index ;
Original file line number Diff line number Diff line change 1
1
use Test;
2
- plan 348 ;
2
+ plan 355 ;
3
3
4
4
my $pod_index = 0;
5
5
@@ -315,4 +315,10 @@ sub has-where(Int $n where * > 10) {}
315
315
316
316
test-leading(&has-where, " where constraints shouldn't prevent declarative comments" );
317
317
318
+ # | this is a block
319
+ my $block = {;
320
+ };
321
+
322
+ test-leading($block , ' this is a block' );
323
+
318
324
is $=pod.elems, $pod_index ;
Original file line number Diff line number Diff line change 1
1
use Test;
2
- plan 341 ;
2
+ plan 348 ;
3
3
4
4
my $pod_index = 0;
5
5
@@ -306,4 +306,10 @@ sub has-where(Int $n where * > 10) {}
306
306
307
307
test-trailing(&has-where, " where constraints shouldn't prevent declarative comments" );
308
308
309
+ my $block = {;
310
+ };
311
+ # = this is a block
312
+
313
+ test-trailing($block , ' this is a block' );
314
+
309
315
is $=pod.elems, $pod_index ;
You can’t perform that action at this time.
0 commit comments