Skip to content

Commit

Permalink
Add eval region test
Browse files Browse the repository at this point in the history
  • Loading branch information
borkdude committed Nov 20, 2023
1 parent 8a334cf commit e32fd69
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions test/nextjournal/clojure_mode_tests.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,10 @@
"(()|)" "(()\n |)"
"(a |b)" "(a\n |b)"
"(a b|c)" "(a b\n |c)"
)))
))

(deftest eval-region-test
(are [input f expected]
(= (f (test-utils/make-state extensions input)) expected)
"(+ |1 2 3)" eval-region/cursor-node-string "1")))

#_(prn (eval-region/cursor-node-string (test-utils/make-state extensions "(+ |1 2 3)")))

0 comments on commit e32fd69

Please sign in to comment.