rackunit icon indicating copy to clipboard operation
rackunit copied to clipboard

typed/rackunit: check-match missing

Open jessealama opened this issue 4 years ago • 3 comments

The Typed Racket variant of rackunit seems to be missing untyped rackunit's check-match.

jessealama avatar Dec 13 '20 13:12 jessealama

@bennn Do you have any idea how this might be accomplished? check-match is a macro provided by (untyped) rackunit. I'd like to re-provide it from a Typed Racket module. Something like this doesn't seem to work:

(require/typed/provide
    rackunit
  [check-match Syntax])

jessealama avatar Dec 13 '20 15:12 jessealama

Unfortunately you basically have to re-write the macro in typed/rackunit.

samth avatar Dec 14 '20 05:12 samth

I feared as much. I couldn't tell if this was a simple omission or whether something deeper was going on. Thanks for confirming.

jessealama avatar Dec 14 '20 08:12 jessealama