Skip to content
This repository has been archived by the owner on Apr 3, 2019. It is now read-only.

Commit

Permalink
[NF] Update tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
perost committed Feb 6, 2019
1 parent f44d943 commit d585eff
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions flattening/modelica/scodeinst/TestSampleNoClock.mos
Original file line number Diff line number Diff line change
@@ -1,20 +1,17 @@
// name: TestSampleNoClock
// keywords: tests if sample in Modelica 3.2.1 (which sets --std < 3.3) works fine
// keywords: sample
// status: correct
//
// cflags: -d=newInst
// teardown_command: rm -f bn.mo
//
// Tests if sample in Modelica 3.2.1 (which sets --std < 3.3) works fine
//

loadModel(Modelica, {"3.2.1"}); getErrorString();
saveTotalModel("bn.mo", Modelica.Blocks.Examples.BooleanNetwork1); getErrorString();
instantiateModel(Modelica.Blocks.Examples.BooleanNetwork1); getErrorString();

// Result:
// true
// ""
// true
// ""
// "function Modelica.Blocks.Sources.BooleanTable.getFirstIndex \"Get first index of table and check table\"
// input Real[:] table \"Vector of time instants\";
// input Real simulationStartTime(quantity = \"Time\", unit = \"s\") \"Simulation start time\";
Expand Down Expand Up @@ -320,8 +317,8 @@ instantiateModel(Modelica.Blocks.Examples.BooleanNetwork1); getErrorString();
// set1.y = if set1.firstActiveIndex == 0 then if set1.use_pre_as_default then pre(set1.y) else set1.y_default else set1.expr[set1.firstActiveIndex];
// falling.y = edge(falling.not_u);
// changing.y = change(changing.u);
// triggeredAdd.local_set = 0;
// triggeredAdd.local_reset = false;
// triggeredAdd.local_set = 0;
// when {triggeredAdd.trigger, triggeredAdd.local_reset} then
// triggeredAdd.y = if triggeredAdd.local_reset then triggeredAdd.local_set else pre(triggeredAdd.y) + triggeredAdd.u;
// end when;
Expand Down

0 comments on commit d585eff

Please sign in to comment.