From c7e63f08cb5f80f27a630e99323adc0b3c49425d Mon Sep 17 00:00:00 2001 From: Michael Neynens Date: Thu, 24 May 2018 17:03:03 -0700 Subject: [PATCH] Fixed operation_tests --- tests/tests/operation_tests.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/tests/operation_tests.cpp b/tests/tests/operation_tests.cpp index 34dd6f07..fd35c312 100644 --- a/tests/tests/operation_tests.cpp +++ b/tests/tests/operation_tests.cpp @@ -1401,7 +1401,8 @@ BOOST_AUTO_TEST_CASE( test_basic_dividend_distribution ) const operation_history_object& history_object = std::prev(account_history_range.second)->operation_id(db); const asset_dividend_distribution_operation& distribution_operation = history_object.op.get(); BOOST_CHECK(distribution_operation.account_id == destination_account.id); - BOOST_CHECK(distribution_operation.amounts.find(expected_payout) != distribution_operation.amounts.end()); + BOOST_CHECK(std::find(distribution_operation.amounts.begin(), distribution_operation.amounts.end(), expected_payout) + != distribution_operation.amounts.end()); }; BOOST_TEST_MESSAGE("Verifying the payouts"); @@ -1567,7 +1568,8 @@ BOOST_AUTO_TEST_CASE( test_basic_dividend_distribution_to_core_asset ) const operation_history_object& history_object = std::prev(account_history_range.second)->operation_id(db); const asset_dividend_distribution_operation& distribution_operation = history_object.op.get(); BOOST_CHECK(distribution_operation.account_id == destination_account.id); - BOOST_CHECK(distribution_operation.amounts.find(expected_payout) != distribution_operation.amounts.end()); + BOOST_CHECK(std::find(distribution_operation.amounts.begin(), distribution_operation.amounts.end(), expected_payout) + != distribution_operation.amounts.end()); }; BOOST_TEST_MESSAGE("Verifying the payouts");