aboutsummaryrefslogtreecommitdiff
path: root/tests/stlc-pred.rkt
diff options
context:
space:
mode:
authorJJ2024-10-24 00:26:11 +0000
committerJJ2024-10-24 00:51:25 +0000
commit7e2cb02cb9e846b9502de7f677e69ebcc710cdce (patch)
tree28f0437766b404c246422d8d188db6021a16474b /tests/stlc-pred.rkt
parent9b1389448b5e29e2baa8a48e5e9c4b24bae207c9 (diff)
refactor all implementations to use contracts
Diffstat (limited to 'tests/stlc-pred.rkt')
-rw-r--r--tests/stlc-pred.rkt29
1 files changed, 0 insertions, 29 deletions
diff --git a/tests/stlc-pred.rkt b/tests/stlc-pred.rkt
deleted file mode 100644
index f7afc43..0000000
--- a/tests/stlc-pred.rkt
+++ /dev/null
@@ -1,29 +0,0 @@
-#lang racket
-(require (except-in rackunit check))
-(require "../stlc-pred.rkt")
-
-(define-test-suite landins-knot
- (check-exn
- exn:fail?
- (λ () (infer '
- (let (id : (Nat → 0 Nat)) (λ x x)
- (let (r : (Ref (Nat → 0 Nat))) (new id)
- (let (f : (Nat → 1 Nat)) (λ x ((! r) x))
- (set r f
- (f 0))))))))
-
- (check-eq?
- (infer '
- (let (id : (Nat → 0 Nat)) (λ x x)
- (let (r : (Ref (Nat → 0 Nat))) (new id)
- (let (f : (Nat → 1 Nat)) (λ x ((! r) x))
- (f 0)))))
- 'Nat)
-
- (check-true
- (check '
- (let (id : (Nat → 0 Nat)) (λ x x)
- (let (r : (Ref (Nat → 0 Nat))) (new id)
- (let (f : (Nat → 1 Nat)) (λ x ((! r) x))
- (f 0))))
- 'Nat)))