[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master b04be04 3/7: Remove obsolete comments from ce
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master b04be04 3/7: Remove obsolete comments from census-pastable unit tests |
Date: |
Fri, 24 Feb 2017 15:22:53 -0500 (EST) |
branch: master
commit b04be04b3384195b21d26c3a32a21efe0c92c1ab
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>
Remove obsolete comments from census-pastable unit tests
Some unit tests, though pastable into the GUI, were unacceptable to
InputSequenceEntry, but adding fill_interval_gaps() has rendered them
acceptable, so the obsolete comments why they were unacceptable have
been removed.
---
input_sequence_test.cpp | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/input_sequence_test.cpp b/input_sequence_test.cpp
index fcfa79a..5b4c19f 100644
--- a/input_sequence_test.cpp
+++ b/input_sequence_test.cpp
@@ -312,7 +312,7 @@ int test_main(int, char*[])
int const n = 9;
double const d[n] = {0, 1, 0, 3, 0, 5, 7, 7, 7};
std::string const e("1 [1, 2); 3 [3, 3]; 5 (4, 5]; 7");
- census += e + "\t\t! not a partition\t\n";
+ census += e + "\t\t\t\n";
std::string const g("0 [0, 1); 1 [1, 2); 0 [2, 3); 3 [3, 4); 0 [4, 5); 5
[5, 6); 7 [6, maturity)");
check(__FILE__, __LINE__, n, d, e, g);
}
@@ -353,7 +353,7 @@ int test_main(int, char*[])
int const n = 10;
double const d[n] = {0, 12, 0, 27, 0, 1, 7, 7, 7, 7};
std::string const e("12 [1, @92); 27 address@hidden, @93]; 1 (@94, #1];
7");
- census += e + "\t\t! not a partition\t\n";
+ census += e + "\t\t\t\n";
std::string const g("0 [0, 1); 12 [1, @92); 0 address@hidden, @93); 27
address@hidden, @94); 0 address@hidden, @95); 1 address@hidden, #1); 7
address@hidden, maturity)");
check(__FILE__, __LINE__, n, d, e, g);
}
@@ -365,7 +365,7 @@ int test_main(int, char*[])
int const n = 10;
double const d[n] = {0, 12.25, 0, 27.875, 0, 1.0625, 7.5, 7.5, 7.5, 7.5};
std::string const e("12.25 [1,@92); 27.875 address@hidden,@93];
1.0625(@94,#1]; 7.5");
- census += e + "\t\t! not a partition\t\n";
+ census += e + "\t\t\t\n";
std::string const g("0 [0, 1); 12.25 [1, @92); 0 address@hidden, @93);
27.875 address@hidden, @94); 0 address@hidden, @95); 1.0625 address@hidden,
#1); 7.5 address@hidden, maturity)");
check(__FILE__, __LINE__, n, d, e, g);
}
@@ -492,7 +492,7 @@ int test_main(int, char*[])
strvec const c {"q", "q", "z", "z", "p"};
double const d[n] = { 0 , 0 , 0 , 0 , 0 };
std::string const e("q [0, 2); p [4, maturity)");
- census += "\tannual [0, 2); monthly [4, maturity)\t! not a partition\t\n";
+ census += "\tannual [0, 2); monthly [4, maturity)\t\t\n";
// A sequence with a gap can't be created in the GUI; but how does
// the GUI translate this sequence if it's typed in?
std::string const g("q [0, 2); z [2, 4); p [4, maturity)");
@@ -536,7 +536,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! not a partition\t\n";
+ census += "sevenpay [1, 3); glp [3, maturity)\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 +554,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! not a partition\t\n";
+ census += "sevenpay [1, 3); glp [3, maturity)\tquarterly [1, 3); monthly
[3, maturity)\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 <=
- [lmi-commits] [lmi] master 6362631 4/7: Remove needless census-pastable unit tests, Greg Chicares, 2017/02/24
- [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