/** * Copyright - See the COPYRIGHT that is included with this distribution. * pvxs is distributed subject to a Software License Agreement found * in file LICENSE that is included with this distribution. */ #include #include #include #include namespace { using namespace pvxs; void testNTScalar() { testDiag("In %s", __func__); // plain, without display meta auto top = nt::NTScalar{TypeCode::Int32}.create(); testTrue(top.idStartsWith("epics:nt/NTScalar:"))<<"\n"<(), 42u); testEq(top["query.arg2"].as(), "hello"); } void testNTEnum() { testDiag("In %s", __func__); auto top = nt::NTEnum{}.create(); testTrue(top.idStartsWith("epics:nt/NTEnum:"))<<"\n"<