def test_ast_anon_fns_basics():
 code = can_compile(u'(fn (x) (* x x))').body[0]
 assert (type(code) == ast.FunctionDef)
 code = can_compile(u'(fn (x))').body[0]
 cant_compile(u'(fn)')

def test_ast_anon_fns_basics ( ) : code = can_compile ( u'(fn (x) (* x x))' ) . body [ 0 ] assert ( type ( code ) == ast . FunctionDef ) code = can_compile ( u'(fn (x))' ) . body [ 0 ] cant_compile ( u'(fn)' )
ensure anon fns work .