diff options
author | tycho <work.tycho@gmail.com> | 2015-12-15 23:14:21 +0100 |
---|---|---|
committer | tycho <work.tycho@gmail.com> | 2016-01-18 17:31:46 +0100 |
commit | c0c0c784898e8570a368c0cb33d8c0808e03486c (patch) | |
tree | 06d157c79cf89fb9565865aa650dba9be7c093b4 | |
parent | First NBT Tests (diff) | |
download | cuberite-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.cpp | 13 |
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()); + } } |