summaryrefslogtreecommitdiffstats
path: root/tests/ChunkData
diff options
context:
space:
mode:
authorTycho <work.tycho+git@gmail.com>2014-05-21 20:58:48 +0200
committerTycho <work.tycho+git@gmail.com>2014-05-21 20:58:48 +0200
commit024027db89ca833406147b79b7be74fc92906bbe (patch)
tree844345e33c2a9c8fb7f5ca255f0bd1236a41b446 /tests/ChunkData
parentFixed minor style issues (diff)
downloadcuberite-024027db89ca833406147b79b7be74fc92906bbe.tar
cuberite-024027db89ca833406147b79b7be74fc92906bbe.tar.gz
cuberite-024027db89ca833406147b79b7be74fc92906bbe.tar.bz2
cuberite-024027db89ca833406147b79b7be74fc92906bbe.tar.lz
cuberite-024027db89ca833406147b79b7be74fc92906bbe.tar.xz
cuberite-024027db89ca833406147b79b7be74fc92906bbe.tar.zst
cuberite-024027db89ca833406147b79b7be74fc92906bbe.zip
Diffstat (limited to '')
-rw-r--r--tests/ChunkData/ArraytoCoord.cpp (renamed from tests/ChunkBuffer/ArraytoCoord.cpp)8
-rw-r--r--tests/ChunkData/CMakeLists.txt (renamed from tests/ChunkBuffer/CMakeLists.txt)2
-rw-r--r--tests/ChunkData/Coordinates.cpp (renamed from tests/ChunkBuffer/Coordinates.cpp)10
-rw-r--r--tests/ChunkData/Copies.cpp (renamed from tests/ChunkBuffer/Copies.cpp)14
-rw-r--r--tests/ChunkData/creatable.cpp (renamed from tests/ChunkBuffer/creatable.cpp)4
5 files changed, 19 insertions, 19 deletions
diff --git a/tests/ChunkBuffer/ArraytoCoord.cpp b/tests/ChunkData/ArraytoCoord.cpp
index 5563a3f86..fe82a3a7b 100644
--- a/tests/ChunkBuffer/ArraytoCoord.cpp
+++ b/tests/ChunkData/ArraytoCoord.cpp
@@ -1,6 +1,6 @@
#include "TestGlobals.h"
-#include "ChunkBuffer.h"
+#include "ChunkData.h"
@@ -8,7 +8,7 @@ int main(int argc, char** argv)
{
{
// Test first segment
- cChunkBuffer buffer;
+ cChunkData buffer;
BLOCKTYPE* SrcBlockBuffer = new BLOCKTYPE[16 * 16 * 256];
memset(SrcBlockBuffer, 0x00, 16 * 16 * 256);
@@ -45,7 +45,7 @@ int main(int argc, char** argv)
{
// test following segment
- cChunkBuffer buffer;
+ cChunkData buffer;
BLOCKTYPE* SrcBlockBuffer = new BLOCKTYPE[16 * 16 * 256];
memset(SrcBlockBuffer, 0x00, 16 * 16 * 256);
@@ -82,7 +82,7 @@ int main(int argc, char** argv)
{
// test zeros
- cChunkBuffer buffer;
+ cChunkData buffer;
BLOCKTYPE* SrcBlockBuffer = new BLOCKTYPE[16 * 16 * 256];
memset(SrcBlockBuffer, 0x00, 16 * 16 * 256);
diff --git a/tests/ChunkBuffer/CMakeLists.txt b/tests/ChunkData/CMakeLists.txt
index b216b1d39..3f6653bb5 100644
--- a/tests/ChunkBuffer/CMakeLists.txt
+++ b/tests/ChunkData/CMakeLists.txt
@@ -4,7 +4,7 @@ enable_testing()
include_directories(${CMAKE_SOURCE_DIR}/src/)
-add_library(ChunkBuffer ${CMAKE_SOURCE_DIR}/src/ChunkBuffer.cpp)
+add_library(ChunkBuffer ${CMAKE_SOURCE_DIR}/src/ChunkData.cpp)
add_executable(creatable-exe creatable.cpp)
diff --git a/tests/ChunkBuffer/Coordinates.cpp b/tests/ChunkData/Coordinates.cpp
index bed61d5dc..c0c46000e 100644
--- a/tests/ChunkBuffer/Coordinates.cpp
+++ b/tests/ChunkData/Coordinates.cpp
@@ -1,13 +1,13 @@
#include "TestGlobals.h"
-#include "ChunkBuffer.h"
+#include "ChunkData.h"
int main(int argc, char** argv)
{
{
- cChunkBuffer buffer;
+ cChunkData buffer;
// Empty chunks
buffer.SetBlock(0,0,0, 0xAB);
@@ -105,7 +105,7 @@ int main(int argc, char** argv)
}
{
- cChunkBuffer buffer;
+ cChunkData buffer;
// Zero's
buffer.SetBlock(0,0,0, 0x0);
@@ -122,9 +122,9 @@ int main(int argc, char** argv)
{
// Operator =
- cChunkBuffer buffer;
+ cChunkData buffer;
buffer.SetBlock(0,0,0,0x42);
- cChunkBuffer copy;
+ cChunkData copy;
#if __cplusplus < 201103L
copy = buffer;
#else
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);
diff --git a/tests/ChunkBuffer/creatable.cpp b/tests/ChunkData/creatable.cpp
index 49204c879..74025cb14 100644
--- a/tests/ChunkBuffer/creatable.cpp
+++ b/tests/ChunkData/creatable.cpp
@@ -1,9 +1,9 @@
#include "TestGlobals.h"
-#include "ChunkBuffer.h"
+#include "ChunkData.h"
int main(int argc, char** argv)
{
- cChunkBuffer buffer;
+ cChunkData buffer;
return 0;
}