aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/step1_read_print.mal26
1 files changed, 13 insertions, 13 deletions
diff --git a/tests/step1_read_print.mal b/tests/step1_read_print.mal
index 1714a56..3dc4023 100644
--- a/tests/step1_read_print.mal
+++ b/tests/step1_read_print.mal
@@ -60,6 +60,19 @@ abc-def
(1 2, 3,,,,),,
;=>(1 2 3)
+;;
+;; Testing reader errors
+;;; TODO: fix these so they fail correctly
+(1 2
+; expected ')', got EOF
+[1 2
+; expected ']', got EOF
+"abc
+; expected '"', got EOF
+
+;;
+;; -------- Optional Functionality --------
+
;; Testing read of vectors
[+ 1 2]
;=>[+ 1 2]
@@ -80,19 +93,6 @@ abc-def
{ "a" {"b" { "cde" 3 } }}
;=>{"a" {"b" {"cde" 3}}}
-;;
-;; Testing reader errors
-;;; TODO: fix these so they fail correctly
-(1 2
-; expected ')', got EOF
-[1 2
-; expected ']', got EOF
-"abc
-; expected '"', got EOF
-
-;;
-;; -------- Optional Functionality --------
-
;; Testing read of comments
;; whole line comment (not an exception)
1 ; comment after expression