Make list sigil lessons a little more challenging

This commit is contained in:
Jay Hayes
2016-05-17 07:53:07 -05:00
parent 649c649084
commit e60a284e36
2 changed files with 6 additions and 6 deletions

View File

@@ -25,15 +25,15 @@ defmodule Sigils do
end
koan "The ~w sigil creates word lists" do
assert ~w(Hello world) == [___, ___]
assert ~w(Hello world) == ___
end
koan "The ~w sigil also allows interpolation" do
assert ~w(Hello 1#{1+1}3) == [___, ___]
assert ~w(Hello 1#{1+1}3) == ___
end
koan "The ~W sigil behaves to ~w as ~S behaves to ~s" do
assert ~W(Hello #{1+1}) == ["Hello", ___]
assert ~W(Hello #{1+1}) == ___
end
end