From 7e3bd6ce1cc07dab0b5f7aaf30d213af802dbd0a Mon Sep 17 00:00:00 2001 From: ljfa-ag Date: Thu, 6 Aug 2015 10:49:08 +0200 Subject: Add stream_reader::read_tag method --- test/io/read_test.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'test/io/read_test.cpp') diff --git a/test/io/read_test.cpp b/test/io/read_test.cpp index a6de378e1d..0b29483f1e 100644 --- a/test/io/read_test.cpp +++ b/test/io/read_test.cpp @@ -104,12 +104,11 @@ void test_read_bigtest() ASSERT(file); nbt::io::stream_reader reader(file); - ASSERT(reader.read_type() == tag_type::Compound); - ASSERT(reader.read_string() == "Level"); - auto tagptr = reader.read_payload(tag_type::Compound); + auto pair = reader.read_tag(); + ASSERT(pair.first == "Level"); - ASSERT(tagptr->get_type() == tag_type::Compound); - const tag_compound& comp = tagptr->as(); + ASSERT(pair.second->get_type() == tag_type::Compound); + const tag_compound& comp = pair.second->as(); ASSERT(comp.size() == 13); -- cgit 0.0.5-2-1-g0f52