diff options
author | Florent Le Coz <louiz@louiz.org> | 2014-04-11 23:06:13 +0200 |
---|---|---|
committer | Florent Le Coz <louiz@louiz.org> | 2014-04-11 23:06:13 +0200 |
commit | f00f5c3ffbc72652568c75de6e48e41b3275fb0a (patch) | |
tree | 748913901fe05864d8cd83b6fceba3ae6f6d9621 /src/test.cpp | |
parent | a20c60a0d84f2f22777e3831cac1315302b7a095 (diff) | |
download | biboumi-f00f5c3ffbc72652568c75de6e48e41b3275fb0a.tar.gz biboumi-f00f5c3ffbc72652568c75de6e48e41b3275fb0a.tar.bz2 biboumi-f00f5c3ffbc72652568c75de6e48e41b3275fb0a.tar.xz biboumi-f00f5c3ffbc72652568c75de6e48e41b3275fb0a.zip |
Do not use exceptions for missing tags, improvement in code simplicity
Diffstat (limited to 'src/test.cpp')
-rw-r--r-- | src/test.cpp | 2 |
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); |