diff options
author | shedaniel <daniel@shedaniel.me> | 2021-09-11 21:39:19 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-11 14:39:19 +0100 |
commit | df7f56306b9465b6f0c885a836919d5f4272f69e (patch) | |
tree | 91efd5bff3da047ffcdc2fb17aa8326f91a27a5c /src/test/groovy | |
parent | 2c464cdef372e92ea719eec618ae713d54cede89 (diff) | |
download | architectury-loom-df7f56306b9465b6f0c885a836919d5f4272f69e.tar.gz architectury-loom-df7f56306b9465b6f0c885a836919d5f4272f69e.tar.bz2 architectury-loom-df7f56306b9465b6f0c885a836919d5f4272f69e.zip |
Fix ParchmentMappingLayerTest test (#491)
* Fix ParchmentMappingLayerTest test
* Update mapping-io
* Remove comment
Diffstat (limited to 'src/test/groovy')
-rw-r--r-- | src/test/groovy/net/fabricmc/loom/test/unit/layeredmappings/ParchmentMappingLayerTest.groovy | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/test/groovy/net/fabricmc/loom/test/unit/layeredmappings/ParchmentMappingLayerTest.groovy b/src/test/groovy/net/fabricmc/loom/test/unit/layeredmappings/ParchmentMappingLayerTest.groovy index 760019b2..ac9592cf 100644 --- a/src/test/groovy/net/fabricmc/loom/test/unit/layeredmappings/ParchmentMappingLayerTest.groovy +++ b/src/test/groovy/net/fabricmc/loom/test/unit/layeredmappings/ParchmentMappingLayerTest.groovy @@ -38,7 +38,7 @@ class ParchmentMappingLayerTest extends LayeredMappingsSpecification { def mappings = getLayeredMappings( new IntermediaryMappingsSpec(), new MojangMappingsSpec(), - new ParchmentMappingsSpec(PARCHMENT_NOTATION, true) + new ParchmentMappingsSpec(PARCHMENT_NOTATION, false) ) def tiny = getTiny(mappings) def reorderedMappings = reorder(mappings) @@ -48,7 +48,7 @@ class ParchmentMappingLayerTest extends LayeredMappingsSpecification { mappings.classes.size() == 5747 mappings.classes[0].srcName.hashCode() == -1112444138 // MojMap name, just check the hash mappings.classes[0].getDstName(0) == "net/minecraft/class_2573" - mappings.classes[0].methods[0].args[0].srcName.hashCode() == 109757064 + mappings.classes[0].methods[0].args[0].srcName.hashCode() == -1008297992 reorderedMappings.getClass("net/minecraft/class_2573").getMethod("method_10913", "(Lnet/minecraft/class_1799;Lnet/minecraft/class_1767;)V").args.size() > 0 } @@ -64,12 +64,14 @@ class ParchmentMappingLayerTest extends LayeredMappingsSpecification { new ParchmentMappingsSpec(PARCHMENT_NOTATION, true) ) def tiny = getTiny(mappings) + def reorderedMappings = reorder(mappings) then: mappings.srcNamespace == "named" mappings.dstNamespaces == ["intermediary", "official"] mappings.classes.size() == 5747 mappings.classes[0].srcName.hashCode() == -1112444138 // MojMap name, just check the hash mappings.classes[0].getDstName(0) == "net/minecraft/class_2573" - mappings.classes[0].methods[0].args[0].srcName == "stack" + mappings.classes[0].methods[0].args[0].srcName.hashCode() == 109757064 + reorderedMappings.getClass("net/minecraft/class_2573").getMethod("method_10913", "(Lnet/minecraft/class_1799;Lnet/minecraft/class_1767;)V").args.size() > 0 } } |