Move koans to their own directory

This commit is contained in:
Uku Taht
2015-12-15 17:59:52 +00:00
parent ae6b5a7f19
commit 19c431dc94
2 changed files with 0 additions and 0 deletions

23
lib/koans/equalities.ex Normal file
View File

@@ -0,0 +1,23 @@
defmodule Equalities do
use Koans
koan "We shall contemplate truth by testing reality, via equality" do
assert true == true
end
koan "To understand reality, we must compare our expectations against reality" do
assert 2 == 1 + 1
end
koan "Some things may appear different, but be the same" do
assert 1 == 2 / 2
end
koan "Something is not equal to nothing" do
assert !(1 == nil)
end
koan "When things cannot be equal, they must be different" do
refute :something == 4
end
end

7
lib/koans/lists.ex Normal file
View File

@@ -0,0 +1,7 @@
defmodule Lists do
use Koans
koan "We shall contemplate truth by testing reality, via equality" do
assert List.first([1, 2, 3]) == 2
end
end