mirror of
https://github.com/sigmasternchen/xtext-core
synced 2025-03-15 16:28:56 +00:00
Merge pull request #344 from DelRed2/windows_tests_fix
Fix assertEquals in GrammarConstraintProviderFeatureTest
This commit is contained in:
commit
c039937f97
2 changed files with 3 additions and 3 deletions
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue