From ed3ed6ded6d4cc803db89414ce76b7706f50696d Mon Sep 17 00:00:00 2001 From: Ulf Norell Date: Mon, 3 Jun 2019 12:06:26 +0200 Subject: [PATCH] Check (de)serialize roundtrip in fate compiler tests --- test/aeso_compiler_tests.erl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/aeso_compiler_tests.erl b/test/aeso_compiler_tests.erl index f6ac15a..331e996 100644 --- a/test/aeso_compiler_tests.erl +++ b/test/aeso_compiler_tests.erl @@ -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)