mirror of
https://github.com/kanaka/mal.git
synced 2024-08-16 09:10:48 +03:00
Merge pull request #411 from bjh21/bjh21-nested-collections
step 1: Test reading some simple nested collections.
This commit is contained in:
commit
8236bed763
@ -50,6 +50,8 @@ abc-def
|
||||
;=>(** 1 2)
|
||||
(* -3 6)
|
||||
;=>(* -3 6)
|
||||
(()())
|
||||
;=>(() ())
|
||||
|
||||
;; Test commas as whitespace
|
||||
(1 2, 3,,,,),,
|
||||
@ -139,6 +141,8 @@ false
|
||||
;=>[+ 1 [+ 2 3]]
|
||||
[ + 1 [+ 2 3 ] ]
|
||||
;=>[+ 1 [+ 2 3]]
|
||||
([])
|
||||
;=>([])
|
||||
|
||||
;; Testing read of hash maps
|
||||
{}
|
||||
@ -155,6 +159,8 @@ false
|
||||
;=>{"a" {"b" {"cde" 3}}}
|
||||
{ :a {:b { :cde 3 } }}
|
||||
;=>{:a {:b {:cde 3}}}
|
||||
({})
|
||||
;=>({})
|
||||
|
||||
;; Testing read of comments
|
||||
;; whole line comment (not an exception)
|
||||
|
Loading…
Reference in New Issue
Block a user