hy/tests/compilers/native/quoting.hy

12 lines
287 B
Hy
Raw Normal View History

;;;
;;;
(import [hy [HyExpression HySymbol HyString HyBytes]])
(defn test-basic-quoting []
2013-04-09 02:24:47 +02:00
(assert (= (type (quote (foo bar))) HyExpression))
2013-04-09 04:31:26 +02:00
(assert (= (type (quote foo)) HySymbol))
(assert (= (type (quote "string")) HyString))
(assert (= (type (quote b"string")) HyBytes)))