Skip to content

Commit

Permalink
Include general subscripting example in code samples
Browse files Browse the repository at this point in the history
  • Loading branch information
ErykMroczek committed Feb 5, 2024
1 parent b1458a2 commit 0c76a0a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/samples/code-input.mo
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ parameter Real[1] foo = if bar then 2 elseif baz then 3 else 4;
Integer[1, 3, 4] bar =if true then
1 elseif baz<2 then 3 else 2;

Real smallest=(Modelica.Math.Vectors.sort({4,2,5,1}))[1];

protected
// Here we have to comments

Expand Down
2 changes: 2 additions & 0 deletions tests/samples/code-output.mo
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ final partial model FooModel
else
2;

Real smallest = (Modelica.Math.Vectors.sort({4, 2, 5, 1}))[1];

protected

// Here we have to comments
Expand Down

0 comments on commit 0c76a0a

Please sign in to comment.