Remove runtime dependency on rackunit

remotes/jackfirth/master
Jack Firth 3 years ago
parent e7415fc690
commit dbebeb54d8

@ -10,12 +10,12 @@
(define deps '(["base" #:version "6.3"] (define deps '(["base" #:version "6.3"]
"rackunit-lib"
"syntax-color-lib")) "syntax-color-lib"))
(define build-deps '("at-exp-lib" (define build-deps '("at-exp-lib"
"racket-doc" "racket-doc"
"rackunit-lib"
"scribble-lib" "scribble-lib"
"syntax-color-doc")) "syntax-color-doc"))

@ -1,4 +1,7 @@
#lang racket/base #lang racket/base
(module+ test
(require (for-syntax racket/base) (require (for-syntax racket/base)
yaragg/parser-tools/lex yaragg/parser-tools/lex
rackunit) rackunit)
@ -78,4 +81,5 @@
(check-regexp-match #rx"char-range" (catch-syn-error (lexer ((char-range) 1)))) (check-regexp-match #rx"char-range" (catch-syn-error (lexer ((char-range) 1))))
(check-regexp-match #rx"char-range" (catch-syn-error (lexer ((char-range #\9 #\0) 1)))) (check-regexp-match #rx"char-range" (catch-syn-error (lexer ((char-range #\9 #\0) 1))))
(check-regexp-match #rx"char-complement" (catch-syn-error (lexer ((char-complement) 1)))) (check-regexp-match #rx"char-complement" (catch-syn-error (lexer ((char-complement) 1))))
(check-regexp-match #rx"char-complement" (catch-syn-error (lexer ((char-complement (concatenation "1" "2")) 1)))) (check-regexp-match #rx"char-complement"
(catch-syn-error (lexer ((char-complement (concatenation "1" "2")) 1)))))

Loading…
Cancel
Save