summaryrefslogtreecommitdiffstats
path: root/tests/ChunkData/Copies.cpp
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-05-30 09:17:50 +0200
committermadmaxoft <github@xoft.cz>2014-05-30 09:17:50 +0200
commit0b49529e4273a96e7f582ef4c321eaf8d65c629f (patch)
treed50aba16937d773d22df7f0468f7fd843fc9c19b /tests/ChunkData/Copies.cpp
parentFixed wrong copy sizes in cChunkData. (diff)
downloadcuberite-0b49529e4273a96e7f582ef4c321eaf8d65c629f.tar
cuberite-0b49529e4273a96e7f582ef4c321eaf8d65c629f.tar.gz
cuberite-0b49529e4273a96e7f582ef4c321eaf8d65c629f.tar.bz2
cuberite-0b49529e4273a96e7f582ef4c321eaf8d65c629f.tar.lz
cuberite-0b49529e4273a96e7f582ef4c321eaf8d65c629f.tar.xz
cuberite-0b49529e4273a96e7f582ef4c321eaf8d65c629f.tar.zst
cuberite-0b49529e4273a96e7f582ef4c321eaf8d65c629f.zip
Diffstat (limited to 'tests/ChunkData/Copies.cpp')
-rw-r--r--tests/ChunkData/Copies.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/ChunkData/Copies.cpp b/tests/ChunkData/Copies.cpp
index 788d2c558..312441eee 100644
--- a/tests/ChunkData/Copies.cpp
+++ b/tests/ChunkData/Copies.cpp
@@ -34,8 +34,8 @@ int main(int argc, char** argv)
buffer.SetBlockTypes(SrcBlockBuffer);
buffer.CopyBlockTypes(DstBlockBuffer);
testassert(memcmp(SrcBlockBuffer, DstBlockBuffer, (16 * 16 * 256) - 1) == 0);
-
}
+
{
cChunkData buffer;
@@ -57,9 +57,8 @@ int main(int argc, char** argv)
buffer.SetMetas(SrcNibbleBuffer);
buffer.CopyMetas(DstNibbleBuffer);
testassert(memcmp(SrcNibbleBuffer, DstNibbleBuffer, (16 * 16 * 256 / 2) - 1) == 0);
-
-
}
+
{
cChunkData buffer;
@@ -81,9 +80,8 @@ int main(int argc, char** argv)
buffer.SetBlockLight(SrcNibbleBuffer);
buffer.CopyBlockLight(DstNibbleBuffer);
testassert(memcmp(SrcNibbleBuffer, DstNibbleBuffer, (16 * 16 * 256 /2) - 1) == 0);
-
-
}
+
{
cChunkData buffer;
@@ -101,13 +99,12 @@ int main(int argc, char** argv)
buffer.CopySkyLight(DstNibbleBuffer);
testassert(memcmp(SrcNibbleBuffer, DstNibbleBuffer, (16 * 16 * 256 / 2) - 1) == 0);
-
memset(SrcNibbleBuffer, 0xFF, 16 * 16 * 256 / 2);
buffer.SetSkyLight(SrcNibbleBuffer);
buffer.CopySkyLight(DstNibbleBuffer);
testassert(memcmp(SrcNibbleBuffer, DstNibbleBuffer, (16 * 16 * 256 / 2) - 1) == 0);
-
}
+
{
cChunkData buffer;
@@ -131,4 +128,7 @@ int main(int argc, char** argv)
buffer.CopySkyLight(DstNibbleBuffer);
testassert(memcmp(SrcNibbleBuffer, DstNibbleBuffer, (16 * 16 * 256 / 2) - 1) == 0);
}
+
+ // All tests successful:
+ return 0;
}