Skip to content

Commit

Permalink
Merge pull request #253 from foucist/master
Browse files Browse the repository at this point in the history
Fix deprecation warnings
  • Loading branch information
ukutaht authored Aug 19, 2020
2 parents cbb8c37 + a2db428 commit 34000e5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions lib/koans/03_numbers.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion lib/meditate.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 34000e5

Please sign in to comment.