[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master e8b3638 3/6: Remove a pointless test case
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master e8b3638 3/6: Remove a pointless test case |
Date: |
Thu, 16 Feb 2017 14:26:57 -0500 (EST) |
branch: master
commit e8b3638211406162aaaa42739ce88ac910939b3b
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>
Remove a pointless test case
The case removed purported to test empty intervals, but did not.
It was equivalent to the case preceding it. The case following it
actually does test empty intervals, as its newly elaborated
documentation explains.
---
input_sequence_test.cpp | 16 +++++-----------
1 file changed, 5 insertions(+), 11 deletions(-)
diff --git a/input_sequence_test.cpp b/input_sequence_test.cpp
index 519d492..9104bd5 100644
--- a/input_sequence_test.cpp
+++ b/input_sequence_test.cpp
@@ -258,17 +258,11 @@ int test_main(int, char*[])
check(__FILE__, __LINE__, n, d, e, g);
}
- // Test empty intervals. (But they aren't empty?)
- {
- int const n = 5;
- double const d[n] = {1, 3, 5, 7, 7};
- std::string const e("1 [0, 1); 3 [1, 1]; 5 (1, 2]; 7");
- census += e + "\t\t\t\n";
- std::string const g("1 [0, 1); 3 [1, 2); 5 [2, 3); 7 [3, maturity)");
- check(__FILE__, __LINE__, n, d, e, g);
- }
-
- // Test subtly improper intervals.
+ // Test subtly improper (empty) intervals.
+ //
+ // Mathematical convention might regard these intervals:
+ // (x,x); (x,x]; [x,x); and [y,x], x<y
+ // as proper but empty, yet that's merely a convention.
{
int const n = 5;
double const d[n] = {0, 0, 0, 0, 0};
- [lmi-commits] [lmi] master updated (bd0485e -> 85dd47f), Greg Chicares, 2017/02/16
- [lmi-commits] [lmi] master 4c16b73 1/6: Remove a duplicate test case, Greg Chicares, 2017/02/16
- [lmi-commits] [lmi] master acd3007 2/6: Improve documentation, Greg Chicares, 2017/02/16
- [lmi-commits] [lmi] master e8b3638 3/6: Remove a pointless test case,
Greg Chicares <=
- [lmi-commits] [lmi] master b7bc4dd 4/6: Add a newline to improve readability, Greg Chicares, 2017/02/16
- [lmi-commits] [lmi] master 7aac40a 5/6: Consistently print double quotes around quoted lines (VZ), Greg Chicares, 2017/02/16
- [lmi-commits] [lmi] master 85dd47f 6/6: Split a long line for readability, Greg Chicares, 2017/02/16