test: characterize multipart ordering and move lifecycle

This commit is contained in:
Algent committed 2026-08-27 18:02:41 +03:00
1 parent 4616b5834c
commit 6410cc0028
6 files changed
+258 -15

No files matched your search

@@ -160,6 +160,9 @@ class TileMultipartCharacterizationTest {
assertTrue(tile.canReplacePart(outgoing, new CountingPart("c")));
// A part already present, other than the outgoing one, cannot be added again.
assertFalse(tile.canReplacePart(outgoing, other));
assertEquals(Arrays.asList(outgoing, other), tile.jPartList(), "A replacement check must not mutate order");
assertSame(tile, outgoing.tile());
assertSame(tile, other.tile());
}
@Test