harder test

pull/31/head
Matthew Butterick 3 years ago
parent b0b073d393
commit 3414c5a008

@ -1,6 +1,5 @@
#lang brag #lang brag
start: A c d e start: A c def
A : "\101" ; A A : "\"\101\\" ; A
c : "\U0063" ; c c : '\'\U0063\\' ; c
d : "\u64" ; d def : "*\u64\x65f" ; de
e : "\x65" ; e

@ -3,4 +3,5 @@
(require brag/examples/codepoints (require brag/examples/codepoints
rackunit) rackunit)
(check-equal? (parse-to-datum "Acde") '(start (A "A") (c "c") (d "d") (e "e"))) (check-equal? (parse-to-datum '("\"A\\" "'c\\" "*def"))
'(start (A "\"A\\") (c "'c\\") (def "*def")))

Loading…
Cancel
Save