summaryrefslogtreecommitdiffstats
path: root/tests/Generating
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2019-09-08 15:59:15 +0200
committerMattes D <github@xoft.cz>2019-09-08 20:21:49 +0200
commitad24702b4e0569318c97391cd930c5956d190016 (patch)
tree48182f7af3185b8a5ef217ac408e0a3756ba8964 /tests/Generating
parentShapeGen, HeiGen: Changed to use cChunkCoords. (diff)
downloadcuberite-ad24702b4e0569318c97391cd930c5956d190016.tar
cuberite-ad24702b4e0569318c97391cd930c5956d190016.tar.gz
cuberite-ad24702b4e0569318c97391cd930c5956d190016.tar.bz2
cuberite-ad24702b4e0569318c97391cd930c5956d190016.tar.lz
cuberite-ad24702b4e0569318c97391cd930c5956d190016.tar.xz
cuberite-ad24702b4e0569318c97391cd930c5956d190016.tar.zst
cuberite-ad24702b4e0569318c97391cd930c5956d190016.zip
Diffstat (limited to 'tests/Generating')
-rw-r--r--tests/Generating/BasicGeneratorTest.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/Generating/BasicGeneratorTest.cpp b/tests/Generating/BasicGeneratorTest.cpp
index fca94404d..c54ca6507 100644
--- a/tests/Generating/BasicGeneratorTest.cpp
+++ b/tests/Generating/BasicGeneratorTest.cpp
@@ -91,7 +91,7 @@ static void testGenerateOverworld(cChunkGenerator & aDefaultOverworldGen)
{
// Generate a chunk:
cChunkDesc chd({chunkX, 0});
- aDefaultOverworldGen.Generate(chunkX, 0, chd);
+ aDefaultOverworldGen.Generate(chd);
verifyChunkDescHeightmap(chd);
// Check that it has bedrock at the bottom:
@@ -155,7 +155,7 @@ static void testGenerateNether(cChunkGenerator & aDefaultNetherGen)
{
// Generate a chunk:
cChunkDesc chd({chunkX, 0});
- aDefaultNetherGen.Generate(chunkX, 0, chd);
+ aDefaultNetherGen.Generate(chd);
verifyChunkDescHeightmap(chd);
// Check that the biome is Nether everywhere:
@@ -244,7 +244,7 @@ static void checkChunkChecksums(
for (const auto & coords: aCoordsWithChecksum)
{
cChunkDesc chd(coords.mCoords);
- aGenerator.Generate(coords.mCoords.m_ChunkX, coords.mCoords.m_ChunkZ, chd);
+ aGenerator.Generate(chd);
auto checksum = chunkSHA1(chd);
TEST_EQUAL_MSG(checksum, coords.mChecksum,
Printf("%s chunk %s SHA1: expected %s, got %s", aDimension, coords.mCoords.ToString(), coords.mChecksum, checksum)