We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e74d48d commit 9bf0706Copy full SHA for 9bf0706
src/test/cljs/cljs/macro_test.cljs
@@ -8,9 +8,10 @@
8
9
(ns cljs.macro-test
10
(:refer-clojure :exclude [==])
11
- (:require [cljs.test :refer-macros [deftest is]])
+ (:require [cljs.test :as test :refer-macros [deftest is]])
12
(:use-macros [cljs.macro-test.macros :only [== sm-cljs-3027]])
13
- (:require-macros [cljs.macro-test.cljs2852]))
+ (:require-macros [cljs.macro-test.cljs2852]
14
+ [single-seg-macros]))
15
16
(deftest test-macros
17
(is (= (== 1 1) 2)))
@@ -31,3 +32,6 @@
31
32
33
(deftest test-cljs-3027
34
(is (= {"a" "b"} (sm-cljs-3027))))
35
+
36
+(deftest test-cljs-3413
37
+ (is (= 5 (single-seg-macros/test-macro 2 3))))
src/test/cljs/single_seg_macros.clj
@@ -0,0 +1,4 @@
1
+(ns single-seg-macros)
2
3
+(defmacro test-macro [a b]
4
+ `(+ ~a ~b))
0 commit comments