lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [lmi] master 06a09a1 1/5: Augment unit test


From: Greg Chicares
Subject: [lmi-commits] [lmi] master 06a09a1 1/5: Augment unit test
Date: Sat, 6 Oct 2018 16:59:47 -0400 (EDT)

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

    Augment unit test
---
 ledger_test.cpp | 18 +++++++++++-------
 1 file changed, 11 insertions(+), 7 deletions(-)

diff --git a/ledger_test.cpp b/ledger_test.cpp
index 641356e..43cbc7a 100644
--- a/ledger_test.cpp
+++ b/ledger_test.cpp
@@ -27,27 +27,31 @@
 
 #include "test_tools.hpp"
 
-//#define SUPPRESSED_FOR_LEDGER_TEST 1
-
-//class BasicValues;
-//void LedgerInvariant::Init(BasicValues const*) {}
+void authenticate_system() {} // Do-nothing stub.
 
 class ledger_test
 {
   public:
     static void test()
         {
-        test0();
+        test_default_initialization();
         test1();
         }
 
   private:
-    static void test0();
+    static void test_default_initialization();
     static void test1();
 };
 
-void ledger_test::test0()
+void ledger_test::test_default_initialization()
 {
+    Ledger ledger(100, mce_finra, false, false, false);
+
+    BOOST_TEST_EQUAL(mce_finra, ledger.ledger_type());
+    BOOST_TEST_EQUAL(false    , ledger.nonillustrated());
+    BOOST_TEST_EQUAL(false    , ledger.no_can_issue());
+    BOOST_TEST_EQUAL(false    , ledger.is_composite());
+    BOOST_TEST_EQUAL(100      , ledger.greatest_lapse_dur());
 }
 
 void ledger_test::test1()



reply via email to

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