Add string interpolation koan. Fix #184

This commit is contained in:
Tom Gurion
2017-04-06 00:30:38 +01:00
parent 912a431a3f
commit 4d667eff61
2 changed files with 5 additions and 0 deletions

View File

@@ -7,6 +7,10 @@ defmodule Strings do
assert "hello" == ___
end
koan "Values may be inserted into strings by interpolation" do
assert "1 + 1 = #{1 + 1}" == ___
end
koan "They can be put together" do
assert "hello world" == ___ <> "world"
end

View File

@@ -5,6 +5,7 @@ defmodule StringTests do
test "Strings" do
answers = [
"hello",
"1 + 1 = 2",
"hello ",
"hello world",
"An incredible day",