diff options
author | Stefan Radomski <radomski@tk.informatik.tu-darmstadt.de> | 2013-10-27 20:26:07 (GMT) |
---|---|---|
committer | Stefan Radomski <radomski@tk.informatik.tu-darmstadt.de> | 2013-10-27 20:26:07 (GMT) |
commit | 0a9c4c2e8f10de0323503fd5f2b11f31314b380c (patch) | |
tree | 2d5f6c0659df463b103fe376af72ce5ab173b5cf /test/src | |
parent | 1e42b29439d247598d58aac10f62c77cf2f31f12 (diff) | |
download | uscxml-0a9c4c2e8f10de0323503fd5f2b11f31314b380c.zip uscxml-0a9c4c2e8f10de0323503fd5f2b11f31314b380c.tar.gz uscxml-0a9c4c2e8f10de0323503fd5f2b11f31314b380c.tar.bz2 |
Added XML node to DataModel::evalAsBool signature to enable script caching
Diffstat (limited to 'test/src')
-rw-r--r-- | test/src/test-predicates.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/src/test-predicates.cpp b/test/src/test-predicates.cpp index 336a56b..b3e46fe 100644 --- a/test/src/test-predicates.cpp +++ b/test/src/test-predicates.cpp @@ -43,6 +43,13 @@ int main(int argc, char** argv) { assert(Interpreter::isDescendant(compoundChild1, compoundState)); + std::string idrefs("id1 \nid2 \tid3"); + std::vector<std::string> tokenizedIdrefs = Interpreter::tokenizeIdRefs(idrefs); + assert(tokenizedIdrefs.size() == 3); + assert(tokenizedIdrefs[0].compare("id1") == 0); + assert(tokenizedIdrefs[1].compare("id2") == 0); + assert(tokenizedIdrefs[2].compare("id3") == 0); + std::string transEvents; transEvents = "error"; assert(InterpreterImpl::nameMatch(transEvents, "error")); |