Skip to content

Commit

Permalink
* test-local
Browse files Browse the repository at this point in the history
  • Loading branch information
swannodette committed Nov 20, 2024
1 parent cf2d7fc commit a91025a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/test/clojure/cljs/analyzer/spec_tests.clj
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,13 @@

;; list, no longer needed, subsumed by :quote

;; local
(deftest test-local
(let [node (analyze ns-env '(fn [x] x))
fn-method (-> node :methods first)
body (-> fn-method :body)
ret (:ret body)]
(is (= :local (:op ret)))
(is (s/valid? ::a/node node))))

(deftest test-loop
(let [node (analyze ns-env '(loop []))]
Expand Down

0 comments on commit a91025a

Please sign in to comment.