diff options
| author | Jussi Pakkanen <jpakkane@gmail.com> | 2018-07-31 19:22:24 +0300 |
|---|---|---|
| committer | Jussi Pakkanen <jpakkane@gmail.com> | 2018-07-31 19:22:24 +0300 |
| commit | 17bfbb99e5897ac759aca42d3ee375ebb33bd087 (patch) | |
| tree | 8df2a3f7cbfcca9c30df15404f0227dfe0107705 /test cases/unit/37 python extmodule/blaster.py | |
| parent | 2bc0f56b21a6dd327a6907c5fe27885b05db49d5 (diff) | |
| download | meson-17bfbb99e5897ac759aca42d3ee375ebb33bd087.tar.gz | |
Condense test dirs.
Diffstat (limited to 'test cases/unit/37 python extmodule/blaster.py')
| -rwxr-xr-x | test cases/unit/37 python extmodule/blaster.py | 14 |
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) |
