From 502e5f16a09aabf706165205af2a8b53dc8f4817 Mon Sep 17 00:00:00 2001 From: Michael Tryby Date: Wed, 3 Apr 2019 16:25:51 -0400 Subject: [PATCH] Fixing index error in test --- tests/test_analysis.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_analysis.cpp b/tests/test_analysis.cpp index 30a159f..dfdbc13 100644 --- a/tests/test_analysis.cpp +++ b/tests/test_analysis.cpp @@ -22,7 +22,7 @@ BOOST_AUTO_TEST_SUITE (test_analysis) BOOST_FIXTURE_TEST_CASE(test_anlys_getoption, FixtureOpenClose) { int i; - double array[13]; + double array[12]; std::vector test; std::vector ref = {40.0, 0.001, 0.01, 0.5, 1.0, 0.0, 0.0, 0.0, 75.0, 0.0, 0.0, 0.0}; @@ -39,7 +39,7 @@ BOOST_FIXTURE_TEST_CASE(test_anlys_getoption, FixtureOpenClose) BOOST_REQUIRE(error == 0); } - test.assign(array, array + 13); + test.assign(array, array + 12); BOOST_CHECK_EQUAL_COLLECTIONS(ref.begin(), ref.end(), test.begin(), test.end()); error = EN_getoption(ph, 18, &array[0]);