Skip to content

Commit 9bf0706

Browse files
committed
test demonstrating that single segment namespaces by themselves are not a problem
1 parent e74d48d commit 9bf0706

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

src/test/cljs/cljs/macro_test.cljs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,10 @@
88

99
(ns cljs.macro-test
1010
(:refer-clojure :exclude [==])
11-
(:require [cljs.test :refer-macros [deftest is]])
11+
(:require [cljs.test :as test :refer-macros [deftest is]])
1212
(:use-macros [cljs.macro-test.macros :only [== sm-cljs-3027]])
13-
(:require-macros [cljs.macro-test.cljs2852]))
13+
(:require-macros [cljs.macro-test.cljs2852]
14+
[single-seg-macros]))
1415

1516
(deftest test-macros
1617
(is (= (== 1 1) 2)))
@@ -31,3 +32,6 @@
3132

3233
(deftest test-cljs-3027
3334
(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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
(ns single-seg-macros)
2+
3+
(defmacro test-macro [a b]
4+
`(+ ~a ~b))

0 commit comments

Comments
 (0)