diff options
author | madmaxoft <github@xoft.cz> | 2014-05-30 09:17:50 +0200 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2014-05-30 09:17:50 +0200 |
commit | 0b49529e4273a96e7f582ef4c321eaf8d65c629f (patch) | |
tree | d50aba16937d773d22df7f0468f7fd843fc9c19b /tests/ChunkData/Copies.cpp | |
parent | Fixed wrong copy sizes in cChunkData. (diff) | |
download | cuberite-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 '')
-rw-r--r-- | tests/ChunkData/Copies.cpp | 14 |
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; } |