summaryrefslogtreecommitdiffstats
path: root/test/src
diff options
context:
space:
mode:
Diffstat (limited to 'test/src')
-rw-r--r--test/src/test-url.cpp14
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;