WorldEdit Build #7697

Be aware that this branch (tests/unit) is not the main branch (version/7.4.x)!

Branches other than the main one may be experimental. In addition, you should be using stable releases rather than these test builds.

Go to main branch View stable downloads
ProjectWorldEdit
StatusSUCCESS
Branchtests/unit
Number#7697-498c36e
Date14 hours ago
Changes
IDSummaryCommitterDate
498c36ea
  • Add schematic I/O tests (Sponge v1/v2/v3, MCEdit) and intern test properties TestBlockRegistry now shares one Property instance per name, type and value list, as the real platforms do (CoreMcTransmogrifier's propertyCache). With that, the TypeApplyingPattern test in PatternParserTest passes, so it is re-enabled: it was a fixture artifact, not a bug. None of the other @Disabled findings depend on per-type Property instances. New tests in extent/clipboard/io: - SpongeSchematicRoundTripTest: write/read round trips for V2 and V3 over negative, degenerate and offset-origin regions, palettes of 1-2000 states, block entities, entities, biomes, size limits (V1 and MCEdit have no writer). - SpongeVarIntTest: sparse palette indices at every varint length edge (127/128, 16383/16384, up to Integer.MAX_VALUE) in hand-built V2/V3 files. - GoldenSchematicTest: tiny stored V1/V2/V3/MCEdit files (generated by a standalone script, not by WorldEdit) that must keep loading. - CorruptSchematicTest: truncation at every byte, garbage, missing/mistyped tags, bad palettes and varints, version mismatches. - SchematicDataFixerTest: when the DataFixer is applied and from which version, using a recording stand-in (real DFU needs Minecraft). - ClipboardFormatsTest: alias/extension registry and format detection. Real bugs found are recorded as @Disabled tests in CorruptSchematicTest: NPE on a palette index missing from the palette, block data length not checked against the dimensions (too short and too long), getDataVersion throwing for a foreign Version, and two ArrayIndexOutOfBounds cases in MCEditSchematicReader.
albert pham with Claude Sonnet 5.515 hours ago