summaryrefslogtreecommitdiff
path: root/testdata
diff options
context:
space:
mode:
authorAndreas Stöckel <astoecke@techfak.uni-bielefeld.de>2015-02-17 19:38:28 +0100
committerAndreas Stöckel <astoecke@techfak.uni-bielefeld.de>2015-02-17 19:38:28 +0100
commitf78e654a7bc6510537f71013e0e451cfa5b6e6e1 (patch)
tree91d6523c1e96a9de54cb53811f380a01f0ca1b06 /testdata
parentafd223129824babe74399cd340ca7838d2910863 (diff)
Added very primitive unit tests for include
Diffstat (limited to 'testdata')
-rw-r--r--testdata/osmlparser/include_child.osml4
-rw-r--r--testdata/osmlparser/include_recursive.osml1
-rw-r--r--testdata/osmlparser/include_recursive_root.osml10
-rw-r--r--testdata/osmlparser/include_root.osml20
4 files changed, 35 insertions, 0 deletions
diff --git a/testdata/osmlparser/include_child.osml b/testdata/osmlparser/include_child.osml
new file mode 100644
index 0000000..1a47dc9
--- /dev/null
+++ b/testdata/osmlparser/include_child.osml
@@ -0,0 +1,4 @@
+Test
+\b
+Test
+
diff --git a/testdata/osmlparser/include_recursive.osml b/testdata/osmlparser/include_recursive.osml
new file mode 100644
index 0000000..27eabe0
--- /dev/null
+++ b/testdata/osmlparser/include_recursive.osml
@@ -0,0 +1 @@
+\include{include_recursive.osml}
diff --git a/testdata/osmlparser/include_recursive_root.osml b/testdata/osmlparser/include_recursive_root.osml
new file mode 100644
index 0000000..b3e433f
--- /dev/null
+++ b/testdata/osmlparser/include_recursive_root.osml
@@ -0,0 +1,10 @@
+\begin{document}
+
+\domain#testDomain
+ \struct#test[isRoot=true]
+
+\begin{test}
+\include{./include_recursive.osml}
+\end{test}
+\end{document}
+
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}