[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master c21a1c5 1/4: Refactor for simplicity
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master c21a1c5 1/4: Refactor for simplicity |
Date: |
Thu, 2 Feb 2017 17:51:56 +0000 (UTC) |
branch: master
commit c21a1c52de0278efaeba8206b204aa21197f254d
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>
Refactor for simplicity
---
input_seq_test.cpp | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/input_seq_test.cpp b/input_seq_test.cpp
index b4590eb..03bd3dd 100644
--- a/input_seq_test.cpp
+++ b/input_seq_test.cpp
@@ -385,12 +385,12 @@ int test_main(int, char*[])
double const d[n] = {7, 7, 7, 7, 7, 4, 4, 4, 4, 4};
std::string const e("7, retirement; 4, maturity");
check(__FILE__, __LINE__, d, n, e);
- InputSequence const seq("7, retirement; 4", 10, 90, 95, 0, 2002);
+ InputSequence const seq(e, 10, 90, 95, 0, 2002);
std::vector<ValueInterval> const& i(seq.interval_representation());
- BOOST_TEST(e_inception == i[0].begin_mode);
- BOOST_TEST(e_retirement == i[0].end_mode );
- BOOST_TEST(e_retirement == i[1].begin_mode);
- BOOST_TEST(e_maturity == i[1].end_mode );
+ BOOST_TEST_EQUAL(e_inception , i[0].begin_mode);
+ BOOST_TEST_EQUAL(e_retirement, i[0].end_mode );
+ BOOST_TEST_EQUAL(e_retirement, i[1].begin_mode);
+ BOOST_TEST_EQUAL(e_maturity , i[1].end_mode );
}
return 0;