diff options
author | Stefan Radomski <radomski@tk.informatik.tu-darmstadt.de> | 2013-08-01 12:55:04 (GMT) |
---|---|---|
committer | Stefan Radomski <radomski@tk.informatik.tu-darmstadt.de> | 2013-08-01 12:55:04 (GMT) |
commit | 3df6c9c6630f3b3b9b0876ae5bc8f2d12a15b253 (patch) | |
tree | 41f234c33e1e04015ef92a6b94212d9c7e97ad72 /test/src | |
parent | 720bbe5c1b8c0789b5c7ad9ffca33e52bf77f1da (diff) | |
download | uscxml-3df6c9c6630f3b3b9b0876ae5bc8f2d12a15b253.zip uscxml-3df6c9c6630f3b3b9b0876ae5bc8f2d12a15b253.tar.gz uscxml-3df6c9c6630f3b3b9b0876ae5bc8f2d12a15b253.tar.bz2 |
Bug fixes and version bump
- New calendar invoker
- Fixed memory leaks with JavaScriptCore
- Compiles on windows again
- Beautified source code indentation
Diffstat (limited to 'test/src')
-rw-r--r-- | test/src/test-arabica-parsing.cpp | 6 | ||||
-rw-r--r-- | test/src/test-datamodel.cpp | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/test/src/test-arabica-parsing.cpp b/test/src/test-arabica-parsing.cpp index 2a09dd6..24c58ae 100644 --- a/test/src/test-arabica-parsing.cpp +++ b/test/src/test-arabica-parsing.cpp @@ -22,7 +22,7 @@ int main(int argc, char** argv) { Arabica::SAX2DOM::Parser<std::string> domParser; Arabica::SAX::CatchErrorHandler<std::string> errorHandler; domParser.setErrorHandler(errorHandler); - + if(!domParser.parse(inputSource)) { std::cout << errorHandler.errors(); return -1; @@ -33,11 +33,11 @@ int main(int argc, char** argv) { { Arabica::SAX::InputSource<std::string> inputSource; inputSource.setSystemId("/Users/sradomski/Documents/TK/Code/uscxml/test/samples/uscxml/arabica/test-arabica-parsing.xml"); - + Arabica::SAX2DOM::Parser<std::string> domParser; Arabica::SAX::CatchErrorHandler<std::string> errorHandler; domParser.setErrorHandler(errorHandler); - + if(!domParser.parse(inputSource)) { std::cout << errorHandler.errors(); return -1; diff --git a/test/src/test-datamodel.cpp b/test/src/test-datamodel.cpp index 77f0851..b0ed107 100644 --- a/test/src/test-datamodel.cpp +++ b/test/src/test-datamodel.cpp @@ -18,7 +18,7 @@ int main(int argc, char** argv) { WSADATA wsaData; WSAStartup(MAKEWORD(2, 2), &wsaData); #endif - + DataModel dm(Factory::getInstance()->createDataModel("ecmascript", NULL)); dm.evalAsString("var foo = 12"); @@ -61,7 +61,7 @@ int main(int argc, char** argv) { std::cout << content << std::endl; assert(boost::equals(content, "${bar}")); } - + { std::string content = "There are ${bar} monkeys! Really ${foo} monkeys!"; int rplc = dm.replaceExpressions(content); |