repair test for new compilation-top field

This commit is contained in:
Matthew Flatt 2015-09-05 17:39:31 -06:00
parent 89d99b92da
commit 6632070f75

View File

@ -27,21 +27,25 @@
(test (test
(roundtrip (roundtrip
(compilation-top 0 (compilation-top 0
#hash()
(prefix 0 empty empty 'insp0) (prefix 0 empty empty 'insp0)
(list 1 (list 2 3) (list 2 3) 4 5))) (list 1 (list 2 3) (list 2 3) 4 5)))
(roundtrip (roundtrip
(compilation-top 0 (compilation-top 0
#hash()
(prefix 1 empty empty 'insp0) (prefix 1 empty empty 'insp0)
(list (lam 'proc null 0 null #f #(0) '(val/ref) (set 0) 3 1)))) (list (lam 'proc null 0 null #f #(0) '(val/ref) (set 0) 3 1))))
(roundtrip (roundtrip
(compilation-top 0 (compilation-top 0
#hash()
(prefix 1 empty empty 'insp0) (prefix 1 empty empty 'insp0)
(list (lam 'proc null 0 null #f #(0) '(val/ref) #f 3 1)))) (list (lam 'proc null 0 null #f #(0) '(val/ref) #f 3 1))))
#;(roundtrip #;(roundtrip
(compilation-top 0 (compilation-top 0
#hash()
(prefix 0 empty empty) (prefix 0 empty empty)
(let* ([ph (make-placeholder #f)] (let* ([ph (make-placeholder #f)]
[x (closure [x (closure
@ -62,6 +66,7 @@
#;(roundtrip #;(roundtrip
(compilation-top (compilation-top
0 0
#hash()
(prefix 0 (list #f) (list)) (prefix 0 (list #f) (list))
(mod (mod
'simple 'simple
@ -93,18 +98,21 @@
#t))) #t)))
(roundtrip (roundtrip
(compilation-top 0 (compilation-top 0
#hash()
(prefix 0 empty empty 'insp0) (prefix 0 empty empty 'insp0)
(current-directory))) (current-directory)))
(roundtrip (roundtrip
(compilation-top 0 (compilation-top 0
#hash()
(prefix 0 empty empty 'insp0) (prefix 0 empty empty 'insp0)
(list (current-directory)))) (list (current-directory))))
(roundtrip (roundtrip
(compilation-top (compilation-top
0 0
#hash()
(prefix 0 empty empty 'insp0) (prefix 0 empty empty 'insp0)
(cons #hash() (cons #hash()
#hash()))) #hash())))
@ -112,5 +120,6 @@
(roundtrip (roundtrip
(compilation-top (compilation-top
0 0
#hash()
(prefix 0 empty empty 'insp0) (prefix 0 empty empty 'insp0)
#hash()))) #hash())))