Move blank in pin operator koan
This commit is contained in:
@@ -13,8 +13,8 @@ defmodule PatternMatching do
|
|||||||
|
|
||||||
koan "A pattern can also be strict" do
|
koan "A pattern can also be strict" do
|
||||||
a = 1
|
a = 1
|
||||||
assert_raise ___, fn() ->
|
assert_raise MatchError, fn() ->
|
||||||
^a = 2
|
^a = ___
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ defmodule PatternsTests do
|
|||||||
answers = [
|
answers = [
|
||||||
1,
|
1,
|
||||||
2,
|
2,
|
||||||
MatchError,
|
2,
|
||||||
{:multiple, [1, [2,3,4]]},
|
{:multiple, [1, [2,3,4]]},
|
||||||
[1,2,3,4],
|
[1,2,3,4],
|
||||||
3,
|
3,
|
||||||
|
|||||||
Reference in New Issue
Block a user