%description: Negative test case for assignment with units in NED. %file: test.ned // unit cases: not provided, SI, non SI, unknown simple Test { parameters: @isNetwork(true); double p04 = 1unknown; // not provided - unknown } %file: test.cc #include using namespace omnetpp; namespace @TESTNAME@ { class Test : public cSimpleModule { public: Test() : cSimpleModule(16384) { } virtual void activity() override; }; Define_Module(Test); void Test::activity() { EV << "This should not be printed: " << par("p1").doubleValue() << "\n"; } }; //namespace %exitcode: 1 %contains-regex: stderr Cannot convert unit 'unknown' to none, at .*test\.ned:7