Subject: | [PATCH] Rounding bug in test 18 of t/08create_function.t |
1.1 isn't 1.1 in floating point hardware, so the last test fails.
1.0625 is the closest float I could think of that passes the test.
- $result = $dbh->selectrow_arrayref( "SELECT noop(1.1)" );
+ $result = $dbh->selectrow_arrayref( "SELECT noop(1.0625)" );
print "XX ", $result->[0], "\n";
- ok( $result && $result->[0] == 1.1 );
+ ok( $result && $result->[0] == 1.0625 );
Enjoy...