8e2a892469
As discussed in #880, move defn-alias and defmacro-alias to a contrib module. Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
9 lines
245 B
Hy
9 lines
245 B
Hy
(require hy.contrib.alias)
|
|
|
|
(defn test-defn-alias []
|
|
(defn-alias [tda-main tda-a1 tda-a2] [] :bazinga)
|
|
(assert (= (tda-main) :bazinga))
|
|
(assert (= (tda-a1) :bazinga))
|
|
(assert (= (tda-a2) :bazinga))
|
|
(assert (= tda-main tda-a1 tda-a2)))
|