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

@@ -54,6 +54,9 @@ static void test()
create();
testOk1(multiChannel.get() != 0);
testOk1(NTScalarMultiChannel::is_a(multiChannel->getPVStructure()));
testOk1(NTScalarMultiChannel::isCompatible(multiChannel->getPVStructure()));
PVStructurePtr pvStructure = multiChannel->getPVStructure();
testOk1(pvStructure.get()!=NULL);
testOk1(NTScalarMultiChannel::is_a(pvStructure->getStructure()));
@@ -173,7 +176,7 @@ void test_wrap()
MAIN(testCreateRequest)
{
testPlan(25);
testPlan(27);
test();
test_wrap();
return testDone();