diff options
author | Mattes D <github@xoft.cz> | 2015-06-11 22:20:04 +0200 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2015-06-11 22:20:04 +0200 |
commit | d390214929f4b280cc66cdbc170694ec9b1fa8c4 (patch) | |
tree | 3c49c75771ffd8931f47b895b2bd31014f7885d8 /src/WorldStorage | |
parent | Merge pull request #2162 from lkolbly/master (diff) | |
download | cuberite-d390214929f4b280cc66cdbc170694ec9b1fa8c4.tar cuberite-d390214929f4b280cc66cdbc170694ec9b1fa8c4.tar.gz cuberite-d390214929f4b280cc66cdbc170694ec9b1fa8c4.tar.bz2 cuberite-d390214929f4b280cc66cdbc170694ec9b1fa8c4.tar.lz cuberite-d390214929f4b280cc66cdbc170694ec9b1fa8c4.tar.xz cuberite-d390214929f4b280cc66cdbc170694ec9b1fa8c4.tar.zst cuberite-d390214929f4b280cc66cdbc170694ec9b1fa8c4.zip |
Diffstat (limited to '')
-rw-r--r-- | src/WorldStorage/SchematicFileSerializer.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/WorldStorage/SchematicFileSerializer.cpp b/src/WorldStorage/SchematicFileSerializer.cpp index fb881e290..199873968 100644 --- a/src/WorldStorage/SchematicFileSerializer.cpp +++ b/src/WorldStorage/SchematicFileSerializer.cpp @@ -9,6 +9,7 @@ #include "FastNBT.h" #include "SchematicFileSerializer.h" #include "../StringCompression.h" +#include "../SelfTests.h" @@ -21,6 +22,11 @@ static class cSchematicStringSelfTest public: cSchematicStringSelfTest(void) { + cSelfTests::Get().Register(cSelfTests::SelfTestFunction(&Test), "Schematic-to-string serialization"); + } + + static void Test(void) + { cBlockArea ba; ba.Create(21, 256, 21); ba.RelLine(0, 0, 0, 9, 8, 7, cBlockArea::baTypes | cBlockArea::baMetas, E_BLOCK_WOODEN_STAIRS, 1); |