summaryrefslogtreecommitdiffstats
path: root/tests/WorldStorage/FastNBT/Parse.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/WorldStorage/FastNBT/Parse.cpp')
-rw-r--r--tests/WorldStorage/FastNBT/Parse.cpp26
1 files changed, 26 insertions, 0 deletions
diff --git a/tests/WorldStorage/FastNBT/Parse.cpp b/tests/WorldStorage/FastNBT/Parse.cpp
new file mode 100644
index 000000000..a57e5861e
--- /dev/null
+++ b/tests/WorldStorage/FastNBT/Parse.cpp
@@ -0,0 +1,26 @@
+#include "Globals.h"
+#include "WorldStorage/FastNBT.h"
+
+int main() {
+ {
+ cParsedNBT nbt{nullptr, 0};
+
+ testassert(!nbt.IsValid());
+ }
+
+ {
+ cParsedNBT nbt{nullptr, 2};
+
+ testassert(!nbt.IsValid());
+ }
+ {
+ cParsedNBT nbt{"", 3};
+
+ testassert(!nbt.IsValid());
+ }
+ {
+ cParsedNBT nbt{nullptr, 3};
+
+ testassert(!nbt.IsValid());
+ }
+}