Use test submodules for yaragg lang tests
parent
5a90bb6551
commit
e7415fc690
@ -1,26 +0,0 @@
|
|||||||
#lang racket/base
|
|
||||||
|
|
||||||
(require yaragg/tests/test-0n1
|
|
||||||
yaragg/tests/test-0n1n
|
|
||||||
yaragg/tests/test-01-equal
|
|
||||||
yaragg/tests/test-baby-json
|
|
||||||
yaragg/tests/test-baby-json-hider
|
|
||||||
yaragg/tests/test-curly-quantifier
|
|
||||||
yaragg/tests/test-cutter
|
|
||||||
yaragg/tests/test-empty-symbol
|
|
||||||
yaragg/tests/test-errors
|
|
||||||
yaragg/tests/test-flatten
|
|
||||||
yaragg/tests/test-hide-and-splice
|
|
||||||
yaragg/tests/test-lexer
|
|
||||||
yaragg/tests/test-nested-repeats
|
|
||||||
yaragg/tests/test-old-token
|
|
||||||
yaragg/tests/test-parser
|
|
||||||
yaragg/tests/test-quotation-marks-and-backslashes
|
|
||||||
yaragg/tests/test-simple-arithmetic-grammar
|
|
||||||
yaragg/tests/test-simple-line-drawing
|
|
||||||
yaragg/tests/test-start-and-atok
|
|
||||||
yaragg/tests/test-top-level-cut
|
|
||||||
yaragg/tests/test-weird-grammar
|
|
||||||
yaragg/tests/test-whitespace
|
|
||||||
yaragg/tests/test-wordy
|
|
||||||
(submod yaragg/codegen/satisfaction test))
|
|
@ -1,9 +1,10 @@
|
|||||||
#lang racket/base
|
#lang racket/base
|
||||||
|
|
||||||
|
(module+ test
|
||||||
|
|
||||||
(require yaragg/examples/nested-repeats
|
(require yaragg/examples/nested-repeats
|
||||||
rackunit)
|
rackunit)
|
||||||
|
|
||||||
(check-equal?
|
(check-equal?
|
||||||
(syntax->datum (parse (list "X" "Y" "X")))
|
(syntax->datum (parse (list "X" "Y" "X")))
|
||||||
'(start "X" "Y" "X"))
|
'(start "X" "Y" "X")))
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,6 +1,9 @@
|
|||||||
#lang racket/base
|
#lang racket/base
|
||||||
|
|
||||||
|
(module+ test
|
||||||
|
|
||||||
(require yaragg/examples/quotation-marks-and-backslashes
|
(require yaragg/examples/quotation-marks-and-backslashes
|
||||||
yaragg/support
|
yaragg/support
|
||||||
rackunit)
|
rackunit)
|
||||||
|
|
||||||
(check-equal? (parse-tree "a\"'\\a\"'\\") '(start "a" "\"" "'" "\\" "a" "\"" "'" "\\"))
|
(check-equal? (parse-tree "a\"'\\a\"'\\") '(start "a" "\"" "'" "\\" "a" "\"" "'" "\\")))
|
||||||
|
@ -1,7 +1,9 @@
|
|||||||
#lang racket/base
|
#lang racket/base
|
||||||
|
|
||||||
|
(module+ test
|
||||||
|
|
||||||
(require yaragg/tests/weird-grammar
|
(require yaragg/tests/weird-grammar
|
||||||
rackunit)
|
rackunit)
|
||||||
|
|
||||||
(check-equal? (syntax->datum (parse '("foo")))
|
(check-equal? (syntax->datum (parse '("foo")))
|
||||||
'(foo "foo"))
|
'(foo "foo")))
|
||||||
|
Loading…
Reference in New Issue