Merge pull request #253 from foucist/master

Fix deprecation warnings
This commit is contained in:
Uku Taht
2020-08-19 09:46:33 +03:00
committed by GitHub
2 changed files with 6 additions and 3 deletions

View File

@@ -123,8 +123,11 @@ defmodule Numbers do
assert 0 in range == ___
end
def is_range?(%Range{}), do: true
def is_range?(_), do: false
koan "Is this a range?" do
assert Range.range?(1..10) == ___
assert Range.range?(0) == ___
assert is_range?(1..10) == ___
assert is_range?(0) == ___
end
end

View File

@@ -7,7 +7,7 @@ defmodule Mix.Tasks.Meditate do
Application.ensure_all_started(:elixir_koans)
Code.compiler_options(ignore_module_conflict: true)
{parsed, _, _} = OptionParser.parse(args)
{parsed, _, _} = OptionParser.parse(args, switches: [])
modules =
parsed