Squash compiler warnings.

This commit is contained in:
Felipe Sere
2016-03-08 11:36:24 +00:00
parent f2b4cec409
commit 4ca9ab44ad
3 changed files with 5 additions and 4 deletions

View File

@@ -6,7 +6,8 @@ defmodule Structs do
end
koan "structs are defined and named after a module" do
assert %Person{}
person = %Person{}
assert person == %Person{}
end
koan "you can access the fields of a struct" do
@@ -53,7 +54,6 @@ defmodule Structs do
koan "are basically maps" do
silvia = %Person{age: 22, name: "Silvia"}
assert is_map(silvia)
assert Map.fetch!(silvia, :age) == 22
end
end