aboutsummaryrefslogtreecommitdiff
path: root/src/test/java/moe/nea/zwirn/ZwirnTest.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/java/moe/nea/zwirn/ZwirnTest.java')
-rw-r--r--src/test/java/moe/nea/zwirn/ZwirnTest.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/test/java/moe/nea/zwirn/ZwirnTest.java b/src/test/java/moe/nea/zwirn/ZwirnTest.java
index b3ed4f5..c0db320 100644
--- a/src/test/java/moe/nea/zwirn/ZwirnTest.java
+++ b/src/test/java/moe/nea/zwirn/ZwirnTest.java
@@ -4,6 +4,7 @@ import net.fabricmc.stitch.commands.tinyv2.*;
import org.junit.jupiter.api.Test;
import java.io.IOException;
+import java.nio.file.FileSystems;
import java.nio.file.Path;
import java.util.Arrays;
import java.util.HashMap;
@@ -20,6 +21,14 @@ class ZwirnTest {
TinyV2Writer.write(unmerged, Path.of("unmerged.tiny"));
}
+ @Test
+ void mergeMCP() throws IOException {
+ try (var fs = FileSystems.newFileSystem(Path.of("mcp.zip"))) {
+ var merged = Zwirn.enrichSeargeWithMCP(TinyV2Reader.read(Path.of("searge.tiny")), fs.getPath("/"));
+ TinyV2Writer.write(merged, Path.of("mcp.tiny"));
+ }
+ }
+
TinyFile getBaseFile() {
return new TinyFile(