add target test
This commit is contained in:
parent
1c1bfd7541
commit
b36145e3c4
@ -94,6 +94,16 @@ BOOST_FIXTURE_TEST_CASE(array_test, TestRandomArrayEntryFixture)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
BOOST_AUTO_TEST_CASE(target_test)
|
||||||
|
{
|
||||||
|
std::vector<TestInputEdge> input_edges = {
|
||||||
|
TestInputEdge{0, 1, TestData{1}}, TestInputEdge{3, 0, TestData{2}}};
|
||||||
|
TestStaticGraph simple_graph = TestStaticGraph(4, input_edges);
|
||||||
|
|
||||||
|
auto target = simple_graph.GetTarget(simple_graph.FindEdge(3, 0));
|
||||||
|
BOOST_CHECK_EQUAL(target, 0);
|
||||||
|
}
|
||||||
|
|
||||||
BOOST_AUTO_TEST_CASE(find_test)
|
BOOST_AUTO_TEST_CASE(find_test)
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user