summaryrefslogtreecommitdiff
path: root/test/formats
diff options
context:
space:
mode:
authorAndreas Stöckel <astoecke@techfak.uni-bielefeld.de>2015-02-17 18:28:11 +0100
committerAndreas Stöckel <astoecke@techfak.uni-bielefeld.de>2015-02-17 18:28:11 +0100
commit7acce0fb451f119fe0487d7a859950744d3b9e23 (patch)
treeca77bbdb05003038bba0f97dffe8085063cdb2e2 /test/formats
parentcc3cfd7db6a535bc193da648b14a51e2824c0d17 (diff)
Fixed issue #78 and added unit test
Diffstat (limited to 'test/formats')
-rw-r--r--test/formats/osml/OsmlParserTest.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/formats/osml/OsmlParserTest.cpp b/test/formats/osml/OsmlParserTest.cpp
index 1ab55f2..295d9bf 100644
--- a/test/formats/osml/OsmlParserTest.cpp
+++ b/test/formats/osml/OsmlParserTest.cpp
@@ -91,5 +91,19 @@ TEST(OsmlParser, empty_typesystem)
ASSERT_TRUE(node->isa(&RttiTypes::Typesystem));
ASSERT_EQ("testTypesystem", node->getName());
}
+TEST(OsmlParser, inlineDomain)
+{
+ OsmlStandaloneEnvironment env(logger);
+ logger.reset();
+
+ ASSERT_FALSE(logger.hasError());
+ Rooted<Node> node =
+ env.parse("inline_domain.osml", "", "", RttiSet{&RttiTypes::Node});
+ ASSERT_FALSE(logger.hasError());
+
+ ASSERT_TRUE(node != nullptr);
+ ASSERT_TRUE(node->isa(&RttiTypes::Document));
+}
+
}