lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [lmi] master 6362631 4/7: Remove needless census-pastable


From: Greg Chicares
Subject: [lmi-commits] [lmi] master 6362631 4/7: Remove needless census-pastable unit tests
Date: Fri, 24 Feb 2017 15:22:53 -0500 (EST)

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

    Remove needless census-pastable unit tests
    
    Payment mode is a keyword-only field. Specified amount optionally
    accepts keywords. Only one is wanted for a census-pastable counterpart
    to each unit test; some strings were accordingly moved or removed.
---
 input_sequence_test.cpp | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/input_sequence_test.cpp b/input_sequence_test.cpp
index 5b4c19f..72fa684 100644
--- a/input_sequence_test.cpp
+++ b/input_sequence_test.cpp
@@ -413,11 +413,12 @@ int test_main(int, char*[])
     strvec const c      {"p", "p", "rrr", "rrr", "q", "q", "q", "q", "q"};
     double const d[n] = { 0 ,  0 ,   0  ,   0  ,  0 ,  0 ,  0 ,  0 ,  0 };
     std::string const e("p[0, 2); rrr [2, 4);q[4, 6);");
-    census += "glp[0, 2); target [2, 4);gsp[4, 6);\tannual[0, 2); quarterly 
[2, 4);monthly[4, 6);\t\t\n";
+    census += "glp[0, 2); target [2, 4);gsp[4, 6);\t\t\t\n";
     std::string const g("p [0, 2); rrr [2, 4); q [4, maturity)");
     strvec const k{"not_used", "p", "q", "r", "rr", "rrr"};
     check(__FILE__, __LINE__, n, d, e, g, "", k, c);
     // Toggle keywords-only switch on: same result.
+    census += "\tannual[0, 2); quarterly [2, 4);monthly[4, 6);\t\t\n";
     bool const o = true;
     check(__FILE__, __LINE__, n, d, e, g, "", k, c, o);
     // Toggle keywords-only switch explicitly off: same result.
@@ -536,7 +537,7 @@ int test_main(int, char*[])
     strvec const c      {"z", "q", "q", "p", "p"};
     double const d[n] = { 0 ,  0 ,  0 ,  0 ,  0 };
     std::string const e("q [1, 3); p [3, maturity)");
-    census += "sevenpay [1, 3); glp [3, maturity)\tquarterly [1, 3); monthly 
[3, maturity)\t\t\n";
+    census += "\tquarterly [1, 3); monthly [3, maturity)\t\t\n";
     std::string const g("z [0, 1); q [1, 3); p [3, maturity)");
     strvec const k{"p", "q", "z"};
     bool const o = true;
@@ -554,7 +555,7 @@ int test_main(int, char*[])
     strvec const c      {"", "q", "q", "p", "p"};
     double const d[n] = { 0 ,  0 ,  0 ,  0 ,  0 };
     std::string const e("q [1, 3); p [3, maturity)");
-    census += "sevenpay [1, 3); glp [3, maturity)\tquarterly [1, 3); monthly 
[3, maturity)\t\t\n";
+    census += "sevenpay [1, 3); glp [3, maturity)\t\t\t\n";
     std::string const g("0 [0, 1); q [1, 3); p [3, maturity)");
     strvec const k{"p", "q", "z"};
     check(__FILE__, __LINE__, n, d, e, g, "", k, c);



reply via email to

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