From a626ef941c2be6963f5fcaec6ff4f538e7e14f35 Mon Sep 17 00:00:00 2001 From: Michael Tryby Date: Thu, 28 Feb 2019 11:35:12 -0500 Subject: [PATCH] Adding test for saveH --- tests/test_hydqual.cpp | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/tests/test_hydqual.cpp b/tests/test_hydqual.cpp index 219a017..e80c3c8 100644 --- a/tests/test_hydqual.cpp +++ b/tests/test_hydqual.cpp @@ -132,7 +132,17 @@ BOOST_FIXTURE_TEST_CASE(test_progressive_step, FixtureOpenClose) } -// saveH +BOOST_FIXTURE_TEST_CASE(test_hydr_save, FixtureOpenClose) +{ + error = EN_solveH(ph); + BOOST_REQUIRE(error == 0); + + error = EN_saveH(ph); + BOOST_REQUIRE(error == 0); + + error = EN_report(ph); + BOOST_REQUIRE(error == 0); +} BOOST_FIXTURE_TEST_CASE(test_hydr_savefile, FixtureOpenClose) { @@ -158,4 +168,6 @@ BOOST_FIXTURE_TEST_CASE(test_hydr_usefile, FixtureOpenClose, * unit_test::depend BOOST_REQUIRE(error == 0); } + + BOOST_AUTO_TEST_SUITE_END()