Try it out in the tests
This commit is contained in:
parent
2b0ec0d632
commit
b2e94f63b4
|
@ -1023,7 +1023,16 @@
|
|||
(pretty-print-matcher m)
|
||||
(flush-output)
|
||||
m)
|
||||
|
||||
|
||||
(define (pretty-print-matcher*/dot m)
|
||||
(newline)
|
||||
(display (matcher->dot (matcher-relabel m (lambda (v)
|
||||
(if (treap? v)
|
||||
(map car (treap-to-alist v))
|
||||
v)))))
|
||||
(flush-output)
|
||||
m)
|
||||
|
||||
(void (pretty-print-matcher*
|
||||
(matcher-union (pattern->matcher SA (list (list ?) 'x))
|
||||
(pattern->matcher SB (list (list ?) 'y)))))
|
||||
|
@ -1580,8 +1589,10 @@
|
|||
|
||||
(module+ test
|
||||
(void
|
||||
(pretty-print-matcher* (matcher-union (pattern->matcher SA ?)
|
||||
(pattern->matcher SB (list ? '- ?))))))
|
||||
(let ((m (matcher-union (pattern->matcher SA ?)
|
||||
(pattern->matcher SB (list ? '- ?)))))
|
||||
(pretty-print-matcher* m)
|
||||
(pretty-print-matcher*/dot m))))
|
||||
|
||||
(module+ test
|
||||
(let ()
|
||||
|
|
Loading…
Reference in New Issue