harder test

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

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

@ -3,4 +3,5 @@
(require brag/examples/codepoints
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