blob: f3879994357a564e486a6dda0d4feb4da5bdeb67 (
plain) (
blame)
1
2
3
4
5
6
7
8
|
#lang racket
(require (except-in rackunit check))
(require "../simple/stlc.rkt")
(check-equal? (interpret '(λ (x : Foo) x)) '(λ x x #hash()))
(check-equal? (interpret '((λ (a : Bar) a) (x y))) '(x y))
(check-equal? (interpret '((λ (a : Bat) (x y)) (λ (z : Bingus) z))) '(x y))
(check-equal? (interpret '((λ (a : Baz) (a y)) x)) '(x y))
|