summaryrefslogtreecommitdiffstats
path: root/tests/ChunkData/Copies.cpp
diff options
context:
space:
mode:
authorTycho <work.tycho+git@gmail.com>2014-05-23 16:02:55 +0200
committerTycho <work.tycho+git@gmail.com>2014-05-23 16:02:55 +0200
commit5a76eab4c0ff309886cb407ba6b9d84516db11ff (patch)
tree51997884fc6c7407b1737dee014f94cea977b57a /tests/ChunkData/Copies.cpp
parentAdded callback for stopping starvation mode (diff)
parentIgnore CTest files (diff)
downloadcuberite-5a76eab4c0ff309886cb407ba6b9d84516db11ff.tar
cuberite-5a76eab4c0ff309886cb407ba6b9d84516db11ff.tar.gz
cuberite-5a76eab4c0ff309886cb407ba6b9d84516db11ff.tar.bz2
cuberite-5a76eab4c0ff309886cb407ba6b9d84516db11ff.tar.lz
cuberite-5a76eab4c0ff309886cb407ba6b9d84516db11ff.tar.xz
cuberite-5a76eab4c0ff309886cb407ba6b9d84516db11ff.tar.zst
cuberite-5a76eab4c0ff309886cb407ba6b9d84516db11ff.zip
Diffstat (limited to '')
-rw-r--r--tests/ChunkData/Copies.cpp (renamed from tests/ChunkBuffer/Copies.cpp)14
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/ChunkBuffer/Copies.cpp b/tests/ChunkData/Copies.cpp
index 76af81496..145ffd8e0 100644
--- a/tests/ChunkBuffer/Copies.cpp
+++ b/tests/ChunkData/Copies.cpp
@@ -1,18 +1,18 @@
#include "TestGlobals.h"
-#include "ChunkBuffer.h"
+#include "ChunkData.h"
int main(int argc, char** argv)
{
{
- cChunkBuffer buffer;
+ cChunkData buffer;
buffer.SetBlock(3,1,4,0xDE);
buffer.SetMeta(3,1,4,0xA);
- cChunkBuffer copy = buffer.Copy();
+ cChunkData copy = buffer.Copy();
testassert(copy.GetBlock(3,1,4) == 0xDE);
testassert(copy.GetMeta(3,1,4) == 0xA);
@@ -47,7 +47,7 @@ int main(int argc, char** argv)
}
{
- cChunkBuffer buffer;
+ cChunkData buffer;
NIBBLETYPE * SrcNibbleBuffer = new NIBBLETYPE[16 * 16 * 256/2];
for (int i = 0; i < 16 * 16 * 256 / 2; i += 4)
@@ -80,7 +80,7 @@ int main(int argc, char** argv)
}
{
- cChunkBuffer buffer;
+ cChunkData buffer;
NIBBLETYPE * SrcNibbleBuffer = new NIBBLETYPE[16 * 16 * 256/2];
for (int i = 0; i < 16 * 16 * 256 / 2; i += 4)
@@ -114,7 +114,7 @@ int main(int argc, char** argv)
}
{
- cChunkBuffer buffer;
+ cChunkData buffer;
NIBBLETYPE * SrcNibbleBuffer = new NIBBLETYPE[16 * 16 * 256/2];
for (int i = 0; i < 16 * 16 * 256 / 2; i += 4)
@@ -148,7 +148,7 @@ int main(int argc, char** argv)
}
{
- cChunkBuffer buffer;
+ cChunkData buffer;
BLOCKTYPE * SrcBlockBuffer = new BLOCKTYPE[16 * 16 * 256];
memset(SrcBlockBuffer, 0x00, 16 * 16 * 256);