From 144e00bedf72f261062ffd0759b9f1f98d6db352 Mon Sep 17 00:00:00 2001 From: Andreas Stöckel Date: Fri, 3 Apr 2015 22:50:01 +0200 Subject: Add another test for the test math environment, remove old tests --- .../user_defined_syntax/math_various.in.osml | 7 ++ .../user_defined_syntax/math_various.out.osxml | 109 +++++++++++++++++++++ testdata/osmlparser/math_pythagoras.osml | 4 - testdata/osmlparser/math_ranges.osml | 6 -- 4 files changed, 116 insertions(+), 10 deletions(-) create mode 100644 testdata/integration/user_defined_syntax/math_various.in.osml create mode 100644 testdata/integration/user_defined_syntax/math_various.out.osxml delete mode 100644 testdata/osmlparser/math_pythagoras.osml delete mode 100644 testdata/osmlparser/math_ranges.osml diff --git a/testdata/integration/user_defined_syntax/math_various.in.osml b/testdata/integration/user_defined_syntax/math_various.in.osml new file mode 100644 index 0000000..c003688 --- /dev/null +++ b/testdata/integration/user_defined_syntax/math_various.in.osml @@ -0,0 +1,7 @@ +\import[ontology]{./math} +\begin{math} + \sum_{i=5}^{10} \\ + \int_{\var{x} -> -1}^{\var{x} -> 1} \sqrt{x^{2} - 1} dx &= \frac{π}{2}\\ + \fun{f}{x, y} |-> \frac{x^{2}}{2} + y^{2}\\ + \var{a}^{2} + \var{b}^{2} &= \var{c}^{2} +\end{math} diff --git a/testdata/integration/user_defined_syntax/math_various.out.osxml b/testdata/integration/user_defined_syntax/math_various.out.osxml new file mode 100644 index 0000000..37b8ef8 --- /dev/null +++ b/testdata/integration/user_defined_syntax/math_various.out.osxml @@ -0,0 +1,109 @@ + + + + + + + + + i + + 5 + + + 10 + + + + + + + + + + + x + + + 1 + + + x + + 1 + + + + + x + + 2 + + + 1 + + dx + + + + + + π + + + 2 + + + + + + + + f + + x + + y + + + + + + x + + 2 + + + + 2 + + + + y + + 2 + + + + + + a + + 2 + + + b + + 2 + + + + + c + + 2 + + + + + diff --git a/testdata/osmlparser/math_pythagoras.osml b/testdata/osmlparser/math_pythagoras.osml deleted file mode 100644 index e42cdb7..0000000 --- a/testdata/osmlparser/math_pythagoras.osml +++ /dev/null @@ -1,4 +0,0 @@ -\import[ontology]{./math} -\begin{math} - a^{2} &= b^{2} + c^{2} -\end{math} diff --git a/testdata/osmlparser/math_ranges.osml b/testdata/osmlparser/math_ranges.osml deleted file mode 100644 index a6ac4dd..0000000 --- a/testdata/osmlparser/math_ranges.osml +++ /dev/null @@ -1,6 +0,0 @@ -\import[ontology]{./math} -\begin{math} - \sum^{10}_{i=5} \\ - \int^{\var{x} -> 1}_{\var{x} -> -1} \sqrt{x^{2} - 1} dx &= \frac{π}{2}\\ - \fun{f}{x, y} |-> \frac{x^{2}}{2} + y^{2} -\end{math} -- cgit v1.2.3