[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);
- [lmi-commits] [lmi] master updated (5753253 -> ce2981d), Greg Chicares, 2017/02/24
- [lmi-commits] [lmi] master a736dc8 2/7: Do not paste certain invalid unit tests to census, Greg Chicares, 2017/02/24
- [lmi-commits] [lmi] master e220da9 1/7: Correct some unit-test expectations, Greg Chicares, 2017/02/24
- [lmi-commits] [lmi] master f2c8ba0 5/7: Remove a comment that is no longer relevant, Greg Chicares, 2017/02/24
- [lmi-commits] [lmi] master b04be04 3/7: Remove obsolete comments from census-pastable unit tests, Greg Chicares, 2017/02/24
- [lmi-commits] [lmi] master 6362631 4/7: Remove needless census-pastable unit tests,
Greg Chicares <=
- [lmi-commits] [lmi] master ce2981d 7/7: Improve census-paste counterpart of a unit test, Greg Chicares, 2017/02/24
- [lmi-commits] [lmi] master cc9c75c 6/7: Show how census manager canonicalizes unit-test sequences, Greg Chicares, 2017/02/24