From 57220d0320e9f7c515618bc764f9b37db5763f20 Mon Sep 17 00:00:00 2001 From: Sean Bowe Date: Thu, 18 Feb 2016 00:04:55 -0700 Subject: [PATCH] Fix `test_pour` return type. --- src/zerocash/tests/zerocashTest.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/zerocash/tests/zerocashTest.cpp b/src/zerocash/tests/zerocashTest.cpp index 749273299..00d763e55 100644 --- a/src/zerocash/tests/zerocashTest.cpp +++ b/src/zerocash/tests/zerocashTest.cpp @@ -186,7 +186,7 @@ BOOST_AUTO_TEST_CASE( PourInputOutputTest ) { } // testing with general situational setup -bool test_pour(libzerocash::ZerocashParams& p, +void test_pour(libzerocash::ZerocashParams& p, uint64_t vpub_in, uint64_t vpub_out, std::vector inputs, // values of the inputs (max 2) @@ -257,15 +257,15 @@ BOOST_AUTO_TEST_CASE( PourVpubInTest ) { ); // Things that should work.. - BOOST_CHECK(test_pour(p, 0, 0, {1}, {1})); - BOOST_CHECK(test_pour(p, 0, 0, {2}, {1, 1})); - BOOST_CHECK(test_pour(p, 0, 0, {2, 2}, {3, 1})); - BOOST_CHECK(test_pour(p, 0, 1, {1}, {})); - BOOST_CHECK(test_pour(p, 0, 1, {2}, {1})); - BOOST_CHECK(test_pour(p, 0, 1, {2, 2}, {2, 1})); - BOOST_CHECK(test_pour(p, 1, 0, {}, {1})); - BOOST_CHECK(test_pour(p, 1, 0, {1}, {1, 1})); - BOOST_CHECK(test_pour(p, 1, 0, {2, 2}, {2, 3})); + test_pour(p, 0, 0, {1}, {1}); + test_pour(p, 0, 0, {2}, {1, 1}); + test_pour(p, 0, 0, {2, 2}, {3, 1}); + test_pour(p, 0, 1, {1}, {}); + test_pour(p, 0, 1, {2}, {1}); + test_pour(p, 0, 1, {2, 2}, {2, 1}); + test_pour(p, 1, 0, {}, {1}); + test_pour(p, 1, 0, {1}, {1, 1}); + test_pour(p, 1, 0, {2, 2}, {2, 3}); // Things that should not work... BOOST_CHECK_THROW(test_pour(p, 0, 1, {1}, {1}), std::invalid_argument);