def test_ast_lambda_lists():
 cant_compile(u'(fn [&key {"a" b} &key {"foo" bar}] [a foo])')
 cant_compile(u'(fn [&optional a &key {"foo" bar}] [a foo])')
 cant_compile(u'(fn [&optional [a b c]] a)')
 cant_compile(u'(fn [&optional [1 2]] (list 1 2))')

def test_ast_lambda_lists ( ) : cant_compile ( u'(fn [&key {"a" b} &key {"foo" bar}] [a foo])' ) cant_compile ( u'(fn [&optional a &key {"foo" bar}] [a foo])' ) cant_compile ( u'(fn [&optional [a b c]] a)' ) cant_compile ( u'(fn [&optional [1 2]] (list 1 2))' )
ensure the compiler chokes on invalid lambda-lists .