Fix test phase.

Suggested by Matthew in the PR discussion.
This commit is contained in:
Vincent St-Amour 2015-10-24 20:33:03 -05:00
parent bf69920570
commit 95c80cf21f

View File

@ -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> "")
))