summaryrefslogtreecommitdiffstats
path: root/test/src/test-cmdline-parsing.cpp
diff options
context:
space:
mode:
authorStefan Radomski <radomski@tk.informatik.tu-darmstadt.de>2014-07-15 10:17:15 (GMT)
committerStefan Radomski <radomski@tk.informatik.tu-darmstadt.de>2014-07-15 10:17:15 (GMT)
commit61439d49e15045bbe9c3cf55b62fc15909dd48e2 (patch)
tree6bfacf394b186226e0ba5308d8fcd735203e52a4 /test/src/test-cmdline-parsing.cpp
parentdbd110e2b7eb08c65218a5f9d09ef12fdc62c04a (diff)
downloaduscxml-61439d49e15045bbe9c3cf55b62fc15909dd48e2.zip
uscxml-61439d49e15045bbe9c3cf55b62fc15909dd48e2.tar.gz
uscxml-61439d49e15045bbe9c3cf55b62fc15909dd48e2.tar.bz2
Improved support for dot output
Diffstat (limited to 'test/src/test-cmdline-parsing.cpp')
-rw-r--r--test/src/test-cmdline-parsing.cpp24
1 files changed, 14 insertions, 10 deletions
diff --git a/test/src/test-cmdline-parsing.cpp b/test/src/test-cmdline-parsing.cpp
index 341f24e..6fa0c57 100644
--- a/test/src/test-cmdline-parsing.cpp
+++ b/test/src/test-cmdline-parsing.cpp
@@ -47,7 +47,7 @@ int main(int argc, char** argv) {
assert(options);
assert(options.verbose);
assert(options.interpreters.size() == 1);
- assert(options.interpreters.find("/foo/bar.scxml") != options.interpreters.end());
+ assert(options.interpreters.front().first == "/foo/bar.scxml");
}
if (true) {
@@ -66,12 +66,13 @@ int main(int argc, char** argv) {
assert(options);
assert(options.httpPort == 80);
assert(options.interpreters.size() == 3);
- assert(options.interpreters.find("/foo/bar1.scxml") != options.interpreters.end());
- assert(options.interpreters.find("/foo/bar2.scxml") != options.interpreters.end());
- assert(options.interpreters.find("/foo/bar3.scxml") != options.interpreters.end());
- assert(!options.interpreters["/foo/bar1.scxml"]->withHTTP);
- assert(options.interpreters["/foo/bar2.scxml"]->withHTTP);
- assert(!options.interpreters["/foo/bar3.scxml"]->withHTTP);
+ assert(options.interpreters[0].first == "/foo/bar1.scxml");
+ assert(options.interpreters[1].first == "/foo/bar2.scxml");
+ assert(options.interpreters[2].first == "/foo/bar3.scxml");
+
+ assert(!options.interpreters[0].second->withHTTP);
+ assert(options.interpreters[1].second->withHTTP);
+ assert(!options.interpreters[2].second->withHTTP);
}
if (true) {
@@ -88,9 +89,12 @@ int main(int argc, char** argv) {
assert(options);
assert(options.httpPort == 80);
assert(options.interpreters.size() == 1);
- assert(options.interpreters.find("/foo/bar1.scxml") != options.interpreters.end());
- assert(options.interpreters["/foo/bar1.scxml"]->additionalParameters.find("vrml-path") != options.interpreters["/foo/bar1.scxml"]->additionalParameters.end());
- assert(options.interpreters["/foo/bar1.scxml"]->additionalParameters.find("tmp-path") != options.interpreters["/foo/bar1.scxml"]->additionalParameters.end());
+ assert(options.interpreters[0].first == "/foo/bar1.scxml");
+
+ assert(options.interpreters[0].second->additionalParameters.find("vrml-path")
+ != options.interpreters[0].second->additionalParameters.end());
+ assert(options.interpreters[0].second->additionalParameters.find("tmp-path")
+ != options.interpreters[0].second->additionalParameters.end());
}
return EXIT_SUCCESS;