first commit
This commit is contained in:
@@ -11,30 +11,30 @@ defmodule Equalities do
|
||||
|
||||
# Replace ___ with the answer to make the koan pass.
|
||||
koan "We shall contemplate truth by testing reality, via equality" do
|
||||
assert true == ___
|
||||
assert true == true
|
||||
end
|
||||
|
||||
koan "Not something is the opposite of it" do
|
||||
assert !true == ___
|
||||
assert !true == false
|
||||
end
|
||||
|
||||
koan "To understand reality, we must compare our expectations against reality" do
|
||||
assert 2 == 1 + ___
|
||||
assert 2 == 1 + 1
|
||||
end
|
||||
|
||||
koan "Some things may appear different, but be the same" do
|
||||
assert 1 == 2 / ___
|
||||
assert 1 == 2 / 2
|
||||
end
|
||||
|
||||
koan "Unless they actually are different" do
|
||||
assert 3.2 != ___
|
||||
assert 3.2 != 3
|
||||
end
|
||||
|
||||
koan "Some may be looking for bigger things" do
|
||||
assert ___ > 3
|
||||
assert 4 > 3
|
||||
end
|
||||
|
||||
koan "Others are happy with less" do
|
||||
assert ___ < 3
|
||||
assert 2 < 3
|
||||
end
|
||||
end
|
||||
|
||||
@@ -5,15 +5,15 @@ defmodule Strings do
|
||||
@intro "Strings"
|
||||
|
||||
koan "Strings are there to represent text" do
|
||||
assert "hello" == ___
|
||||
assert "hello" == "hello"
|
||||
end
|
||||
|
||||
koan "Values may be inserted into strings by interpolation" do
|
||||
assert "1 + 1 = #{1 + 1}" == ___
|
||||
assert "1 + 1 = #{1 + 1}" == "1 + 1 = 2"
|
||||
end
|
||||
|
||||
koan "They can be put together" do
|
||||
assert "hello world" == ___ <> "world"
|
||||
assert "hello world" == "hello " <> "world"
|
||||
end
|
||||
|
||||
koan "Or pulled apart into a list when needed" do
|
||||
|
||||
Reference in New Issue
Block a user