def test_compile_error():
 try:
  can_compile(u'(fn [] (in [1 2 3]))')
 except HyTypeError as e:
  assert (e.message == u"`in' needs at least 2 arguments, got 1.")
 else:
  assert False

def test_compile_error ( ) : try : can_compile ( u'(fn [] (in [1 2 3]))' ) except HyTypeError as e : assert ( e . message == u"`in' needs at least 2 arguments, got 1." ) else : assert False
ensure we get compile error in tricky cases .