Merge pull request #119 from iamvery/sigil-koans
Dass Koans about Sigil
This commit is contained in:
19
test/koans/sigils_koans_test.exs
Normal file
19
test/koans/sigils_koans_test.exs
Normal 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}),
|
||||
["Hello", "world"],
|
||||
["Hello", "123"],
|
||||
["Hello", ~S(#{1+1})],
|
||||
]
|
||||
|
||||
test_all(Sigils, answers)
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user