diff options
author | Linnea Gräf <nea@nea.moe> | 2024-03-05 23:04:55 +0100 |
---|---|---|
committer | Linnea Gräf <nea@nea.moe> | 2024-03-05 23:04:55 +0100 |
commit | 73c606bf8ea782ffd2fb35597a5991add8c78af7 (patch) | |
tree | 595b23ea4e587300fdf1da4b6f66790e3adabe41 /src/test | |
parent | 4f704c99ab3f4a294aba9d1f2b0ae7929e2b4a4b (diff) | |
download | zwirn-73c606bf8ea782ffd2fb35597a5991add8c78af7.tar.gz zwirn-73c606bf8ea782ffd2fb35597a5991add8c78af7.tar.bz2 zwirn-73c606bf8ea782ffd2fb35597a5991add8c78af7.zip |
Add searge enricher
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/java/moe/nea/zwirn/ZwirnTest.java | 9 |
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( |