lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [lmi] valyuta/002 331e748 18/21: Unbreak a unit test


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

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

    Unbreak a unit test
    
    Try compiling this unit test without this change, to see the reason
    for the extra, ignored bool argument.
---
 currency_test.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/currency_test.cpp b/currency_test.cpp
index a39f2ec..f519c64 100644
--- a/currency_test.cpp
+++ b/currency_test.cpp
@@ -108,7 +108,7 @@ std::cout << "int4: " << big_int4 << std::endl;
 //std::cout << 100.0 * too_big << std::endl;
 
     BOOST_TEST_THROW
-        (currency(bourn_cast<currency::data_type>(too_big))
+        (currency(bourn_cast<currency::data_type>(too_big), true)
         ,std::runtime_error
         ,"Cast would transgress upper limit."
         );



reply via email to

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