From 5915a968ff05f570ace2905d6fa40223db6eea75 Mon Sep 17 00:00:00 2001 From: piexel Date: Wed, 11 Nov 2026 15:51:17 +0100 Subject: [PATCH] Expect the hotload guard to accept commented pack files VolmLib's JSONTokener now skips comments, so the guard and the loaders read them the same way. --- .../iris/core/project/UnreadablePackFilesTest.java | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/core/src/test/java/art/arcane/iris/core/project/UnreadablePackFilesTest.java b/core/src/test/java/art/arcane/iris/core/project/UnreadablePackFilesTest.java index 5393ff28a..d5f962222 100644 --- a/core/src/test/java/art/arcane/iris/core/project/UnreadablePackFilesTest.java +++ b/core/src/test/java/art/arcane/iris/core/project/UnreadablePackFilesTest.java @@ -38,15 +38,19 @@ public class UnreadablePackFilesTest { } @Test - public void reportsCommentsBecauseTheLoadersCannotReadThem() throws IOException { + public void acceptsCommentsLikeTheLoaders() throws IOException { File biome = write("biome.json", """ { - // the loaders reject this - "name": "Plains" + // line comment + "name": "Plains", /* block comment */ + "children": [ + // "commented-out", + "a" + ] } """); - assertEquals(1, files.recheck(List.of(biome)).size()); + assertTrue(files.recheck(List.of(biome)).isEmpty()); } @Test