mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-10-12 03:24:14 +00:00
test:
- Added second rebuild test, expected to fail until the fix Ref.: https://github.com/VolmitSoftware/Iris/issues/1251
This commit is contained in:
@@ -53,6 +53,12 @@ public class ContinentGeneratorTest {
|
||||
assertArrayEquals(CONTINENT_MAP_OF_EXISTING_WORLDS, sampleContinentMapAfterRebuild(baseZoomDimension), 0D);
|
||||
}
|
||||
|
||||
@ExpectedToFailUntilFixed(SHARED_STYLE_GENERATOR_BUG)
|
||||
@Test
|
||||
public void doesRebuildingTheSameWorldTwiceZoomItsContinentMapOnlyOnce() {
|
||||
assertArrayEquals(CONTINENT_MAP_OF_EXISTING_WORLDS, sampleContinentMapAfterSecondRebuild(baseZoomDimension), 0D);
|
||||
}
|
||||
|
||||
private double[] sampleContinentMapAtWorldStart(IrisDimension dimension) {
|
||||
return sampleContinentMap(dimension, SAMPLE_BLOCKS);
|
||||
}
|
||||
@@ -66,6 +72,11 @@ public class ContinentGeneratorTest {
|
||||
return sampleContinentMapAtWorldStart(dimension);
|
||||
}
|
||||
|
||||
private double[] sampleContinentMapAfterSecondRebuild(IrisDimension dimension) {
|
||||
sampleContinentMapAtWorldStart(dimension);
|
||||
return sampleContinentMapAfterRebuild(dimension);
|
||||
}
|
||||
|
||||
private double[] sampleContinentMap(IrisDimension dimension, double[][] blocks) {
|
||||
return sampleAtBlocks(ContinentGenerator.create(dimension, new RNG(WORLD_SEED), packData), blocks);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user