t/30any.t
raw| 1 | #!/usr/bin/perl |
| 2 | |
| 3 | use v5.14; |
| 4 | use warnings; |
| 5 | |
| 6 | use Test2::V0; |
| 7 | |
| 8 | use lib "t"; |
| 9 | use testcase "t::any"; |
| 10 | |
| 11 | BEGIN { $^H{"t::any/func"}++ } |
| 12 | |
| 13 | our $LOG; BEGIN { $LOG = "" }; |
| 14 | |
| 15 | prefixed func example { |
| 16 | BEGIN { $LOG .= "B" } |
| 17 | } |
| 18 | |
| 19 | is( $LOG, "SpSfEpEfBLfLpNpNf", 'stages run in correct order' ); |
| 20 | |
| 21 | done_testing; |