check-match for rackunit #171

Closed
wants to merge 1 commit into
from

Projects

None yet

3 participants

@jpolitz
Contributor
jpolitz commented Nov 20, 2012

Thread

http://www.mail-archive.com/dev@racket-lang.org/msg07427.html

Files

check.rkt:
Added the actual check-match macro.

test.rkt:
Just a provide statement

check-test.rkt:
7 additional tests for check-match, and a macro to help create tests for it

check.scrbl:
Documentation and examples for check-match

Notes

  1. I tested with

raco test collects/tests/rackunit

It prints out a lot of stuff because there are existing tests hardcoded to fail in there. But, I wrote seven tests and it claims that 127 tests (rather than 120 before) succeed now, so that seems promising.

  1. I don't know how to get the use of @racket[match] in the docs to link over to the actual match page. I'm a Scribble noob.
  2. I'm also a syntaxy-macros noob, it might be possible to get the useful error information through check-match itself in a more appropriate/less crappy way.
@jpolitz jpolitz Add check-match to rackunit
check.rkt:
  Added the actual check-match macro.

test.rkt:
  Just a provide statement

check-test.rkt:
  7 additional tests for check-match, and a macro to help create tests

check.scrbl:
  Documentation and examples for check-match
023d227
@takikawa
Contributor

To get match to link, all you should need to do is add (require (for-label racket/match)) in the relevant scrbl file.

@takikawa
Contributor

Merged now. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment