Updated tests

This commit is contained in:
radrow
2019-07-22 13:56:45 +02:00
parent 4c72045a86
commit 5ff983b0b3
25 changed files with 78 additions and 57 deletions
+4 -1
View File
@@ -264,7 +264,10 @@ decode_types(Ets) ->
decode_type(#{tuple := Ets}) ->
Ts = decode_types(Ets),
[$(,lists:join(",", Ts),$)];
case Ts of
[] -> ["unit"];
_ -> ["(", $(,lists:join(" * ", Ts),$), ")"]
end;
decode_type(#{record := Efs}) ->
Fs = decode_fields(Efs),
[${,lists:join(",", Fs),$}];