Skip to content

Commit

Permalink
Add test for ticket:4368
Browse files Browse the repository at this point in the history
  • Loading branch information
sjoelund authored and OpenModelica-Hudson committed Jan 9, 2018
1 parent 1117eb9 commit b7d5ab6
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
1 change: 1 addition & 0 deletions openmodelica/diff/Makefile
Expand Up @@ -20,6 +20,7 @@ ticket3619.mos \
ticket3642.mos \
Ticket4110.mos \
ticket4153.mos \
ticket4368.mos \
UTF8.mos

# test that currently fail. Move up when fixed.
Expand Down
26 changes: 26 additions & 0 deletions openmodelica/diff/ticket4368.mos
@@ -0,0 +1,26 @@
// status: correct
// Based on https://trac.openmodelica.org/OpenModelica/ticket/4368

diffModelicaFileListings("model test
M x;
// comment

equation
connect(a, b);
end test;","model test
M y;
// comment
equation
connect(a, c);
end test;", OpenModelica.Scripting.DiffFormat.color);getErrorString();

// Result:
// "model test
// M y;
// // comment
//
// equation
// connect(a, c);
// end test;"
// ""
// endResult

0 comments on commit b7d5ab6

Please sign in to comment.