Fix in-hole enum bug and add test case

This commit is contained in:
Max New 2013-11-18 21:12:19 -06:00
parent 0b663736fb
commit a2021fa634
2 changed files with 3 additions and 1 deletions

View File

@ -215,7 +215,7 @@
(define term-fn (refs-to-fn termpat-refs))
(λ (nv)
(define ctx (ctx-fn nv))
(define term (term-fn term))
(define term (term-fn nv))
(plug-hole ctx term))]
[(hide-hole p)
(define p-fn (refs-to-fn p))

View File

@ -157,6 +157,8 @@
(try-it 100 Holes i2)
(try-it 1 Holes hole)
(try-it 100 Holes (in-hole hole number))
(try-it 100 Holes (in-hole (cons hole boolean) (cons number string)))
(try-it 100 Holes (in-hole (cons hole number_1) number_1))
;; Cross test
(define-language CrossLang