add Value::lookup()

This commit is contained in:
Michael Davidsaver
2020-07-15 11:12:53 -07:00
parent bb7ac1e8e6
commit 290a2689fc
4 changed files with 83 additions and 13 deletions
+5 -1
View File
@@ -27,6 +27,10 @@ void testTraverse()
testOk1(!top["<"].valid());
testThrows<std::runtime_error>([&top](){
top.lookup("<");
});
{
auto top2 = top["value<"];
testOk1(top.equalType(top2));
@@ -310,7 +314,7 @@ void testAssignSimilar()
MAIN(testdata)
{
testPlan(92);
testPlan(93);
testSetup();
testTraverse();
testAssign();