Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 25 lines (19 sloc) 0.536 kb
76e6fbd [t] move closure_traits/* to spec/
moritz authored
1 use v6;
2
3 use Test;
4
8f9a119 [t/] unify compartmentalized undef and Object concepts into Mu
lwall authored
5 # $failed is set to 0 (actually to Mu) at compiletime.
76e6fbd [t] move closure_traits/* to spec/
moritz authored
6 my $failed;
7 # At run time, if we ever reach runtime, $failed is set to 1.
8 $failed = 1;
9
10 # When we end, we check if $failed is still 0. If yes, we've never reached runtime.
11 END {
2544bcf Jeff Horelick Remove most remaining .notdef's.
jdhore authored
12 nok $failed.defined,
76e6fbd [t] move closure_traits/* to spec/
moritz authored
13 'exit() works in BEGIN {} - $fail not yet initialized at END time';
14 }
15
16 BEGIN {
17 # Output the TAP header...
18 plan 2;
2544bcf Jeff Horelick Remove most remaining .notdef's.
jdhore authored
19 nok $failed.defined, '$failed not yet initialized in BEGIN {}';
76e6fbd [t] move closure_traits/* to spec/
moritz authored
20 # ...and exit, implicitly calling END.
21 exit;
22 }
7f29bc5 [t/spec] Add vim: lines everywhere.
kyle authored
23
24 # vim: ft=perl6
Something went wrong with that request. Please try again.