[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master 73f9ffb 2/2: Resolve unused-variable warning
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master 73f9ffb 2/2: Resolve unused-variable warning |
Date: |
Sat, 3 Mar 2018 09:01:42 -0500 (EST) |
branch: master
commit 73f9ffb5d21738d26dd379d2ecd40c32141bcf9a
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>
Resolve unused-variable warning
Restored some tests that commit 9afbf36e1635ddf1c62444bb19ae0db54c6d4f3d
had removed, leaving a variable unused. The removal may have been
intentional, because the next following test covers a similar scenario,
in which case the unused variable ought to have been removed as well;
or it may have been unintentional. Treated it today as having been
unintentional because it's obviously not wrong to add a few more tests.
---
input_sequence_test.cpp | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/input_sequence_test.cpp b/input_sequence_test.cpp
index 87407f4..627f6fa 100644
--- a/input_sequence_test.cpp
+++ b/input_sequence_test.cpp
@@ -599,6 +599,10 @@ void input_sequence_test::test()
check(__FILE__, __LINE__, n, d, e, g);
InputSequence const seq(e, 10, 90, 95, 0, 2002);
std::vector<ValueInterval> const& i(seq.intervals());
+ 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 );
}
// Duration keywords, with a one-time-only event at retirement.