Skip to content

Commit

Permalink
Merge pull request #1847 from NickSneo/master
Browse files Browse the repository at this point in the history
Fix for compareJavaFile test fail - platform independent
  • Loading branch information
gtebrean authored Jan 11, 2023
2 parents b15e56a + f5b1ae4 commit bebceec
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -219,8 +219,8 @@ private void compareJavaFile(String inputFileName) throws Exception {
inputFileName + ".java"),
File.separator));
assertEquals(
new String(Files.readAllBytes(fileExpected.toPath())),
new String(Files.readAllBytes(fileActual.toPath())));
new String(Files.readAllBytes(fileExpected.toPath())).replaceAll("(\r\n|\n)", ""),
new String(Files.readAllBytes(fileActual.toPath())).replaceAll("(\r\n|\n)", ""));
}

private void testCodeGenerationJvmTypes(String contractName, String inputFileName)
Expand Down

0 comments on commit bebceec

Please sign in to comment.