diff options
| author | ljfa-ag <ljfa-ag@web.de> | 2015-07-09 18:00:42 +0200 |
|---|---|---|
| committer | ljfa-ag <ljfa-ag@web.de> | 2015-07-09 18:00:42 +0200 |
| commit | ea71042f79738bcdc08fe3bfa0a2f9cd1c0c03ac (patch) | |
| tree | d6d9a00d078fc3a5f94a2caca86b6c34d83943f6 /test/nbttest.cpp | |
| parent | 4efbf602230c39b311655a726903478977f53b79 (diff) | |
| download | Project-Tick-ea71042f79738bcdc08fe3bfa0a2f9cd1c0c03ac.tar.gz Project-Tick-ea71042f79738bcdc08fe3bfa0a2f9cd1c0c03ac.zip | |
Change signature of put to take value
Diffstat (limited to 'test/nbttest.cpp')
| -rw-r--r-- | test/nbttest.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/nbttest.cpp b/test/nbttest.cpp index 5470b047ab..42f8bd25f4 100644 --- a/test/nbttest.cpp +++ b/test/nbttest.cpp @@ -142,8 +142,8 @@ void test_tag_compound() comp.clear(); ASSERT(comp == tag_compound{}); - ASSERT(comp.put("abc", std::unique_ptr<tag>(new tag_double(6.0))).second == true); - ASSERT(comp.put("abc", std::unique_ptr<tag>(new tag_long(-28))).second == false); + ASSERT(comp.put("abc", value(tag_double(6.0))).second == true); + ASSERT(comp.put("abc", value(tag_long(-28))).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)}})); |
