Changeset View
Changeset View
Standalone View
Standalone View
src/avalanche/test/proofpool_tests.cpp
Show All 12 Lines | |||||
#include <avalanche/test/util.h> | #include <avalanche/test/util.h> | ||||
#include <test/util/setup_common.h> | #include <test/util/setup_common.h> | ||||
#include <boost/test/unit_test.hpp> | #include <boost/test/unit_test.hpp> | ||||
using namespace avalanche; | using namespace avalanche; | ||||
BOOST_FIXTURE_TEST_SUITE(proofpool_tests, TestingSetup) | BOOST_FIXTURE_TEST_SUITE(proofpool_tests, TestChain100Setup) | ||||
BOOST_AUTO_TEST_CASE(add_remove_proof_no_conflict) { | BOOST_AUTO_TEST_CASE(add_remove_proof_no_conflict) { | ||||
ProofPool testPool; | ProofPool testPool; | ||||
std::vector<ProofRef> proofs; | std::vector<ProofRef> proofs; | ||||
for (size_t i = 0; i < 10; i++) { | for (size_t i = 0; i < 10; i++) { | ||||
// Add a bunch of random proofs | // Add a bunch of random proofs | ||||
auto proof = buildRandomProof(MIN_VALID_PROOF_SCORE); | auto proof = buildRandomProof(MIN_VALID_PROOF_SCORE); | ||||
▲ Show 20 Lines • Show All 330 Lines • Show Last 20 Lines |