lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [lmi] master a510f95 3/5: Rewrite an empty unit test


From: Greg Chicares
Subject: [lmi-commits] [lmi] master a510f95 3/5: Rewrite an empty unit test
Date: Fri, 5 Oct 2018 20:32:47 -0400 (EDT)

branch: master
commit a510f95bc2023fd62d8569909ee474da7fbae215
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>

    Rewrite an empty unit test
    
    It doesn't actually do anything, but now it does nothing in an exemplary
    way, suitable for cloning when a new unit-test module is to be written.
---
 account_value_test.cpp | 22 +++++++++++++++++-----
 1 file changed, 17 insertions(+), 5 deletions(-)

diff --git a/account_value_test.cpp b/account_value_test.cpp
index 08519c4..960df7a 100644
--- a/account_value_test.cpp
+++ b/account_value_test.cpp
@@ -25,18 +25,30 @@
 
 #include "test_tools.hpp"
 
-struct AccountValueTest
+class account_value_test
 {
-    static void Test();
+  public:
+    static void test()
+        {
+        test0();
+        test1();
+        }
+
+  private:
+    static void test0();
+    static void test1();
 };
 
-void AccountValueTest::Test()
+void account_value_test::test0()
+{
+}
+
+void account_value_test::test1()
 {
 }
 
 int test_main(int, char*[])
 {
-    AccountValueTest::Test();
+    account_value_test::test();
     return EXIT_SUCCESS;
 }
-



reply via email to

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