Permalink
Browse files

Added test for "import as"

  • Loading branch information...
1 parent db88fcd commit 29f8cecf65bf772ddf574a184f07a43922569bd9 @rumple rumple committed Mar 19, 2013
Showing with 6 additions and 0 deletions.
  1. +6 −0 tests/native_tests/language.hy
@@ -3,6 +3,7 @@
(import-from tests.resources kwtest)
(import-from os.path exists isdir isfile)
(import sys)
+(import-as sys systest)
(defn test-sys-argv []
@@ -188,3 +189,8 @@
(defn test-rest []
"NATIVE: test rest"
(assert (= (rest [1 2 3 4 5]) [2 3 4 5])))
+
+
+(defn test-importas []
+ "NATIVE: test import as"
+ (assert (!= (len systest.path) 0)))

0 comments on commit 29f8cec

Please sign in to comment.