summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2022-10-22 19:06:14 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2022-10-22 19:06:14 +0100
commit873ef1436e233b5b4c542f35838a7cd73432ede6 (patch)
treead5b0f0bba71c5da5791471216855a1af221c26e /test
parentMove -Wold-style-cast to gcc only list, clang triggers in some SDL headers (diff)
downloadilt-873ef1436e233b5b4c542f35838a7cd73432ede6.tar.bz2
ilt-873ef1436e233b5b4c542f35838a7cd73432ede6.tar.xz
ilt-873ef1436e233b5b4c542f35838a7cd73432ede6.zip
Tidy network node insertion/searching
Diffstat (limited to 'test')
-rw-r--r--test/test-network.cpp4
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);
}