summaryrefslogtreecommitdiff
path: root/src/test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/test.cpp')
-rw-r--r--src/test.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test.cpp b/src/test.cpp
index b95b379..7a2051f 100644
--- a/src/test.cpp
+++ b/src/test.cpp
@@ -87,7 +87,7 @@ int main()
{
std::cout << stanza.to_string() << std::endl;
assert(stanza.get_name() == "stream_ns:stanza");
- assert(stanza["b"] == "c");
+ assert(stanza.get_tag("b") == "c");
assert(stanza.get_inner() == "inner");
assert(stanza.get_tail() == "");
assert(stanza.get_child("stream_ns:child1") != nullptr);