lmi-commits
[Top][All Lists]
Advanced

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



reply via email to

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