@@ -123,8 +123,11 @@ defmodule Numbers do
|
|||||||
assert 0 in range == ___
|
assert 0 in range == ___
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def is_range?(%Range{}), do: true
|
||||||
|
def is_range?(_), do: false
|
||||||
|
|
||||||
koan "Is this a range?" do
|
koan "Is this a range?" do
|
||||||
assert Range.range?(1..10) == ___
|
assert is_range?(1..10) == ___
|
||||||
assert Range.range?(0) == ___
|
assert is_range?(0) == ___
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ defmodule Mix.Tasks.Meditate do
|
|||||||
Application.ensure_all_started(:elixir_koans)
|
Application.ensure_all_started(:elixir_koans)
|
||||||
Code.compiler_options(ignore_module_conflict: true)
|
Code.compiler_options(ignore_module_conflict: true)
|
||||||
|
|
||||||
{parsed, _, _} = OptionParser.parse(args)
|
{parsed, _, _} = OptionParser.parse(args, switches: [])
|
||||||
|
|
||||||
modules =
|
modules =
|
||||||
parsed
|
parsed
|
||||||
|
|||||||
Reference in New Issue
Block a user