Skip to content

Commit

Permalink
Updated getNthConnection tests since it is moved to ModelicaBuiltin.mo.
Browse files Browse the repository at this point in the history
  • Loading branch information
adeas31 authored and OpenModelica-Hudson committed Mar 7, 2017
1 parent 6e6be50 commit 0f43e81
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
10 changes: 5 additions & 5 deletions openmodelica/interactive-API/Bug2871.mos
Expand Up @@ -104,29 +104,29 @@ instantiateModel(Modelica.Fluid.Examples.Tanks.ThreeTanks); getErrorString();
// true
// 0
// 5
// {pipe1.port_a,pipe2.port_a, ""}
// {"pipe1.port_a","pipe2.port_a",""}
// "model"
// true
// "model"
// true
// {Line(true, {0.0, 0.0}, 0, {{-60, -20}, {-60, -40}, {0, -40}, {0, -30}, {0, -20}}, {0, 127, 255}, LinePattern.Solid, 0.25, {Arrow.None, Arrow.None}, 3, Smooth.None)}
// {pipe2.port_a,pipe3.port_a, ""}
// {"pipe2.port_a","pipe3.port_a",""}
// "model"
// true
// "model"
// true
// {Line(true, {0.0, 0.0}, 0, {{0, -20}, {0, -20}, {0, -40}, {60, -40}, {60, -30}}, {0, 127, 255}, LinePattern.Solid, 0.25, {Arrow.None, Arrow.None}, 3, Smooth.None)}
// {pipe3.port_b,tank3.ports[1], ""}
// {"pipe3.port_b","tank3.ports[1]",""}
// "model"
// true
// "model"
// true
// {Line(true, {0.0, 0.0}, 0, {{60, -10}, {60, -10}, {60, 10}}, {0, 127, 255}, LinePattern.Solid, 0.25, {Arrow.None, Arrow.None}, 3, Smooth.None)}
// {pipe1.port_b,tank1.ports[1], ""}
// {"pipe1.port_b","tank1.ports[1]",""}
// "model"
// true
// {Line(true, {0.0, 0.0}, 0, {{-60, 0}, {-60, 10}, {-60, 20}}, {0, 127, 255}, LinePattern.Solid, 0.25, {Arrow.None, Arrow.None}, 3, Smooth.None)}
// {pipe2.port_b,tank2.ports[1], ""}
// {"pipe2.port_b","tank2.ports[1]",""}
// "model"
// true
// "model"
Expand Down
4 changes: 2 additions & 2 deletions openmodelica/interactive-API/interactive_api_attributes.mos
Expand Up @@ -185,7 +185,7 @@ list(A);
// Evaluating: getErrorString()
// ""
// Evaluating: getNthConnection(A, 1)
// {a,b, ""}
// {"a","b",""}
// Evaluating: getErrorString()
// ""
// Evaluating: getNthConnectionAnnotation(A, 1)
Expand Down Expand Up @@ -325,7 +325,7 @@ list(A);
// Evaluating: getErrorString()
// ""
// Evaluating: getNthConnection(A, 1)
// {a,b, ""}
// {"a","b",""}
// Evaluating: getErrorString()
// ""
// Evaluating: getNthConnectionAnnotation(A, 1)
Expand Down
4 changes: 2 additions & 2 deletions openmodelica/interactive-API/interactive_api_classes.mos
Expand Up @@ -170,7 +170,7 @@ getClassNames(B, includeConstants=true);
// Evaluating: addConnection(a.n[1], b.z[2], A.test)
// Ok
// Evaluating: getNthConnection(A.test, 1)
// {a.n[1],b.z[2], ""}
// {"a.n[1]","b.z[2]",""}
// Evaluating: getClassNames(A)
// {test}
// Evaluating: clear()
Expand Down Expand Up @@ -251,7 +251,7 @@ getClassNames(B, includeConstants=true);
// Evaluating: addConnection(a.n[1], b.z[2], A.test)
// Ok
// Evaluating: getNthConnection(A.test, 1)
// {a.n[1],b.z[2], ""}
// {"a.n[1]","b.z[2]",""}
// Evaluating: getClassNames(A)
// {test}
// Evaluating: loadString("model M
Expand Down

0 comments on commit 0f43e81

Please sign in to comment.