[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master 1f9c757 8/9: Make certain unit tests more gen
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master 1f9c757 8/9: Make certain unit tests more general |
Date: |
Wed, 15 Feb 2017 20:27:00 -0500 (EST) |
branch: master
commit 1f9c75721d9d2bbc861461652ca1108bd2609a05
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>
Make certain unit tests more general
Two tests specified an interval "(@94,5]", which makes sense only for
a very high issue age. Changed that to "(@94,#1]" so that these tests
can conveniently be pasted into the GUI.
---
input_sequence_test.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/input_sequence_test.cpp b/input_sequence_test.cpp
index 5a21fdc..e35a3c0 100644
--- a/input_sequence_test.cpp
+++ b/input_sequence_test.cpp
@@ -339,7 +339,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, 5]; 7");
+ std::string const e("12 [1, @92); 27 address@hidden, @93]; 1 (@94, #1];
7");
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, 6); 7 [6,
maturity");
check(__FILE__, __LINE__, n, d, e, g);
}
@@ -350,7 +350,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,5]; 7.5");
+ std::string const e("12.25 [1,@92); 27.875 address@hidden,@93];
1.0625(@94,#1]; 7.5");
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, 6);
7.5 [6, maturity)");
check(__FILE__, __LINE__, n, d, e, g);
}
- [lmi-commits] [lmi] master updated (0cfdd92 -> 59797a5), Greg Chicares, 2017/02/15
- [lmi-commits] [lmi] master a352f9e 2/9: Restore original facet get_table() implementation, Greg Chicares, 2017/02/15
- [lmi-commits] [lmi] master da6c8c9 5/9: Do not treat tab as whitespace in UponPasteCensus(), Greg Chicares, 2017/02/15
- [lmi-commits] [lmi] master a16705a 4/9: Add a tab-is-not-ws facet, Greg Chicares, 2017/02/15
- [lmi-commits] [lmi] master 9a78453 7/9: Fix defect introduced 20160517T2303: tests not updated, Greg Chicares, 2017/02/15
- [lmi-commits] [lmi] master 1f9c757 8/9: Make certain unit tests more general,
Greg Chicares <=
- [lmi-commits] [lmi] master 4d92a38 6/9: Allow empty strings to be pasted into a census, Greg Chicares, 2017/02/15
- [lmi-commits] [lmi] master fc4057e 3/9: Genericize, Greg Chicares, 2017/02/15
- [lmi-commits] [lmi] master 59797a5 9/9: Make unit tests pastable into GUI, Greg Chicares, 2017/02/15
- [lmi-commits] [lmi] master 45a1834 1/9: Remove a dead usenet reference, Greg Chicares, 2017/02/15