@@ -, +, @@ Failed test 'There can be more decimals when the column size allows it.' at t/db_dependent/TestBuilder.t line 101. got: '67631.42' expected: '67631.420000' Looks like you failed 1 test of 4. --- t/db_dependent/TestBuilder.t | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) --- a/t/db_dependent/TestBuilder.t +++ a/t/db_dependent/TestBuilder.t @@ -84,7 +84,7 @@ subtest 'Build all sources' => sub { subtest 'Test length of some generated fields' => sub { - plan tests => 3; + plan tests => 4; # Test the length of a returned character field my $bookseller = $builder->build({ source => 'Aqbookseller' }); @@ -96,6 +96,11 @@ subtest 'Test length of some generated fields' => sub { my $item = $builder->build({ source => 'Item' }); is( $item->{replacementprice}, sprintf("%.2f", $item->{replacementprice}), "The number of decimals for floats should not be more than 2" ); + my $accountline = $builder->build({ source => 'Accountline' }); + is( $accountline->{amountoutstanding}, + sprintf("%.6f", $accountline->{amountoutstanding}), + "There can be more decimals when the column size allows it." ); + }; --