Skip to content

Commit

Permalink
Units/parser-clojure.r/clojure-vars.b: Add test for variable.
Browse files Browse the repository at this point in the history
  • Loading branch information
aartaka authored and masatake committed Dec 2, 2024
1 parent 79b0e39 commit 4cac738
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Units/parser-clojure.r/clojure-vars.b/expected.tags
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
const-var input.clj /^(def const-var ^:const 'var)$/;" v namespace:vars.test
doc-var input.clj /^(def doc-var "Documentation" 'var)$/;" v namespace:vars.test
dynamic-var input.clj /^(def dynamic-var ^:dynamic 'var)$/;" v namespace:vars.test
fn-var input.clj /^(def fn-var (fn [] true))$/;" f namespace:vars.test
once-var input.clj /^(defonce once-var 'evaluated-once)$/;" v namespace:vars.test
var input.clj /^(def var 'var)$/;" v namespace:vars.test
13 changes: 13 additions & 0 deletions Units/parser-clojure.r/clojure-vars.b/input.clj
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
(ns vars.test)

(def var 'var)

(def doc-var "Documentation" 'var)

(def dynamic-var ^:dynamic 'var)

(def const-var ^:const 'var)

(defonce once-var 'evaluated-once)

(def fn-var (fn [] true))

0 comments on commit 4cac738

Please sign in to comment.