summaryrefslogtreecommitdiff
path: root/testdata/osmlparser/overlapping_annotations.osml
diff options
context:
space:
mode:
authorAndreas Stöckel <astoecke@techfak.uni-bielefeld.de>2015-03-03 20:38:32 +0100
committerAndreas Stöckel <andreas@somweyr.de>2015-03-03 20:38:32 +0100
commite9f726d2f8108104d86e967dd27bba1fbe493b19 (patch)
treee0bf6412eecfe43b883b253748664e60c76f2cee /testdata/osmlparser/overlapping_annotations.osml
parentec758436a01903ded6ec5951fa1fc5d2fe062239 (diff)
added more complex tests and prevented endless loops in DocumentChildHandler::startAnnotation
Diffstat (limited to 'testdata/osmlparser/overlapping_annotations.osml')
-rw-r--r--testdata/osmlparser/overlapping_annotations.osml18
1 files changed, 18 insertions, 0 deletions
diff --git a/testdata/osmlparser/overlapping_annotations.osml b/testdata/osmlparser/overlapping_annotations.osml
new file mode 100644
index 0000000..be28070
--- /dev/null
+++ b/testdata/osmlparser/overlapping_annotations.osml
@@ -0,0 +1,18 @@
+\begin{document}
+
+\ontology#testOntology
+ \struct#test[root=true]
+ \field
+ \childRef[ref=a]
+ \struct#a[transparent=true]
+ \primitive[type=string]
+ \annotation#comment
+ \primitive[type=string]
+
+\begin{test}
+This is a <\comment#c1{Not a nice test!}test <\comment#c2{Change this to:
+"for overlapping annotations!"}for\comment#c1> annotations\comment#c2>.
+\end{test}
+
+\end{document}
+