t2/ending.t
raw| 1 | # HARNESS-DURATION-SHORT |
| 2 | package FooBarBaz; |
| 3 | use strict; |
| 4 | use warnings; |
| 5 | |
| 6 | use Test2::V0; |
| 7 | |
| 8 | open(my $fh, '<', __FILE__) or die "Could not open this file!: $!"; |
| 9 | my @end = <$fh>; |
| 10 | close($fh); |
| 11 | |
| 12 | is($end[-1], 'done_testing', "no semicolon or newline is present at the end of this file"); |
| 13 | |
| 14 | done_testing |