Which testing module is being used? Test behave the way you are expecting, but Test::More and Test::Simple expect the first argument to be either true or false and the second (optional) argument to be a name for the test.
My guess is that h2xs has the test harness using Test::More. | [reply] [d/l] [select] |
You're right!
I had an old h2xs that "use Test". The current h2xs "use Test::More". That's a gotcha.
Thanks Again,
Earl
| [reply] |
First, don't use Test. Use Test::More. Test's ok() function is horrifyingly bad.
- ok($x) means "Make sure $x is true"
- ok($x,$y) means "Make sure $x is equal to $y"
- ok($x,/$z/) means "Make sure $x matches /$z/"
This means that you can NOT just change "use Test" to "use Test::More".
Second, don't use h2xs any more. Use Module::Starter.
| [reply] |