Port sigil koans from iamvery/elixir-koans

7705d743ac/about_sigils.exs
h/t @sebastiangeiger
This commit is contained in:
Jay Hayes
2016-05-16 18:43:45 -05:00
parent 5f149826e1
commit 649c649084
2 changed files with 58 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
defmodule SigilsTests do
use ExUnit.Case
import TestHarness
test "Sigils" do
answers = [
"This is a string",
~S("Welcome to the jungle", they said.),
true,
"1 + 1 = 2",
~S(1 + 1 = #{1+1}),
{:multiple, ["Hello", "world"]},
{:multiple, ["Hello", "123"]},
~S(#{1+1}),
]
test_all(Sigils, answers)
end
end