diff options
Diffstat (limited to 'test/nbttest.cpp')
| -rw-r--r-- | test/nbttest.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/nbttest.cpp b/test/nbttest.cpp index e6256fe8c5..89181a73c3 100644 --- a/test/nbttest.cpp +++ b/test/nbttest.cpp @@ -52,6 +52,10 @@ void test_tag_primitive() tag = 7; ASSERT(7 == static_cast<int>(tag)); + ASSERT(tag == tag_int(7)); + ASSERT(tag_float(2.5) != tag_float(-2.5)); + ASSERT(tag_float(2.5) != tag_double(2.5)); + ASSERT(tag_double() == 0.0); ASSERT(tag_byte(INT8_MAX).get() == INT8_MAX); |
