hy/tests/lang/test_import.py

14 lines
245 B
Python
Raw Normal View History

2012-12-18 15:11:42 +01:00
import hy.lang.importer
import tests.lang.foo
def square(x):
return x * x
def test_squares_properly():
assert tests.lang.foo.square
assert tests.lang.foo.square(2) == 4
for x in range(0, 10):
tests.lang.foo.square(x)