summaryrefslogtreecommitdiff
path: root/test cases/unit/37 python extmodule/blaster.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2018-07-31 19:22:24 +0300
committerJussi Pakkanen <jpakkane@gmail.com>2018-07-31 19:22:24 +0300
commit17bfbb99e5897ac759aca42d3ee375ebb33bd087 (patch)
tree8df2a3f7cbfcca9c30df15404f0227dfe0107705 /test cases/unit/37 python extmodule/blaster.py
parent2bc0f56b21a6dd327a6907c5fe27885b05db49d5 (diff)
downloadmeson-17bfbb99e5897ac759aca42d3ee375ebb33bd087.tar.gz
Condense test dirs.
Diffstat (limited to 'test cases/unit/37 python extmodule/blaster.py')
-rwxr-xr-xtest cases/unit/37 python extmodule/blaster.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/test cases/unit/37 python extmodule/blaster.py b/test cases/unit/37 python extmodule/blaster.py
new file mode 100755
index 000000000..163b6d426
--- /dev/null
+++ b/test cases/unit/37 python extmodule/blaster.py
@@ -0,0 +1,14 @@
+#!/usr/bin/env python
+
+import sys
+import tachyon
+
+result = tachyon.phaserize('shoot')
+
+if not isinstance(result, int):
+ print('Returned result not an integer.')
+ sys.exit(1)
+
+if result != 1:
+ print('Returned result {} is not 1.'.format(result))
+ sys.exit(1)