Fix test phase.
Suggested by Matthew in the PR discussion.
This commit is contained in:
parent
bf69920570
commit
95c80cf21f
|
@ -1,9 +1,10 @@
|
|||
#lang racket
|
||||
|
||||
(require (submod racket/require for-testing))
|
||||
|
||||
;; Tests for multi.
|
||||
(module+ test
|
||||
(require (submod racket/require for-testing))
|
||||
(begin-for-syntax
|
||||
(begin-for-syntax
|
||||
(module+ test
|
||||
(require tests/eli-tester)
|
||||
(test (map syntax-e (multi #'("a" "b" "c"))) => '("a/b/c")
|
||||
(map syntax-e (multi #'("a" ("b" "c") "d"))) => '("a/b/d" "a/c/d")
|
||||
|
@ -18,5 +19,5 @@
|
|||
(map syntax-e (multi #'((a b) c d))) => '(a/c/d b/c/d)
|
||||
(map syntax-e (multi #'((a b) (c d)))) => '(a/c a/d b/c b/d)
|
||||
(map syntax-e (multi #'((a b c d)))) => '(a b c d)
|
||||
(map syntax-e (multi #'((a b (c d))))) =error> ""))
|
||||
)
|
||||
(map syntax-e (multi #'((a b (c d))))) =error> "")
|
||||
))
|
||||
|
|
Loading…
Reference in New Issue
Block a user