/
Ticket5680.mos
41 lines (37 loc) · 1.13 KB
/
Ticket5680.mos
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
// name: Ticket5680.mos
// keywords:
// status: correct
//
// Tests if the -m Modelica output doesn't interfere with list()
//
setCommandLineOptions({"-m"}); getErrorString();
loadString("model test end test;","test"); getErrorString();
listFile(test); getErrorString();
list(test); getErrorString();
addComponent(integrator, Modelica.Blocks.Continuous.Integrator,test,annotate=Placement(visible=true, transformation=transformation(origin={-40,12}, extent={{-10,-10},{10,10}}, rotation=0))); getErrorString();
listFile(test); getErrorString();
list(test); getErrorString();
// Result:
// {true}
// ""
// true
// ""
// "model test
// end test;"
// ""
// "model test
// end test;"
// ""
// true
// ""
// "model test
// Modelica.Blocks.Continuous.Integrator integrator annotation(
// Placement(visible = true, transformation(origin = {-40, 12}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
// end test;"
// ""
// "model test
// Modelica.Blocks.Continuous.Integrator integrator annotation(
// Placement(visible = true, transformation(origin = {-40, 12}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
// end test;"
// ""
// endResult