lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [lmi] valyuta/002 0cd4c10 27/65: There can be no operator*


From: Greg Chicares
Subject: [lmi-commits] [lmi] valyuta/002 0cd4c10 27/65: There can be no operator*
Date: Wed, 16 Sep 2020 16:55:16 -0400 (EDT)

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

    There can be no operator*
    
    Because $3 * $5 is not fifteen square dollars.
---
 currency_test.cpp | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/currency_test.cpp b/currency_test.cpp
index 02abc25..2b165a0 100644
--- a/currency_test.cpp
+++ b/currency_test.cpp
@@ -54,15 +54,9 @@ void currency_test::test_something()
     currency a1(3.25);
     BOOST_TEST(3.25 == a1.d());
     BOOST_TEST( 325 == a1.m_);
-    BOOST_TEST(   0 == a1 * a0);
     a1 += a1;
     BOOST_TEST(6.50 == a1.d());
     BOOST_TEST( 650 == a1.m_);
-    a1 *= a0;
-    BOOST_TEST(0.00 == a1.d());
-    BOOST_TEST(   0 == a1.m_);
-// Not sure what this should do, if anything, but it prints "6.5".
-std::cout << a1 << std::endl;
 
     currency a2 = currency(0.0) - a1;
     BOOST_TEST(-6.50 == a2.d());



reply via email to

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