def test_lambda_list_keywords_key():
 can_compile(u'(fn (x &key {foo True}) (list x foo))')
 cant_compile(u'(fn (x &key {bar "baz"} &key {foo 42}) (list x bar foo))')
 cant_compile(u'(fn (x &key {1 2 3 4}) (list x))')

def test_lambda_list_keywords_key ( ) : can_compile ( u'(fn (x &key {foo True}) (list x foo))' ) cant_compile ( u'(fn (x &key {bar "baz"} &key {foo 42}) (list x bar foo))' ) cant_compile ( u'(fn (x &key {1 2 3 4}) (list x))' )
ensure we can compile functions with &key .