table: simplify StrategyChoice with C++11 features
refs #2100
Change-Id: If0082c8561d706df86e92c14cb87762962ff200b
diff --git a/tests/daemon/table/strategy-choice.cpp b/tests/daemon/table/strategy-choice.cpp
index cc7b279..7817d51 100644
--- a/tests/daemon/table/strategy-choice.cpp
+++ b/tests/daemon/table/strategy-choice.cpp
@@ -49,7 +49,12 @@
BOOST_CHECK(table.insert("ndn:/", nameP));
// { '/'=>P }
- BOOST_CHECK_EQUAL(*table.get("ndn:/"), nameP);
+ auto getRoot = table.get("ndn:/");
+ BOOST_CHECK_EQUAL(getRoot.first, true);
+ BOOST_CHECK_EQUAL(getRoot.second, nameP);
+
+ auto getA = table.get("ndn:/A");
+ BOOST_CHECK_EQUAL(getA.first, false);
}
BOOST_AUTO_TEST_CASE(Effective)