diff options
author | Andreas Stöckel <astoecke@techfak.uni-bielefeld.de> | 2015-03-03 20:20:59 +0100 |
---|---|---|
committer | Andreas Stöckel <andreas@somweyr.de> | 2015-03-03 20:20:59 +0100 |
commit | ec758436a01903ded6ec5951fa1fc5d2fe062239 (patch) | |
tree | 4dd95626d1efce4bf8cd8c0f6bb7fda8d6a6b968 /test/formats/osml/OsmlParserTest.cpp | |
parent | 42c0480b4fbf80afa0c5b13650a0af74311d7202 (diff) |
Added unit tests for annotation handling
Diffstat (limited to 'test/formats/osml/OsmlParserTest.cpp')
-rw-r--r-- | test/formats/osml/OsmlParserTest.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/formats/osml/OsmlParserTest.cpp b/test/formats/osml/OsmlParserTest.cpp index c88232b..1c8894d 100644 --- a/test/formats/osml/OsmlParserTest.cpp +++ b/test/formats/osml/OsmlParserTest.cpp @@ -199,5 +199,19 @@ TEST(OsmlParser, explicitFields) ASSERT_TRUE(node->isa(&RttiTypes::Document)); } +TEST(OsmlParser, simpleAnnotation) +{ + OsmlStandaloneEnvironment env(logger); + logger.reset(); + + Rooted<Node> node = env.parse("simple_annotation.osml", "", "", + RttiSet{&RttiTypes::Node}); + ASSERT_FALSE(logger.hasError()); + + ASSERT_TRUE(node != nullptr); + ASSERT_TRUE(node->isa(&RttiTypes::Document)); +} + + } |