diff options
Diffstat (limited to 'test/test-network.cpp')
-rw-r--r-- | test/test-network.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test-network.cpp b/test/test-network.cpp index bfcf64b..fb4c87c 100644 --- a/test/test-network.cpp +++ b/test/test-network.cpp @@ -81,7 +81,7 @@ BOOST_DATA_TEST_CASE(nodeAt, VALID_NODES + INVALID_NODES, p) BOOST_DATA_TEST_CASE(newNodeAt_existing, VALID_NODES, p) { auto n = newNodeAt(p); - BOOST_CHECK(!n.second); + BOOST_CHECK_EQUAL(n.second, Network::NodeIs::InNetwork); BOOST_REQUIRE(n.first); BOOST_CHECK_EQUAL(n.first->pos, p); } @@ -89,7 +89,7 @@ BOOST_DATA_TEST_CASE(newNodeAt_existing, VALID_NODES, p) BOOST_DATA_TEST_CASE(newNodeAt_new, INVALID_NODES, p) { auto n = newNodeAt(p); - BOOST_CHECK(n.second); + BOOST_CHECK_EQUAL(n.second, Network::NodeIs::NotInNetwork); BOOST_REQUIRE(n.first); BOOST_CHECK_EQUAL(n.first->pos, p); } |