diff options
| author | ljfa-ag <ljfa-ag@web.de> | 2015-07-15 21:49:04 +0200 |
|---|---|---|
| committer | ljfa-ag <ljfa-ag@web.de> | 2015-07-15 21:56:58 +0200 |
| commit | ce3287483e396697d9c4b50629b6c4d3581bdec4 (patch) | |
| tree | f7cb421a0b787ea85c19a28efecda455d8c467db /test/nbttest.cpp | |
| parent | 189451e21e0e8603270a9b03adda46e9b9509143 (diff) | |
| download | Project-Tick-ce3287483e396697d9c4b50629b6c4d3581bdec4.tar.gz Project-Tick-ce3287483e396697d9c4b50629b6c4d3581bdec4.zip | |
Need to enforce operator!= too
...come on, it's worth the shorter compilation time
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); |
