From c0c0c784898e8570a368c0cb33d8c0808e03486c Mon Sep 17 00:00:00 2001 From: tycho Date: Tue, 15 Dec 2015 22:14:21 +0000 Subject: More tests --- tests/WorldStorage/FastNBT/Parse.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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()); + } } -- cgit v1.2.3