mirror of
https://github.com/revanced/Apktool.git
synced 2025-05-01 14:44:26 +02:00
Merge of cross-platform fix for smali's AnalysisTest.java
Merge https://github.com/JesusFreke/smali/pull/20 into fork: Use System.lineSeparator() for cross-platform compatible line endings for runTest() method in AnalysisTest.java. The patch fixes build failures of type `org.jf.baksmali.AnalysisTest > DuplicateTest FAILED [junit.framework.ComparisonFailure at AnalysisTest.java:107]` on Windows systems.
This commit is contained in:
parent
d2fc74d984
commit
073019fa54
@ -104,7 +104,8 @@ public class AnalysisTest {
|
||||
className.substring(1, className.length() - 1));
|
||||
String smaliContents = readResource(smaliPath);
|
||||
|
||||
Assert.assertEquals(smaliContents.replace("\r\n", "\n"), stringWriter.toString().replace("\r\n", "\n"));
|
||||
Assert.assertEquals(smaliContents.replace("\r", "").replace("\n", System.lineSeparator()),
|
||||
stringWriter.toString().replace("\r", "").replace("\n", System.lineSeparator()));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user