add NTEnum

This commit is contained in:
Michael Davidsaver
2021-05-04 16:46:41 -07:00
parent 01745aad72
commit 6c3e5b693c
3 changed files with 41 additions and 1 deletions
+11 -1
View File
@@ -73,12 +73,22 @@ void testNTURI()
testEq(top["query.arg2"].as<std::string>(), "hello");
}
void testNTEnum()
{
testDiag("In %s", __func__);
auto top = nt::NTEnum{}.create();
testTrue(top.idStartsWith("epics:nt/NTEnum:"))<<"\n"<<top;
}
} // namespace
MAIN(testnt) {
testPlan(17);
testPlan(18);
testNTScalar();
testNTNDArray();
testNTURI();
testNTEnum();
return testDone();
}