lmi-commits
[Top][All Lists]
Advanced

[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};



reply via email to

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