Exercism Exercises in Elixir
The exercises currently target Elixir >= 1.7 and Erlang/OTP >= 20. Detailed installation instructions can be found at http://elixir-lang.org/install.html.
It is recommended to test BEFORE submitting a PR. It will test your submission, ensure that the repository builds as a whole, and help guard against unintentional, unrelated changes.
To test all of the assignments against their example solution, you can run bin/test_exercises.sh
:
$ ./bin/test_exercises.sh
Testing: accumulate -- Pass
Testing: acronym -- Pass
...
Testing: zipper -- Pass
--------------------------------------------------------------------------------
93/93 tests passed.
This will take some time.
Go in the the specific exercise directory, run mix test
to test an individual assignment:
cd exercises/$EXERCISE_NAME
mix test
To run dialyzer on all exercises, run ./bin/dialyzer_check.sh
. It might take a really long time the first time you run it. It will also be run for you by Github Actions as part of the PR check.
To check formatting of all exercises and all documents, run ./bin/check_formatting.sh
. It will also be run for you by Github Actions as part of the PR check.
If you want to help maintain the Elixir track, take a look at HELLO.md. You will find there an introduction to all the possible ways you can help us.
If you want to contribute to this repository specifically, please see CONTRIBUTING.md.