summaryrefslogtreecommitdiffstats
path: root/tests/ChunkBuffer
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ChunkBuffer')
-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;
+}