Add basic file watcher to run koans

This commit is contained in:
Uku Taht
2015-12-17 01:03:05 +00:00
parent cbede62727
commit 94ff8b63b4
4 changed files with 25 additions and 2 deletions

View File

@@ -7,10 +7,20 @@ defmodule Runner do
]
def run do
run(Equalities)
end
def run(start_module) do
IO.puts("")
Enum.take_while(@modules, fn(mod) ->
IO.puts("")
start_idx = Enum.find_index(@modules, &(&1 == start_module))
Enum.drop(@modules, start_idx)
|> Enum.take_while(fn(mod) ->
run_module(mod) == :passed
end)
IO.puts("")
end
def run_module(module) do