diff options
author | Stefan Radomski <radomski@tk.informatik.tu-darmstadt.de> | 2013-03-22 13:32:20 (GMT) |
---|---|---|
committer | Stefan Radomski <radomski@tk.informatik.tu-darmstadt.de> | 2013-03-22 13:32:20 (GMT) |
commit | 75c3239c820cfbd7c903cb30de06aebab112e4c2 (patch) | |
tree | 9a7eed459a1950714b8ec5ca3b379156b46452b8 /test/src | |
parent | dbc9a01b53cf5d069a176f47d24de81c1c5efd69 (diff) | |
download | uscxml-75c3239c820cfbd7c903cb30de06aebab112e4c2.zip uscxml-75c3239c820cfbd7c903cb30de06aebab112e4c2.tar.gz uscxml-75c3239c820cfbd7c903cb30de06aebab112e4c2.tar.bz2 |
Some minor bugfixes
- Disabled peer verification with ssl URLs
- Fixed a buffer overrun with JSON parsing
- Changed test.php url to github
Diffstat (limited to 'test/src')
-rw-r--r-- | test/src/test-url.cpp | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/test/src/test-url.cpp b/test/src/test-url.cpp index 5d497e3..bbe4dbc 100644 --- a/test/src/test-url.cpp +++ b/test/src/test-url.cpp @@ -55,7 +55,7 @@ int main(int argc, char** argv) { HTTPServer::unregisterServlet(testServlet2); HTTPServer::unregisterServlet(testServlet3); } - + { Data data = Data::fromJSON("asdf"); std::cout << data << std::endl; @@ -82,7 +82,19 @@ int main(int argc, char** argv) { assert(iequals(url.port(), "80")); assert(iequals(url.path(), "/index.html")); assert(iequals(url.asString(), "http://www.heise.de/index.html")); + std::stringstream content; + content << url; + } + + { + URL url("https://raw.github.com/tklab-tud/uscxml/master/test/samples/uscxml/test-ecmascript.scxml"); + std::cout << url.asString() << std::endl; + assert(url.isAbsolute()); + assert(iequals(url.scheme(), "https")); + std::stringstream content; + content << url; } + { URL url("file:Document/Text.foo"); std::cout << url.asString() << std::endl; |