From bc0d73eaf87c65d11b4e00ba0c0dd02ac4ed1c93 Mon Sep 17 00:00:00 2001 From: einhverfr Date: Fri, 27 Oct 2006 21:05:19 +0000 Subject: One more 'Expected nan, got nan' bug fixed git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@345 4979c152-3d1c-0410-bac9-87ea11338e46 --- t/02-number-handling.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 't') diff --git a/t/02-number-handling.t b/t/02-number-handling.t index 8ad787aa..177ce438 100644 --- a/t/02-number-handling.t +++ b/t/02-number-handling.t @@ -117,7 +117,7 @@ foreach my $format (0 .. $#formats) { is($form->parse_amount(\%myconfig, ''), undef, "Empty string returns undef"); - cmp_ok($form->parse_amount(\%myconfig, 'foo'), '==', + cmp_ok($form->parse_amount(\%myconfig, 'foo'), 'eq', Math::BigFloat->bnan(), "Invalid string returns NaN"); } -- cgit v1.2.3