forked from M-Labs/artiq
1
0
Fork 0

test/py2llvm: clean up test_types function

This commit is contained in:
Sebastien Bourdeauducq 2014-09-07 14:07:07 +08:00
parent 6deaf7b81a
commit 58465e49fa
1 changed files with 4 additions and 3 deletions

View File

@ -6,6 +6,7 @@ from llvm import core as lc
from llvm import passes as lp from llvm import passes as lp
from llvm import ee as le from llvm import ee as le
from artiq.language.core import int64
from artiq.py2llvm.infer_types import infer_function_types from artiq.py2llvm.infer_types import infer_function_types
from artiq.py2llvm import values from artiq.py2llvm import values
from artiq.py2llvm import compile_function from artiq.py2llvm import compile_function
@ -22,10 +23,10 @@ def test_types(choice):
foo = True foo = True
bar = None bar = None
if choice: if choice and foo and not bar:
return 3 return d
else: else:
return x return x + c
class FunctionTypesCase(unittest.TestCase): class FunctionTypesCase(unittest.TestCase):
def setUp(self): def setUp(self):