From f78e654a7bc6510537f71013e0e451cfa5b6e6e1 Mon Sep 17 00:00:00 2001 From: Andreas Stöckel Date: Tue, 17 Feb 2015 19:38:28 +0100 Subject: Added very primitive unit tests for include --- testdata/osmlparser/include_root.osml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 testdata/osmlparser/include_root.osml (limited to 'testdata/osmlparser/include_root.osml') diff --git a/testdata/osmlparser/include_root.osml b/testdata/osmlparser/include_root.osml new file mode 100644 index 0000000..1d1d660 --- /dev/null +++ b/testdata/osmlparser/include_root.osml @@ -0,0 +1,20 @@ +\begin{document} + +\domain#testDomain + \struct#test[isRoot=true] + \field + \childRef[ref=a] + \childRef[ref=b] + \struct#a + \field + \childRef[ref=b] + \struct#b[transparent=true] + \primitive[type=string,optional=true] + +\begin{test} +\a +\include{./include_child.osml} +\b +Test +\end{test} +\end{document} -- cgit v1.2.3