8 print( ($ok ? '' : 'not '), "ok $i", (@_ ? " - @_" : ''), "\n");
15 use base 'assertions::compat';
16 ok(eval "sub assert_foo : assertion { 0 } ; 1", "handle assertion attribute");
18 use assertions::activate 'Foo';
21 use assertions::compat asserting_2 => 'Foo';
22 ok(asserting_2, 'on');
25 use assertions::compat asserting_3 => 'Bar';
26 ok(!asserting_3, 'off');
29 use assertions::compat asserting_4 => '_ || Bar';
30 ok(!asserting_4, 'current off or off');
33 use assertions::compat asserting_5 => '_ || Foo';
34 ok(asserting_5, 'current off or on');
37 use assertions::compat asserting_6 => '_ || Bar';
38 ok(asserting_6, 'current on or off');
41 use assertions::compat asserting_7 => '_ && Foo';
42 ok(asserting_7, 'current on and on');