diff options
Diffstat (limited to 'test/nbttest.cpp')
| -rw-r--r-- | test/nbttest.cpp | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/test/nbttest.cpp b/test/nbttest.cpp index eead43efd0..23e6a1a80b 100644 --- a/test/nbttest.cpp +++ b/test/nbttest.cpp @@ -1,9 +1,20 @@ #include "microtest.h" -#include "tag.h" -#include <cstdlib> +#include "libnbt.h" #include <iostream> +using namespace nbt; + +void test_get_type() +{ + ASSERT(tag_byte().get_type() == tag_type::Byte); + ASSERT(tag_short().get_type() == tag_type::Short); + ASSERT(tag_int().get_type() == tag_type::Int); + ASSERT(tag_long().get_type() == tag_type::Long); + ASSERT(tag_float().get_type() == tag_type::Float); + ASSERT(tag_double().get_type() == tag_type::Double); +} + int main() { - return EXIT_SUCCESS; + test_get_type(); } |
