summaryrefslogtreecommitdiffstats
path: root/tests/common.tl
diff options
context:
space:
mode:
Diffstat (limited to 'tests/common.tl')
-rw-r--r--tests/common.tl4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/common.tl b/tests/common.tl
index 3cd5df63..3eef8d31 100644
--- a/tests/common.tl
+++ b/tests/common.tl
@@ -4,14 +4,14 @@
(defmacro vtest (:env env expr expected)
(catch
- (let ((expr-expn (macroexpand expr env))
+ (let ((expr-expn (expand expr env))
(expval (gensym)))
^(let ((,expval ,expected))
(ifa (not (equal (error-to-sym ,expr-expn) ,expval))
(error "test case ~s failed: produced ~s; expected ~s"
',expr it ,expval))))
(error (exc)
- (unless (eq expected :error)
+ (unless (eq (eval expected) :error)
(error "test case ~s failed to expand: expected is ~s" expr expected)))))
(defmacro test (expr expected)