@with_setup(prepare_env)
def test_cond_dosnt_evaluate_all_branches():

    interpret("(define foo 42)", env)

    program = """
    (cond ((#f fire-the-missiles)
           (#t foo)
           (#f something-else-we-wont-do)))
    """
    assert_equals("42", interpret(program, env))
Of all the second tuple elements, only the one we return is ever evaluated.
dataset/ETHPy150Open kvalle/diy-lisp/tests/test_8_final_touches.py/test_cond_dosnt_evaluate_all_branches