Add missing function to typed/rackunit implementation.

Repairs 10dc53375. Found by the "semver" package.

Merge to 6.4.
This commit is contained in:
Sam Tobin-Hochstadt 2016-02-01 21:33:09 -05:00
parent 5f35f447b5
commit 23bda72953

View File

@ -127,6 +127,12 @@
(ensure-string name (quote-syntax #,(datum->syntax #f 'loc #'name)))])
(test-begin expr ...)))]))
(: ensure-string : Any Any -> String)
(define (ensure-string name src-stx)
(unless (string? name)
(raise-argument-error 'test-case "string?" name))
name)
(provide test-begin test-case)
(require/opaque-type TestCase test-case? rackunit)