Add support for .getWatches on atoms
This commit is contained in:
parent
cd9a87e75c
commit
187ee7da00
2 changed files with 6 additions and 1 deletions
|
|
@ -158,7 +158,9 @@
|
|||
{:methods [{:name "getResource"}
|
||||
{:name "getResources"}
|
||||
{:name "getResourceAsStream"}
|
||||
{:name "getParent"}]}})
|
||||
{:name "getParent"}]}
|
||||
clojure.lang.ARef
|
||||
{:methods [{:name "getWatches"}]}})
|
||||
|
||||
(def custom-map
|
||||
(cond->
|
||||
|
|
|
|||
|
|
@ -843,6 +843,9 @@ true")))
|
|||
(deftest index-of-test
|
||||
(is (= 1 (bb nil "(.indexOf (map inc [1 2 3]) 3)"))))
|
||||
|
||||
(deftest get-watches-test
|
||||
(is (true? (bb nil "(map? (.getWatches (doto (atom nil) (add-watch :foo (fn [k r o n])))))" ))))
|
||||
|
||||
;;;; Scratch
|
||||
|
||||
(comment
|
||||
|
|
|
|||
Loading…
Reference in a new issue