blob: 5942a0fbeacc8c18ccb5714fda27295c9e56441a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
-module(gleam__stdlib).
-compile(export_all).
-include_lib("eunit/include/eunit.hrl").
expect_equal(A, Expected) -> ?assertEqual(Expected, A).
expect_not_equal(A, Expected) -> ?assertNotEqual(Expected, A).
expect_true(A) -> ?assert(A).
expect_false(A) -> ?assertNot(A).
map_fetch(Map, Key) ->
case maps:find(Key, Map) of
error -> {error, {}},
Found -> Found
end.
|