From 45d9674323d8828c71a807ba5d23173868dea298 Mon Sep 17 00:00:00 2001 From: einhverfr Date: Fri, 27 Oct 2006 20:52:52 +0000 Subject: Corrected bug in nan comparison in test suite git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@343 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 0a6b43dc..8ad787aa 100644 --- a/t/02-number-handling.t +++ b/t/02-number-handling.t @@ -158,6 +158,6 @@ 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