Add tests for is_a and isCompatible for PVStructures

This commit is contained in:
Dave Hickin
2016-04-12 03:24:47 +01:00
parent 5dfc4ffd16
commit 08234150dc
15 changed files with 57 additions and 16 deletions

View File

@@ -119,6 +119,9 @@ void test_nttable()
create();
testOk1(ntTable.get() != 0);
testOk1(NTTable::is_a(ntTable->getPVStructure()));
testOk1(NTTable::isCompatible(ntTable->getPVStructure()));
testOk1(ntTable->getPVStructure().get() != 0);
testOk1(ntTable->getDescriptor().get() != 0);
testOk1(ntTable->getAlarm().get() != 0);
@@ -236,7 +239,7 @@ void test_wrap()
}
MAIN(testNTTable) {
testPlan(48);
testPlan(50);
test_builder();
test_labels();
test_nttable();