add target test

This commit is contained in:
karenzshea 2016-01-19 16:43:33 -05:00 committed by Patrick Niklaus
parent 1c1bfd7541
commit b36145e3c4

View File

@ -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)
{
/*