From d085fba5feb7b3654fa8dba6c013a4047de6a41a Mon Sep 17 00:00:00 2001 From: Kodi Arfer Date: Sat, 15 Apr 2017 17:38:05 -0700 Subject: [PATCH] Move a quoting test to get rid of a directory --- tests/compilers/native/__init__.hy | 0 tests/compilers/native/quoting.hy | 11 ----------- tests/compilers/test_quoting.py | 1 - tests/native_tests/quote.hy | 9 ++++++++- 4 files changed, 8 insertions(+), 13 deletions(-) delete mode 100644 tests/compilers/native/__init__.hy delete mode 100644 tests/compilers/native/quoting.hy delete mode 100644 tests/compilers/test_quoting.py diff --git a/tests/compilers/native/__init__.hy b/tests/compilers/native/__init__.hy deleted file mode 100644 index e69de29..0000000 diff --git a/tests/compilers/native/quoting.hy b/tests/compilers/native/quoting.hy deleted file mode 100644 index c74bb5a..0000000 --- a/tests/compilers/native/quoting.hy +++ /dev/null @@ -1,11 +0,0 @@ -;;; -;;; - -(import [hy [HyExpression HySymbol HyString HyBytes]]) - - -(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))) diff --git a/tests/compilers/test_quoting.py b/tests/compilers/test_quoting.py deleted file mode 100644 index fb83d8d..0000000 --- a/tests/compilers/test_quoting.py +++ /dev/null @@ -1 +0,0 @@ -from .native.quoting import * # NOQA diff --git a/tests/native_tests/quote.hy b/tests/native_tests/quote.hy index 617de5d..8cd6a07 100644 --- a/tests/native_tests/quote.hy +++ b/tests/native_tests/quote.hy @@ -1,4 +1,4 @@ -(import hy) +(import [hy [HyExpression HySymbol HyString HyBytes]]) (defn test-quote [] @@ -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)))