lisp_car(): Utility function to simplify code.
[berndj-bootstrap.git] / lisp / test-expected
blob6f60de0ee4c398e10a0894e226d2b2d44cbc5feb
1 (+ 4 5) -> 9
2 (cons 17 42) -> (17 . 42)
3 (car (cons 17 42)) -> 17
4 #t -> #t
5 cons -> builtin-function
6 lambda -> builtin-macro
7 (lambda () 42) -> user-function
8 ((lambda () 42)) -> 42
9 ((lambda (a) (+ 2 a)) 17) -> 19
10 (quote ()) -> ()
11 (quote (a b c)) -> (a b c)
12 (if #t 17 42) -> 17
13 (if #f 17 42) -> 42
14 (eq? 12 12) -> #t
15 (eq? 12 24) -> #f
16 (eq? (cons 2 3) (cons 2 3)) -> #f
17 (eq? (quote foo) (quote foo)) -> #t
18 (eq? (quote foo) (quote bar)) -> #f
19 (eq? "foo" "foo") -> #f