Hi Adriano, * Adriano Ferreira <[EMAIL PROTECTED]> [2006-07-21 15:20]: > If I run this script > > use Test::More; > > plan tests => 2; > > BEGIN { use_ok( 'My', 'foo' ); } > > ok(1); > is(foo, 1); > > I got the output, which says nothing about the use_ok. It is > not counted as a test, it does not ruin the plan, it does its > job (requiring and importing a &foo subroutine).
I assume it’s because, despite the order in the file, the BEGIN block runs before the `plan tests => 2` line. Sure looks like a bug. Regards, -- Aristotle Pagaltzis // <http://plasmasturm.org/>