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
|
||||
|
6
mix.lock
6
mix.lock
@@ -1,6 +1,6 @@
|
||||
%{
|
||||
"bunt": {:hex, :bunt, "0.2.1", "e2d4792f7bc0ced7583ab54922808919518d0e57ee162901a16a1b6664ef3b14", [:mix], [], "hexpm", "a330bfb4245239787b15005e66ae6845c9cd524a288f0d141c148b02603777a5"},
|
||||
"credo": {:hex, :credo, "1.7.1", "6e26bbcc9e22eefbff7e43188e69924e78818e2fe6282487d0703652bc20fd62", [:mix], [{:bunt, "~> 0.2.1", [hex: :bunt, repo: "hexpm", optional: false]}, {:file_system, "~> 0.2.8", [hex: :file_system, repo: "hexpm", optional: false]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: false]}], "hexpm", "e9871c6095a4c0381c89b6aa98bc6260a8ba6addccf7f6a53da8849c748a58a2"},
|
||||
"bunt": {:hex, :bunt, "1.0.0", "081c2c665f086849e6d57900292b3a161727ab40431219529f13c4ddcf3e7a44", [:mix], [], "hexpm", "dc5f86aa08a5f6fa6b8096f0735c4e76d54ae5c9fa2c143e5a1fc7c1cd9bb6b5"},
|
||||
"credo": {:hex, :credo, "1.7.12", "9e3c20463de4b5f3f23721527fcaf16722ec815e70ff6c60b86412c695d426c1", [:mix], [{:bunt, "~> 0.2.1 or ~> 1.0", [hex: :bunt, repo: "hexpm", optional: false]}, {:file_system, "~> 0.2 or ~> 1.0", [hex: :file_system, repo: "hexpm", optional: false]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: false]}], "hexpm", "8493d45c656c5427d9c729235b99d498bd133421f3e0a683e5c1b561471291e5"},
|
||||
"file_system": {:hex, :file_system, "0.2.10", "fb082005a9cd1711c05b5248710f8826b02d7d1784e7c3451f9c1231d4fc162d", [:mix], [], "hexpm", "41195edbfb562a593726eda3b3e8b103a309b733ad25f3d642ba49696bf715dc"},
|
||||
"jason": {:hex, :jason, "1.4.1", "af1504e35f629ddcdd6addb3513c3853991f694921b1b9368b0bd32beb9f1b63", [:mix], [{:decimal, "~> 1.0 or ~> 2.0", [hex: :decimal, repo: "hexpm", optional: true]}], "hexpm", "fbb01ecdfd565b56261302f7e1fcc27c4fb8f32d56eab74db621fc154604a7a1"},
|
||||
"jason": {:hex, :jason, "1.4.4", "b9226785a9aa77b6857ca22832cffa5d5011a667207eb2a0ad56adb5db443b8a", [:mix], [{:decimal, "~> 1.0 or ~> 2.0", [hex: :decimal, repo: "hexpm", optional: true]}], "hexpm", "c5eb0cab91f094599f94d55bc63409236a8ec69a21a67814529e8d5f6cc90b3b"},
|
||||
}
|
||||
|
Reference in New Issue
Block a user