From 1ee2dcc5ff4e183fc6bd9e6cb46c05b93756b557 Mon Sep 17 00:00:00 2001 From: NebelNidas Date: Wed, 20 Sep 2023 13:08:12 +0200 Subject: [PATCH] Add inner class to write test --- src/test/java/net/fabricmc/mappingio/WriteTest.java | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/test/java/net/fabricmc/mappingio/WriteTest.java b/src/test/java/net/fabricmc/mappingio/WriteTest.java index 5356d86f..f794d579 100644 --- a/src/test/java/net/fabricmc/mappingio/WriteTest.java +++ b/src/test/java/net/fabricmc/mappingio/WriteTest.java @@ -52,8 +52,14 @@ public static void setup() throws Exception { tree.visitMethodVar(0, 0, 0, 0, "param_1"); tree.visitDstName(MappedElementKind.METHOD_VAR, 0, "renamedVariable"); - tree.visitClass("class_2"); - tree.visitDstName(MappedElementKind.CLASS, 0, "RenamedClass2"); + tree.visitClass("class_1$class_2"); + tree.visitDstName(MappedElementKind.CLASS, 0, "RenamedInnerClass2"); + + tree.visitField("field_1", "I"); + tree.visitDstName(MappedElementKind.FIELD, 0, "renamedField2"); + + tree.visitClass("class_3"); + tree.visitDstName(MappedElementKind.CLASS, 0, "RenamedClass3"); } @Test