[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;
}
-
- [lmi-commits] [lmi] master updated (36ab1d5 -> 081bb55), Greg Chicares, 2018/10/05
- [lmi-commits] [lmi] master 75ce7bd 2/5: Replace operator() with value() for clarity, Greg Chicares, 2018/10/05
- [lmi-commits] [lmi] master 081bb55 5/5: Add a ledger unit test, Greg Chicares, 2018/10/05
- [lmi-commits] [lmi] master a510f95 3/5: Rewrite an empty unit test,
Greg Chicares <=
- [lmi-commits] [lmi] master 276c4ff 1/5: In TSV, show scalars' names and values in two columns only, Greg Chicares, 2018/10/05
- [lmi-commits] [lmi] master 72a51b5 4/5: Improve physical separation of concerns, Greg Chicares, 2018/10/05