Skip to content

Commit e9b668c

Browse files
committed
Add an examples check for use of 'dd'
For #1680
1 parent a37ea72 commit e9b668c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

xt/examples-compilation.t

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,10 @@ for @examples -> $eg {
7979
flunk "$eg<file> chunk $eg<count>" ~ ' uses .WHAT: try .^name instead';
8080
next;
8181
}
82+
if ! $eg<ok-test>.contains('dd') && $eg<contents> ~~ / << 'dd' >> / {
83+
flunk "$eg<file> chunk $eg<count>" ~ ' uses dd: try say instead';
84+
next;
85+
}
8286

8387
# Wrap each snippet in a block so it compiles but isn't run on EVAL
8488
# Further wrap in an anonymous class (so bare method works)

0 commit comments

Comments
 (0)