-
Notifications
You must be signed in to change notification settings - Fork 170
Clojure
Ondřej Čertík edited this page Apr 25, 2022
·
4 revisions
How to get Clojure working (works on Apple M1 also): Install Leiningen:
cd ~/bin
curl -O https://github.com/raw/technomancy/leiningen/stable/bin/lein
chmod +x lein
Make sure your ~/bin
directory is in your $PATH
.
Create a test project and run tests:
conda create -n clj openjdk
conda activate clj
lein new test1
cd test1
lein test
The last command should print:
$ lein test
lein test test1.core-test
lein test :only test1.core-test/a-test
FAIL in (a-test) (core_test.clj:7)
FIXME, I fail.
expected: (= 0 1)
actual: (not (= 0 1))
Ran 1 tests containing 1 assertions.
1 failures, 0 errors.
Tests failed.