Opened 17 years ago

Last modified 14 years ago

#96 closed defect (fixed)

assert and .mos testcases problem

Reported by: adrpo Owned by: adrpo
Priority: critical Milestone:
Component: Version:
Keywords: Cc: adrpo, adrpo

Description

See comments

Change History (3)

comment:1 Changed 17 years ago by adrpo

Model:
class AssertTest

parameter Real lowlimit;
parameter Real highlimit;
Real x = 5;

equation

assert(x >= lowlimit and x <= highlimit, "Variable x out of limit");

end AssertTest;

class Test2

AssertTest assertTest(lowlimit = 6, highlimit = 20);

end Test2;

How can a testcase can be written for this model?
Should the status be incorrect or correct in the .mos file?
The problem is that the simulation is always succeeding in the mos file.

comment:2 Changed 17 years ago by petar

The problem is also that the assertion is not translated to the simulation code.

comment:3 Changed 14 years ago by sjoelund.se

Fixed (see StringTest.mos)

Note: See TracTickets for help on using tickets.