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/error_annotation_boundaries.osml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 testdata/osmlparser/error_annotation_boundaries.osml (limited to 'testdata/osmlparser/error_annotation_boundaries.osml') diff --git a/testdata/osmlparser/error_annotation_boundaries.osml b/testdata/osmlparser/error_annotation_boundaries.osml new file mode 100644 index 0000000..fb8e43b --- /dev/null +++ b/testdata/osmlparser/error_annotation_boundaries.osml @@ -0,0 +1,20 @@ +\begin{document} + +\ontology#testOntology + \struct#test[root=true] + \field + \childRef[ref=a] + \struct#a[transparent=true] + \primitive[type=string] + \annotation#comment + \field + \childRef[ref=a] + +\begin{test} +This boundary is a <\comment#c1{This is a stupid Cloud Atlas reference, isn't it?} +convention <\comment#c2{Change this to: "for overlapping annotations!"\comment#c1>} +for annotations\comment#c2>. +\end{test} + +\end{document} + -- cgit v1.2.3