lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [lmi] valyuta/005 c0a93cf 03/10: Reorder currency unit tes


From: Greg Chicares
Subject: [lmi-commits] [lmi] valyuta/005 c0a93cf 03/10: Reorder currency unit tests
Date: Thu, 21 Jan 2021 17:48:15 -0500 (EST)

branch: valyuta/005
commit c0a93cfcca6f428b2503ff1a8c9e342cc4bf4ff4
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>

    Reorder currency unit tests
    
    Arranged ctor tests in ctor declaration order.
---
 currency_test.cpp | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/currency_test.cpp b/currency_test.cpp
index 18a7da1..54112f4 100644
--- a/currency_test.cpp
+++ b/currency_test.cpp
@@ -42,8 +42,8 @@ class currency_test
   private:
     static void test_something();
     static void test_default_ctor();
-    static void test_explicit_ctor();
     static void test_copy_ctor();
+    static void test_explicit_ctor();
     static void test_negation();
     static void test_plus_or_minus_eq();
     static void test_plus_or_minus();
@@ -62,8 +62,8 @@ void currency_test::test()
 {
     test_something();
     test_default_ctor();
-    test_explicit_ctor();
     test_copy_ctor();
+    test_explicit_ctor();
     test_negation();
     test_plus_or_minus_eq();
     test_plus_or_minus();
@@ -88,12 +88,6 @@ void currency_test::test_default_ctor()
     BOOST_TEST(   0 == a0.m_);
 }
 
-void currency_test::test_explicit_ctor()
-{
-    currency const a1(325, raw_cents{});
-    BOOST_TEST_EQUAL( 325, a1.m_);
-}
-
 void currency_test::test_copy_ctor()
 {
     currency const a1(325, raw_cents{});
@@ -103,6 +97,12 @@ void currency_test::test_copy_ctor()
     BOOST_TEST_EQUAL( 325, copy1.m_);
 }
 
+void currency_test::test_explicit_ctor()
+{
+    currency const a1(325, raw_cents{});
+    BOOST_TEST_EQUAL( 325, a1.m_);
+}
+
 void currency_test::test_negation()
 {
     currency const a1(321, raw_cents{});



reply via email to

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