- match-string str #!key (with-matches #f)procedure
This succeeds if the regular expression represented by subject matches the string str. If with-matches is supplied, it is expected to be an alist holding the expected captures.
(expect '(: (+ space) (submatch (+ any))) (match-string " test" with-matches: '((1 . "test"))) (expect '(: (+ any)) (match-string "just a test"))