Infer correct values for tests automatically

Now tests compare the literal parser against the output of the
compiler. The little example contracts we are compiling for the
AACI already had the FATE value in them, in the form of the
instruction
	{'RETURNR', {immediate, FateValue}}
so we just extract that and use it for the tests.
This commit is contained in:
Jarvis Carroll
2026-01-27 06:42:55 +00:00
parent 4f2a3c6c6f
commit 2bf384ca82
2 changed files with 40 additions and 23 deletions
-2
View File
@@ -22,8 +22,6 @@
fate_to_erlang/2,
erlang_args_to_fate/2,
get_function_signature/2]).
% Internal stuff that is useful for writing AACI unit tests.
-export([aaci_from_string/1, annotate_type/2]).
%%% Types