add a tail test

This commit is contained in:
Robby Findler 2016-01-15 23:43:12 -06:00
parent 579d50b2d8
commit e3abc6f5c7

View File

@ -21,6 +21,17 @@
'neg)])
(f 3))
(c)))
(ctest/rewrite 1
tail-arrow.2
(let ([c (counter)])
(letrec ([f
(contract (-> any/c c)
(λ ([x #f]) (if (zero? x) x (f (- x 1))))
'pos
'neg)])
(f 3))
(c)))
(ctest/rewrite 1
tail-unconstrained-domain-arrow