PS: error handling, throw, print excpetions without dying.
[jackhill/mal.git] / tests / step1_read_print.mal
index f0d7a9a..de7fcc1 100644 (file)
@@ -60,7 +60,6 @@ abc-def
   ( +   1   (+   2 3   )   )  
 ;=>(+ 1 (+ 2 3))
 
-
 ;; Testing read of vectors
 [+ 1 2]
 ;=>[+ 1 2]
@@ -71,7 +70,6 @@ abc-def
   [ +   1   [+   2 3   ]   ]  
 ;=>[+ 1 [+ 2 3]]
 
-
 ;; Testing read of hash maps
 {"abc" 1}
 ;=>{"abc" 1}
@@ -109,4 +107,11 @@ abc-def
 @a
 ;=>(deref a)
 
-
+;;
+;; Testing reader errors
+(1 2
+; expected ')', got EOF
+[1 2
+; expected ']', got EOF
+"abc
+; expected '"', got EOF