diff options
author | Stefan Radomski <radomski@tk.informatik.tu-darmstadt.de> | 2014-08-15 10:08:41 (GMT) |
---|---|---|
committer | Stefan Radomski <radomski@tk.informatik.tu-darmstadt.de> | 2014-08-15 10:08:41 (GMT) |
commit | 9149b28c87c7a037dfd244aa5d4c1409b6593dca (patch) | |
tree | 939c00d28864910a0ca8a67e70fadae9b6f05cc7 /test/src/test-arabica-namespaces.cpp | |
parent | 322e868668a1e5b9595a21737aabe8d0d8b8d275 (diff) | |
download | uscxml-9149b28c87c7a037dfd244aa5d4c1409b6593dca.zip uscxml-9149b28c87c7a037dfd244aa5d4c1409b6593dca.tar.gz uscxml-9149b28c87c7a037dfd244aa5d4c1409b6593dca.tar.bz2 |
More JVoiceXML integration
Diffstat (limited to 'test/src/test-arabica-namespaces.cpp')
-rw-r--r-- | test/src/test-arabica-namespaces.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/test/src/test-arabica-namespaces.cpp b/test/src/test-arabica-namespaces.cpp index bc3e62f..32feacd 100644 --- a/test/src/test-arabica-namespaces.cpp +++ b/test/src/test-arabica-namespaces.cpp @@ -95,8 +95,8 @@ static void validateRootFoo(std::pair<Document<std::string>, NameSpaceInfo>& par Node<std::string> root = document.getDocumentElement(); _xpath.setNamespaceContext(*nsInfo.getNSContext()); - assert(TAGNAME(root) == nsInfo.xmlNSPrefix + "root"); - assert(LOCALNAME(root) == "root"); + assert(TAGNAME_CAST(root) == nsInfo.xmlNSPrefix + "root"); + assert(LOCALNAME_CAST(root) == "root"); NodeSet<std::string> foosFiltered = InterpreterImpl::filterChildElements(nsInfo.xmlNSPrefix + "foo", root); assert(foosFiltered.size() == 3); NodeSet<std::string> foosXPath = _xpath.evaluate("//" + nsInfo.xpathPrefix + "foo", root).asNodeSet(); @@ -104,8 +104,8 @@ static void validateRootFoo(std::pair<Document<std::string>, NameSpaceInfo>& par for (int i = 0; i < 3; i++) { assert(foosFiltered[i] == foosXPath[i]); - assert(TAGNAME(foosFiltered[i]) == nsInfo.xmlNSPrefix + "foo"); - assert(LOCALNAME(foosFiltered[i]) == "foo"); + assert(TAGNAME_CAST(foosFiltered[i]) == nsInfo.xmlNSPrefix + "foo"); + assert(LOCALNAME_CAST(foosFiltered[i]) == "foo"); } } @@ -126,8 +126,8 @@ static void validateRootFooBar(std::pair<Document<std::string>, NameSpaceInfo>& for (int i = 0; i < 3; i++) { assert(barsFiltered[i] == barsXPath[i]); - assert(TAGNAME(barsFiltered[i]) == nsInfo.xmlNSPrefix + "bar"); - assert(LOCALNAME(barsFiltered[i]) == "bar"); + assert(TAGNAME_CAST(barsFiltered[i]) == nsInfo.xmlNSPrefix + "bar"); + assert(LOCALNAME_CAST(barsFiltered[i]) == "bar"); } } @@ -141,8 +141,8 @@ static void validateRootFooBarBaz(std::pair<Document<std::string>, NameSpaceInfo Node<std::string> root = document.getDocumentElement(); _xpath.setNamespaceContext(*nsInfo.getNSContext()); - assert(TAGNAME(root) == nsInfo.xmlNSPrefix + "root"); - assert(LOCALNAME(root) == "root"); + assert(TAGNAME_CAST(root) == nsInfo.xmlNSPrefix + "root"); + assert(LOCALNAME_CAST(root) == "root"); NodeSet<std::string> bazsFiltered = InterpreterImpl::filterChildElements(nsInfo.xmlNSPrefix + "baz", root); assert(bazsFiltered.size() == 3); @@ -151,8 +151,8 @@ static void validateRootFooBarBaz(std::pair<Document<std::string>, NameSpaceInfo for (int i = 0; i < 3; i++) { assert(bazsFiltered[i] == bazsXPath[i]); - assert(TAGNAME(bazsFiltered[i]) == nsInfo.xmlNSPrefix + "baz"); - assert(LOCALNAME(bazsFiltered[i]) == "baz"); + assert(TAGNAME_CAST(bazsFiltered[i]) == nsInfo.xmlNSPrefix + "baz"); + assert(LOCALNAME_CAST(bazsFiltered[i]) == "baz"); } } |