From e9f726d2f8108104d86e967dd27bba1fbe493b19 Mon Sep 17 00:00:00 2001 From: Andreas Stöckel Date: Tue, 3 Mar 2015 20:38:32 +0100 Subject: added more complex tests and prevented endless loops in DocumentChildHandler::startAnnotation --- testdata/osmlparser/overlapping_annotations.osml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 testdata/osmlparser/overlapping_annotations.osml (limited to 'testdata/osmlparser/overlapping_annotations.osml') 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} + -- cgit v1.2.3