lmi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi-commits] [lmi] valyuta/002 97e9057 21/21: Fix a unit test


From: Greg Chicares
Subject: [lmi-commits] [lmi] valyuta/002 97e9057 21/21: Fix a unit test
Date: Fri, 18 Sep 2020 21:53:50 -0400 (EDT)

branch: valyuta/002
commit 97e905717703582a84936b2b0fb68c98974cacb9
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>

    Fix a unit test
---
 round_to_test.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/round_to_test.cpp b/round_to_test.cpp
index 48aa675..0fa70b6 100644
--- a/round_to_test.cpp
+++ b/round_to_test.cpp
@@ -546,7 +546,7 @@ int test_main(int, char*[])
 
     // Test rounding double to currency.
     currency c = round0.c(1.61803398875);
-    BOOST_TEST((1.62 - c) < 1e-14);
+    BOOST_TEST((1.62 - c.d()) < 1e-14);
     BOOST_TEST_EQUAL(162, c.m());
 //  c *= 0.61803398875;
 //  BOOST_TEST_EQUAL(1, c);



reply via email to

[Prev in Thread] Current Thread [Next in Thread]