lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [lmi] master 637f0de 12/14: Reorder unit-test functions


From: Greg Chicares
Subject: [lmi-commits] [lmi] master 637f0de 12/14: Reorder unit-test functions
Date: Thu, 1 Apr 2021 18:15:18 -0400 (EDT)

branch: master
commit 637f0de56db23cc502c5ce03226b865a250eba82
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>

    Reorder unit-test functions
---
 i7702_test.cpp | 32 ++++++++++++++++----------------
 1 file changed, 16 insertions(+), 16 deletions(-)

diff --git a/i7702_test.cpp b/i7702_test.cpp
index 6a3ac94..0c8c6f6 100644
--- a/i7702_test.cpp
+++ b/i7702_test.cpp
@@ -74,22 +74,6 @@ i7702 i7702_test::bland0()
         };
 }
 
-void i7702_test::test0()
-{
-    i7702 z {bland0()};
-    LMI_TEST(materially_equal(0.0032737, z.ig_usual()[0], 0.0000125));
-    LMI_TEST(materially_equal(0.00327373978219886374239, z.ig_usual()[0]));
-
-    std::cout<< std::setprecision(DECIMAL_DIG) << z.ig_usual()[0] << std::endl;
-
-    // Class i7702 is copy- and move-constructible, but not assignable
-    // because of const data members.
-    i7702 x = z;
-    i7702 y = std::move(z);
-//  x = y;            // operator=(i7702 const&) implicitly deleted
-//  x = std::move(y); // operator=(i7702&&)      implicitly deleted
-}
-
 /// Bland initial values, varying by duration; Em rounded up.
 
 i7702 i7702_test::bland1()
@@ -118,6 +102,22 @@ i7702 i7702_test::bland1()
         };
 }
 
+void i7702_test::test0()
+{
+    i7702 z {bland0()};
+    LMI_TEST(materially_equal(0.0032737, z.ig_usual()[0], 0.0000125));
+    LMI_TEST(materially_equal(0.00327373978219886374239, z.ig_usual()[0]));
+
+    std::cout<< std::setprecision(DECIMAL_DIG) << z.ig_usual()[0] << std::endl;
+
+    // Class i7702 is copy- and move-constructible, but not assignable
+    // because of const data members.
+    i7702 x = z;
+    i7702 y = std::move(z);
+//  x = y;            // operator=(i7702 const&) implicitly deleted
+//  x = std::move(y); // operator=(i7702&&)      implicitly deleted
+}
+
 void i7702_test::test1()
 {
     i7702 z {bland1()};



reply via email to

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