Fix ForgeSimpleMixinApTest on Windows

Thank you Windows for your beautiful
CRLF line endings please keep them FOREVER!!!
<3 <3 <3
This commit is contained in:
Juuz
2022-05-19 15:12:27 +03:00
parent a8dc18ff98
commit ffc7953f28

View File

@@ -51,7 +51,7 @@ class ForgeSimpleMixinApTest extends Specification implements GradleProjectTestT
// verify the refmap is correctly generated
def refmap = gradle.getOutputZipEntry("fabric-example-mod-1.0.0.jar", "fabric-example-mod-refmap.json")
refmap == new File(gradle.projectDir, "expected_refmap.json").text
refmap == expected(gradle)
// verify that the refmap is in the mixin json
def mixinJsonString = gradle.getOutputZipEntry("fabric-example-mod-1.0.0.jar", "my_mixins.json")
def mixinJson = new Gson().fromJson(mixinJsonString, JsonObject)
@@ -64,4 +64,8 @@ class ForgeSimpleMixinApTest extends Specification implements GradleProjectTestT
where:
version << STANDARD_TEST_VERSIONS
}
private String expected(GradleProject gradle) {
new File(gradle.projectDir, "expected_refmap.json").text.replaceAll('\r', '')
}
}