Merge pull request #66 from ukutaht/improve_enum_koans

Improve enum koans
This commit is contained in:
Uku Taht
2016-04-11 13:54:47 +01:00
7 changed files with 33 additions and 89 deletions

View File

@@ -156,26 +156,15 @@ defmodule KoansHarnessTest do
answers = [
3,
2,
6,
true,
false,
true,
false,
true,
false,
{:multiple, [true, false]},
{:multiple, [true, false]},
{:multiple, [true, false]},
[10,20,30],
[false, true, false],
{:multiple, [ [false, true, false, true], [1,2,3,4] ] },
[1,3],
[2],
[1,2,3],
[1,2,3,4,5],
[1,2,3,4],
[1,2,3],
[0,1,2,3],
%{ :odd => [3,1], :even => [4,2] },
%{ 0 => [6, 3], 1 => [4, 1], 2 => [5, 2]},
[{1, :a}, {2, :b}, {3, :c}],
[{1, :a}, {2, :b}, {3, :c}],
2,
nil,

View File

@@ -1,7 +1,7 @@
defmodule PassingKoan do
use Koans
koan "hi there" do
koan "Hi there" do
assert 1 == 1
end
end

View File

@@ -1,7 +1,7 @@
defmodule SampleKoan do
use Koans
koan "thinking more than once" do
koan "Thinking more than once" do
assert 3 == :__
assert 4 == :__
end