Subject: | DBI-1.54 42prof_data Failed test |
Windows XP SP2, perl 5.8.8
For DBI-1.54 I was failing like this:
t\42prof_data.............NOK 11/33# Failed test in t\42prof_data.t at
line 63.
# '0.000000'
# <
# '0.000000'
# Looks like you failed 1 test of 33.
I went into 42prof_data.t and changed
cmp_ok( $nodes->[0][4], '<', $longest );
to
if ( ($nodes->[0][4] == 0.0) and ($longest == 0.0) ) {
cmp_ok( $nodes->[0][4], '=', $longest);
} else {
cmp_ok( $nodes->[0][4], '<', $longest );
}
which of course made the test pass. It looks like maybe I did the right
thing, but maybe this was a very bad thing to do. After all, maybe one
or maybe even neither value should ever be zero!
Any advice would be appreciated.
Thanks