1
1
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:
Joel Martin 2019-07-08 09:53:08 -05:00 committed by GitHub
commit 8236bed763
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)