summaryrefslogtreecommitdiff
path: root/tests/test_examples.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_examples.py')
-rw-r--r--tests/test_examples.py30
1 files changed, 30 insertions, 0 deletions
diff --git a/tests/test_examples.py b/tests/test_examples.py
new file mode 100644
index 0000000..51b2240
--- /dev/null
+++ b/tests/test_examples.py
@@ -0,0 +1,30 @@
+from importlib import import_module
+import unittest
+
+
+class TestExamples(unittest.TestCase):
+
+ def _run(self, name):
+ import_module('examples.'+name)
+
+ def test_numerics(self):
+ self._run("numerics")
+
+ def test_tap(self):
+ self._run("TAP")
+
+ def test_roman_numerals(self):
+ self._run("romanNumerals")
+
+ def test_sexp_parser(self):
+ self._run("sexpParser")
+
+ def test_oc(self):
+ self._run("oc")
+
+ def test_delta_time(self):
+ self._run("delta_time")
+
+ def test_eval_arith(self):
+ self._run("eval_arith")
+