Open Deraen opened 4 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.
Github actions configured in #4
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