Demonstrate put_in using atoms to manipulate nested values of a nested
Map
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user