Changeset 14106


Ignore:
Timestamp:
Nov 18, 2019 12:48:40 PM (4 weeks ago)
Author:
Jesper Mattsson
Message:

Removed automatic adding of missing parenthesis when compiling with modifications in unit test. (#5879)

Location:
branches/dev-mo-2559/Compiler
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/dev-mo-2559/Compiler/ModelicaFrontEnd/test/modelica/NameTests.mo

    r14105 r14106  
    43024302        name="ModificationOnTest1",
    43034303        description="Check that a modification to the test class can be added in test annotation",
    4304         modification="x=2",
     4304        modification="(x=2)",
    43054305        flatModel="
    43064306fclass NameTests.ModificationOnTest1
  • branches/dev-mo-2559/Compiler/TestFramework/src/jastadd/TestCase.jrag

    r14105 r14106  
    314314        StringBuilder buf = new StringBuilder(className);
    315315        if (modification != null) {
    316             boolean addParen = !modification.startsWith("(");
    317             if (addParen) {
    318                 buf.append('(');
    319             }
    320316            buf.append(modification);
    321             if (addParen) {
    322                 buf.append(')');
    323             }
    324317        }
    325318        return buf.toString();
Note: See TracChangeset for help on using the changeset viewer.