HCoop
/
jackhill
/
mal.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
combined
(merge:
80512fc
608a888
)
Merge branch 'master' into bjh21-php-hashmap
author
Ben Harris
<bjh21@bjh21.me.uk>
Mon, 8 Jul 2019 20:26:30 +0000
(21:26 +0100)
committer
GitHub
<noreply@github.com>
Mon, 8 Jul 2019 20:26:30 +0000
(21:26 +0100)
1
2
tests/step1_read_print.mal
patch
|
diff1
|
diff2
|
blob
|
history
diff --cc
tests/step1_read_print.mal
index
2abb4e9
,
ef4342e
..
1a3bcf7
---
1
/
tests/step1_read_print.mal
---
2
/
tests/step1_read_print.mal
+++ b/
tests/step1_read_print.mal
@@@
-153,10
-157,14
+157,16
@@@
fals
;=>{"a" {"b" {"c" 3}}}
{ "a" {"b" { "cde" 3 } }}
;=>{"a" {"b" {"cde" 3}}}
+ ;;; The regexp sorcery here ensures that each key goes with the correct
+ ;;; value and that each key appears only once.
+ {"a1" 1 "a2" 2 "a3" 3}
+ ;/{"a([1-3])" \1 "a(?!\1)([1-3])" \2 "a(?!\1)(?!\2)([1-3])" \3}
{ :a {:b { :cde 3 } }}
;=>{:a {:b {:cde 3}}}
+{"1" 1}
+;=>{"1" 1}
+ ({})
+ ;=>({})
;; Testing read of comments
;; whole line comment (not an exception)