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

@@ -84,6 +84,9 @@ void test_ntscalarArray()
create();
testOk1(ntScalarArray.get() != 0);
testOk1(NTScalarArray::is_a(ntScalarArray->getPVStructure()));
testOk1(NTScalarArray::isCompatible(ntScalarArray->getPVStructure()));
testOk1(ntScalarArray->getPVStructure().get() != 0);
testOk1(ntScalarArray->getValue().get() != 0);
testOk1(ntScalarArray->getDescriptor().get() != 0);
@@ -235,7 +238,7 @@ void test_wrap()
}
MAIN(testNTScalarArray) {
testPlan(38);
testPlan(40);
test_builder();
test_ntscalarArray();
test_wrap();