Fixed test for #5
This commit is contained in:
parent
c6783850d1
commit
eee77ec3c0
|
@ -1,20 +1,22 @@
|
|||
#lang racket/base
|
||||
(require subtemplate/override
|
||||
rackunit)
|
||||
(check-equal? (let ()
|
||||
(check-equal?(syntax->datum
|
||||
(let ()
|
||||
(define/syntax-parse ({~optional
|
||||
{~or k:keyword b:boolean i:nat}}
|
||||
{~and {~or (v …) s:str}} …)
|
||||
#'(#:a-keyword (1 2 3 4) "foo" (5 6)))
|
||||
#'(l (?@@ (?? (v …)) …)))
|
||||
'(l 1 2 3 4 5 6))
|
||||
|
||||
|
||||
(check-equal? (let ()
|
||||
(define/syntax-parse ({~optional
|
||||
{~or k:keyword b:boolean i:nat}}
|
||||
{~and {~or (v …) s:str}} …)
|
||||
#'(#:a-keyword (1 2 3 4) "foo" (5 6)))
|
||||
#'(l (?@@ (?? (v …)) …)))
|
||||
#'(l (?@@ (?? (v …)) …))))
|
||||
'(l 1 2 3 4 5 6))
|
||||
|
||||
|
||||
(check-equal? (syntax->datum
|
||||
(let ()
|
||||
(define/syntax-parse ({~optional
|
||||
{~or k:keyword b:boolean i:nat}}
|
||||
{~and {~or (v …) s:str}} …)
|
||||
#'(#:a-keyword (1 2 3 4) "foo" (5 6)))
|
||||
#'(l (?@@ (?? (v …)) …))))
|
||||
'(l 1 2 3 4 5 6))
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user