summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortycho <work.tycho@gmail.com>2015-12-15 23:14:21 +0100
committertycho <work.tycho@gmail.com>2016-01-18 17:31:46 +0100
commitc0c0c784898e8570a368c0cb33d8c0808e03486c (patch)
tree06d157c79cf89fb9565865aa650dba9be7c093b4
parentFirst NBT Tests (diff)
downloadcuberite-c0c0c784898e8570a368c0cb33d8c0808e03486c.tar
cuberite-c0c0c784898e8570a368c0cb33d8c0808e03486c.tar.gz
cuberite-c0c0c784898e8570a368c0cb33d8c0808e03486c.tar.bz2
cuberite-c0c0c784898e8570a368c0cb33d8c0808e03486c.tar.lz
cuberite-c0c0c784898e8570a368c0cb33d8c0808e03486c.tar.xz
cuberite-c0c0c784898e8570a368c0cb33d8c0808e03486c.tar.zst
cuberite-c0c0c784898e8570a368c0cb33d8c0808e03486c.zip
-rw-r--r--tests/WorldStorage/FastNBT/Parse.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/WorldStorage/FastNBT/Parse.cpp b/tests/WorldStorage/FastNBT/Parse.cpp
index a57e5861e..94136a3ae 100644
--- a/tests/WorldStorage/FastNBT/Parse.cpp
+++ b/tests/WorldStorage/FastNBT/Parse.cpp
@@ -23,4 +23,17 @@ int main() {
testassert(!nbt.IsValid());
}
+
+ {
+ char data[] = {10, 0, 0, 0x7F, -0x7F};
+ cParsedNBT nbt{data, 5};
+
+ testassert(!nbt.IsValid());
+ }
+ {
+ char data[] = {2, 0, 0, 0x7F, -0x7F};
+ cParsedNBT nbt{data, 5};
+
+ testassert(!nbt.IsValid());
+ }
}