Merge pull request #344 from DelRed2/windows_tests_fix

Fix assertEquals in GrammarConstraintProviderFeatureTest
This commit is contained in:
Miro Spönemann 2017-05-19 11:55:09 +02:00 committed by GitHub
commit c039937f97
2 changed files with 3 additions and 3 deletions

View file

@ -174,7 +174,7 @@ class GrammarConstraintProviderFeatureTest {
def assertEquals(String expected, String actual)
{
val expectedM = expected?.replaceAll(System.lineSeparator, "\n");
val actualM = expected?.replaceAll(System.lineSeparator, "\n");
val actualM = actual?.replaceAll(System.lineSeparator, "\n");
Assert.assertEquals(expectedM, actualM)
}

View file

@ -290,8 +290,8 @@ public class GrammarConstraintProviderFeatureTest {
}
final String expectedM = _replaceAll;
String _replaceAll_1 = null;
if (expected!=null) {
_replaceAll_1=expected.replaceAll(System.lineSeparator(), "\n");
if (actual!=null) {
_replaceAll_1=actual.replaceAll(System.lineSeparator(), "\n");
}
final String actualM = _replaceAll_1;
Assert.assertEquals(expectedM, actualM);