Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)

src/d/i/diy-lisp-HEAD/tests/test_5_adding_functions_to_the_mix.py   diy-lisp(Download)
    assert_raises, assert_true, assert_is_instance
 
from diylisp.ast import is_list
from diylisp.evaluator import evaluate
from diylisp.parser import parse
def test_lambda_arguments_are_lists():
    """The parameters of a `lambda` should be a list."""
 
    closure = evaluate(parse("(lambda (x y) (+ x y))"), Environment())
    assert_true(is_list(closure.params))