diff options
| author | Nirbheek Chauhan <nirbheek@centricular.com> | 2018-05-03 18:56:34 +0530 |
|---|---|---|
| committer | Nirbheek Chauhan <nirbheek@centricular.com> | 2018-05-03 18:56:34 +0530 |
| commit | 575ffec62e9b24513db48cd5af3a1100fc79143f (patch) | |
| tree | c38440e34dc1adc1ca369e4e74708fa704c5724d /test cases/unit/32 python extmodule/blaster.py | |
| parent | 8bda86faabc5943954d85720967caadc1de95c46 (diff) | |
| download | meson-575ffec62e9b24513db48cd5af3a1100fc79143f.tar.gz | |
python module: Move tests to test cases/unit
The tests are only run via unit tests, so that's where they should be.
Diffstat (limited to 'test cases/unit/32 python extmodule/blaster.py')
| -rwxr-xr-x | test cases/unit/32 python extmodule/blaster.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test cases/unit/32 python extmodule/blaster.py b/test cases/unit/32 python extmodule/blaster.py new file mode 100755 index 000000000..163b6d426 --- /dev/null +++ b/test cases/unit/32 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) |
