I recently submitted a PR for an open source Elixir project and the tests failed for older versions of Elixir because I (prematurely) changed the config files to use import Config instead of the older form use Mix.Config.
Elsewhere I have seen code that tests the version of Erlang:
if System.otp_release() >= "22" do
# do something
# do something the old way
but is there something similar to testing the version of Elixir being used? Or is there some better way to write config files so they can run on older and newer versions of Elixir? The following results in a compile error when I use it inside config/config.exs:
if System.version() >= "1.9.0" do