PT-166407568 polymorphic functions in FATE #574

Merged
zxq9 merged 7 commits from PT-166407568-polymoprhic-functions into master 2019-06-05 19:58:04 +09:00
Showing only changes of commit ed3ed6ded6 - Show all commits

View File

@ -24,7 +24,8 @@ simple_compile_test_() ->
type_info := _} when Backend == aevm ->
?assertMatch(Code when is_binary(Code), ByteCode);
Code when Backend == fate, is_tuple(Code) ->
?assertMatch(#{}, aeb_fate_code:functions(Code));
Code1 = aeb_fate_code:deserialize(aeb_fate_code:serialize(Code)),
?assertMatch({X, X}, {Code1, Code});
ErrBin ->
io:format("\n~s", [ErrBin]),
error(ErrBin)