6 sub callme ($) : assertion {
13 print STDERR "assertions called by default";
16 print "ok ", $i++, "\n";
19 use assertions::activate 'mine';
22 sub callme ($) : assertion {
27 print STDERR "'use assertions;' doesn't active assertions based on package name";
31 print "ok ", $i++, "\n";
36 print STDERR "assertion deselection doesn't work";
39 print "ok ", $i++, "\n";
42 use assertions::activate 'bar', 'doz';
45 print STDERR "assertion selection doesn't work";
48 print "ok ", $i++, "\n";
51 use assertions '&', 'doz';
53 print STDERR "assertion activation filtering doesn't work";
56 print "ok ", $i++, "\n";
59 use assertions '&', 'foo';
61 print STDERR "assertion deactivation filtering doesn't work";
64 print "ok ", $i++, "\n";
71 print STDERR "assertion scoping doesn't work";
74 print "ok ", $i++, "\n";
77 use assertions::activate 're.*';
78 use assertions 'reassert';
80 print STDERR "assertion selection with re failed";
83 print "ok ", $i++, "\n";
91 print STDERR "this shouldn't fail ever (b=$b)";
95 print "ok ", $i++, "\n";
102 print STDERR "lexical declaration in assertion arg ignored";
106 print "ok ", $i++, "\n";