blob: 8b725f8ffe4f0deb051248a2b4b0f3cce82b9443 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
|
-module(call_elim_test).
-export([test/0]).
test() ->
true = has_1_field(#{1=>true}),
true = has_1_field(#{1=>"hej", b=>2}),
true = has_1_field(#{b=>3, 1=>4}),
ok.
has_1_field(#{1:=_}) -> true;
has_1_field(#{}) -> false.
|