diff options
| author | Joel Martin <github@martintribe.org> | 2014-04-06 16:24:27 -0500 |
|---|---|---|
| committer | Joel Martin <github@martintribe.org> | 2014-04-06 16:24:27 -0500 |
| commit | b079f51028571bc603b8d43761c29ff56273bffc (patch) | |
| tree | 98e9375fa15667ae6138794a2789215a06148713 /tests | |
| parent | 406d1370fac05bb01df8bee7678453689cd88228 (diff) | |
| download | mal-b079f51028571bc603b8d43761c29ff56273bffc.tar.gz mal-b079f51028571bc603b8d43761c29ff56273bffc.zip | |
C,PHP,Python: stepA fixup. All tests/impls pass!
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/stepA_more.mal | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/tests/stepA_more.mal b/tests/stepA_more.mal index aac1bac..abca165 100644 --- a/tests/stepA_more.mal +++ b/tests/stepA_more.mal @@ -232,6 +232,16 @@ (meta (with-meta [1 2 3] {"a" 1})) ;=>{"a" 1} +(meta (with-meta (list 1 2 3) {"a" 1})) +;=>{"a" 1} + +(meta (with-meta {"abc" 123} {"a" 1})) +;=>{"a" 1} + +;;; Not actually supported by Clojure +;;;(meta (with-meta (atom 7) {"a" 1})) +;;;;=>{"a" 1} + (def! lst (with-meta [4 5 6] {"b" 2})) ;=>[4 5 6] @@ -239,9 +249,9 @@ (meta f-wm) ;=>{"abc" 1} -(def! f-wm2 ^"str meta" (fn* [a] (+ 1 a))) +(def! f-wm2 ^{"abc" 1} (fn* [a] (+ 1 a))) (meta f-wm2) -;=>"str meta" +;=>{"abc" 1} ;; |
