Files
elixir-koans/test/koans/structs_koans_test.exs
Alex b69010d05c Map.fetch! -> Map.fetch
I think is better to continue use safe ```Map.fetch``` until we familiarize users with dangerous function concept.
Not every body comes from ruby background, with knowledge of ```?``` and ```!``` function notations.

test ifx
2016-04-26 21:16:43 +03:00

18 lines
260 B
Elixir

defmodule StructsTests do
use ExUnit.Case
import TestHarness
test "Structs" do
answers = [
%Structs.Person{},
nil,
"Joe",
33,
{:multiple, [true, false]},
{:ok, 22},
]
test_all(Structs, answers)
end
end