Skip to content

Commit

Permalink
Move a quoting test to get rid of a directory
Browse files Browse the repository at this point in the history
  • Loading branch information
Kodiologist committed Apr 26, 2017
1 parent 8afd13c commit d085fba
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 13 deletions.
Empty file removed tests/compilers/native/__init__.hy
Empty file.
11 changes: 0 additions & 11 deletions tests/compilers/native/quoting.hy

This file was deleted.

1 change: 0 additions & 1 deletion tests/compilers/test_quoting.py

This file was deleted.

9 changes: 8 additions & 1 deletion tests/native_tests/quote.hy
@@ -1,4 +1,4 @@
(import hy)
(import [hy [HyExpression HySymbol HyString HyBytes]])


(defn test-quote []
Expand All @@ -8,6 +8,13 @@
(assert (= q [(quote a) (quote b) (quote c)])))


(defn test-basic-quoting []
(assert (= (type (quote (foo bar))) HyExpression))
(assert (= (type (quote foo)) HySymbol))
(assert (= (type (quote "string")) HyString))
(assert (= (type (quote b"string")) HyBytes)))


(defn test-quoted-hoistable []
"NATIVE: check whether quote works on hoisted things"
(setv f (quote (if True True True)))
Expand Down

0 comments on commit d085fba

Please sign in to comment.