Files
Eli Schwartz 6a1427401c tests: add a python test for bytecode compilation
Some tweaks are added to the test case so that it supports python2 as
well.
2023-05-02 19:28:35 -04:00

12 lines
270 B
Python
Executable File

#!/usr/bin/env python3
import @tachyon_module@ as tachyon
result = tachyon.phaserize('shoot')
if not isinstance(result, int):
raise SystemExit('Returned result not an integer.')
if result != 1:
raise SystemExit('Returned result {} is not 1.'.format(result))