Demonstrate put_in using atoms to manipulate nested values of a nested

Map
This commit is contained in:
srufle
2017-01-22 11:15:17 -07:00
parent d467985778
commit 55f1648bbd
2 changed files with 11 additions and 0 deletions

View File

@@ -12,6 +12,7 @@ defmodule StructsTests do
{:ok, 22},
%Structs.Airline{plane: %Structs.Plane{maker: :airbus}, name: "Southwest"},
%Structs.Airline{plane: %Structs.Plane{maker: :boeing, passengers: 202}, name: "Southwest"},
%{plane: %{maker: :cessna}, name: "Southwest"},
]
test_all(Structs, answers)