summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/nbttest.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/nbttest.cpp b/test/nbttest.cpp
index 7b47d42f8f..419421f1b8 100644
--- a/test/nbttest.cpp
+++ b/test/nbttest.cpp
@@ -61,18 +61,18 @@ void test_tag_string()
ASSERT(tag.get() == "foo");
std::string& ref = tag;
ref = "bar";
- ASSERT(tag == "bar");
- ASSERT(tag != "foo");
+ ASSERT(tag.get() == "bar");
+ ASSERT(tag.get() != "foo");
tag.set("baz");
ASSERT(ref == "baz");
tag = "quux";
ASSERT("quux" == static_cast<std::string>(tag));
std::string str("foo");
tag = str;
- ASSERT(tag == str);
+ ASSERT(tag.get() == str);
- ASSERT(tag_string(str) == "foo");
- ASSERT(tag_string() == "");
+ ASSERT(tag_string(str).get() == "foo");
+ ASSERT(tag_string().get() == "");
}
void test_tag_compound()