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
|
||||
a = 1
|
||||
assert_raise ___, fn() ->
|
||||
^a = 2
|
||||
assert_raise MatchError, fn() ->
|
||||
^a = ___
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ defmodule PatternsTests do
|
||||
answers = [
|
||||
1,
|
||||
2,
|
||||
MatchError,
|
||||
2,
|
||||
{:multiple, [1, [2,3,4]]},
|
||||
[1,2,3,4],
|
||||
3,
|
||||
|
||||
Reference in New Issue
Block a user