diff options
| author | ljfa-ag <ljfa-ag@web.de> | 2015-07-09 18:09:06 +0200 |
|---|---|---|
| committer | ljfa-ag <ljfa-ag@web.de> | 2015-07-09 18:09:06 +0200 |
| commit | 4945e533c37d261e82d34ea129f441be06385cce (patch) | |
| tree | a8c36c3f35a524f54c2964616722bed1934b3763 /test | |
| parent | ea71042f79738bcdc08fe3bfa0a2f9cd1c0c03ac (diff) | |
| download | Project-Tick-4945e533c37d261e82d34ea129f441be06385cce.tar.gz Project-Tick-4945e533c37d261e82d34ea129f441be06385cce.zip | |
Create tag_compound::insert method
Diffstat (limited to 'test')
| -rw-r--r-- | test/nbttest.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/test/nbttest.cpp b/test/nbttest.cpp index 42f8bd25f4..f4d0405273 100644 --- a/test/nbttest.cpp +++ b/test/nbttest.cpp @@ -144,9 +144,14 @@ void test_tag_compound() ASSERT(comp.put("abc", value(tag_double(6.0))).second == true); ASSERT(comp.put("abc", value(tag_long(-28))).second == false); + ASSERT(comp.insert("ghi", value(tag_string("world"))).second == true); + ASSERT(comp.insert("abc", value(tag_string("hello"))).second == false); ASSERT(comp.emplace<tag_string>("def", "ghi").second == true); ASSERT(comp.emplace<tag_byte>("def", 4).second == false); - ASSERT((comp == tag_compound{{"abc", tag_long(-28)}, {"def", tag_byte(4)}})); + ASSERT((comp == tag_compound{ + {"abc", tag_long(-28)}, + {"def", tag_byte(4)}, + {"ghi", tag_string("world")}})); std::clog << "test_tag_compound passed" << std::endl; } |
