summaryrefslogtreecommitdiffstats
path: root/tests/ChunkBuffer/Coordinates.cpp
diff options
context:
space:
mode:
authorTycho <work.tycho+git@gmail.com>2014-05-10 14:03:36 +0200
committerTycho <work.tycho+git@gmail.com>2014-05-10 14:03:36 +0200
commit77395b37390ecf23218659925c61e0a9b44d8476 (patch)
tree7daf8cc9e6d1ba91602f34f516a2a4191ec13fe0 /tests/ChunkBuffer/Coordinates.cpp
parentMerge branch 'master' into chunksparsing/structs (diff)
downloadcuberite-77395b37390ecf23218659925c61e0a9b44d8476.tar
cuberite-77395b37390ecf23218659925c61e0a9b44d8476.tar.gz
cuberite-77395b37390ecf23218659925c61e0a9b44d8476.tar.bz2
cuberite-77395b37390ecf23218659925c61e0a9b44d8476.tar.lz
cuberite-77395b37390ecf23218659925c61e0a9b44d8476.tar.xz
cuberite-77395b37390ecf23218659925c61e0a9b44d8476.tar.zst
cuberite-77395b37390ecf23218659925c61e0a9b44d8476.zip
Diffstat (limited to '')
-rw-r--r--tests/ChunkBuffer/Coordinates.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/ChunkBuffer/Coordinates.cpp b/tests/ChunkBuffer/Coordinates.cpp
new file mode 100644
index 000000000..d61eda7ad
--- /dev/null
+++ b/tests/ChunkBuffer/Coordinates.cpp
@@ -0,0 +1,15 @@
+
+#include "TestGlobals.h"
+#include "ChunkBuffer.h"
+
+
+
+int main(int argc, char** argv)
+{
+ cChunkBuffer buffer;
+ buffer.SetBlock(0,0,0, 0xAB);
+ assert(buffer.GetBlock(0,0,0) == 0xAB);
+ buffer.SetMeta(0,16,0, 0xC);
+ assert(buffer.GetMeta(0,16,0) == 0xC);
+ return 0;
+}