Skip to content

Commit 77350e6

Browse files
committed
Update tests of exceptions for pp_ctl
1 parent 4c44852 commit 77350e6

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

t/lib/croak/pp_ctl

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,20 @@
11
__END__
22
# NAME goto into foreach
3-
no warnings 'deprecated';
43
goto f;
54
foreach(1){f:}
65
EXPECT
7-
Can't "goto" into the middle of a foreach loop at - line 3.
6+
Use of "goto" to jump into a construct is no longer permitted at - line 1.
87
########
98
# NAME goto into given
10-
no warnings 'deprecated';
119
goto f;
1210
CORE::given(1){f:}
1311
EXPECT
14-
Can't "goto" into a "given" block at - line 3.
12+
Use of "goto" to jump into a construct is no longer permitted at - line 1.
1513
########
1614
# NAME goto from given topic expression
17-
no warnings 'deprecated';
1815
CORE::given(goto f){f:}
1916
EXPECT
20-
Can't "goto" into a "given" block at - line 2.
17+
Use of "goto" to jump into a construct is no longer permitted at - line 1.
2118
########
2219
# NAME goto into expression
2320
no warnings 'deprecated';

0 commit comments

Comments
 (0)