Move pattern matching on structs koan to the later pattern matching module

This commit is contained in:
Felipe Sere
2018-02-02 08:03:12 +00:00
parent 178bb41361
commit 03c6ddc33b
4 changed files with 17 additions and 13 deletions

View File

@@ -17,6 +17,7 @@ defmodule PatternsTests do
{:multiple, ["Mickey", "Donald", "I need a name!"]},
"dog",
"Max",
{:multiple, [true, false]},
"Max",
1,
2,

View File

@@ -8,7 +8,6 @@ defmodule StructsTests do
nil,
"Joe",
33,
{:multiple, [true, false]},
{:ok, 22},
%Structs.Airline{plane: %Structs.Plane{maker: :airbus}, name: "Southwest"},
%Structs.Airline{plane: %Structs.Plane{maker: :boeing, passengers: 202}, name: "Southwest"},