Add function to get completions

This commit is contained in:
Joakim Hove
2018-06-25 23:53:58 +02:00
parent 15dd449354
commit 0327393951
3 changed files with 24 additions and 0 deletions

View File

@@ -1857,8 +1857,13 @@ BOOST_AUTO_TEST_CASE( complump ) {
BOOST_CHECK_EQUAL( open, sc1.getFromIJK( 2, 2, 1 ).state );
BOOST_CHECK_EQUAL( open, sc1.getFromIJK( 2, 2, 2 ).state );
BOOST_CHECK_EQUAL( shut, sc1.getFromIJK( 2, 2, 3 ).state );
const auto completions = well.getCompletions(1);
BOOST_CHECK_EQUAL(completions.size(), 4);
}
BOOST_AUTO_TEST_CASE( COMPLUMP_specific_coordinates ) {
std::string input = R"(
START -- 0