diff options
| author | ljfa-ag <ljfa-ag@web.de> | 2015-07-17 19:49:21 +0200 |
|---|---|---|
| committer | ljfa-ag <ljfa-ag@web.de> | 2015-07-17 19:49:21 +0200 |
| commit | f5fc52e27b54a47ee86edfe9ba002426a4833d3d (patch) | |
| tree | 962bed2103c9b1ded57c69d7bbcf88f9f670c584 /test/nbttest.cpp | |
| parent | 578dd6911154a836cda92b5d2cef15efae7c96b9 (diff) | |
| download | Project-Tick-f5fc52e27b54a47ee86edfe9ba002426a4833d3d.tar.gz Project-Tick-f5fc52e27b54a47ee86edfe9ba002426a4833d3d.zip | |
Overload has_key with version that takes tag_type
Diffstat (limited to 'test/nbttest.cpp')
| -rw-r--r-- | test/nbttest.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/nbttest.cpp b/test/nbttest.cpp index 89181a73c3..14f10975fd 100644 --- a/test/nbttest.cpp +++ b/test/nbttest.cpp @@ -153,8 +153,14 @@ void test_tag_compound() ASSERT(comp.erase("nothing") == false); ASSERT(comp.has_key("quux")); + ASSERT(comp.has_key("quux", tag_type::Compound)); + ASSERT(!comp.has_key("quux", tag_type::List)); + ASSERT(!comp.has_key("quux", tag_type::Null)); + ASSERT(comp.erase("quux") == true); ASSERT(!comp.has_key("quux")); + ASSERT(!comp.has_key("quux", tag_type::Compound)); + ASSERT(!comp.has_key("quux", tag_type::Null)); comp.clear(); ASSERT(comp == tag_compound{}); |
