clojure-vim / clojure.vim

Clojure syntax highlighting and indentation for Vim and Neovim.
Other
35 stars 6 forks source link

Add unit tests #1

Open Deraen opened 4 years ago

Deraen commented 4 years ago

Unit tests could help especially with the indent fn. There are probably a few cases broken currently: https://github.com/guns/vim-clojure-static/pull/83

Not sure how these are usually done with Vimscript.

We could probably copy test cases from some other project for a start: https://github.com/clojure-emacs/clojure-mode/blob/master/test/clojure-mode-indentation-test.el https://github.com/weavejester/cljfmt/blob/master/cljfmt/test/cljfmt/core_test.cljc#L11

Deraen commented 3 years ago

The clojure code here already implements unit tests:

https://github.com/clojure-vim/clojure.vim/blob/master/clj/src/vim_clojure_static/test.clj https://github.com/clojure-vim/clojure.vim/blob/master/clj/test/vim_clojure_static/indent_test.clj

We should setup CI to run these.

Deraen commented 3 years ago

Github actions configured in #4