summaryrefslogtreecommitdiffstats
path: root/tests/011/place.tl
blob: eb0dcb46ca3c98c8d87e760b9cbfa5578f5bf52d (plain)
1
2
3
4
5
6
7
8
9
(load "../common")

(defvar h (hash))

(mtest
  (let ((x 0)) (ensure (gethash h (pinc x)) "a") x) 1
  [h 0] "a"
  (let ((x 0)) (ensure (gethash h 0) (pinc x)) x) 0
  [h 0] "a")