Extract initial example of binding before showing rebinding

This commit is contained in:
Jay Hayes
2016-05-02 12:16:26 -05:00
parent 4fda4ab9ff
commit b577a24753
2 changed files with 7 additions and 1 deletions

View File

@@ -5,7 +5,12 @@ defmodule PatternMatching do
assert match?(1, ___)
end
koan "A pattern can change" do
koan "A value can be bound to a variable" do
a = 1
assert a == ___
end
koan "A variable can be rebound" do
a = 1
a = 2
assert a == ___