Add more test cases

And some trivial code cleanup.
This commit is contained in:
Robert Virding
2019-04-03 22:58:54 +02:00
parent df00c3958b
commit 4a01c852c9
2 changed files with 40 additions and 8 deletions
+3
View File
@@ -356,6 +356,9 @@ typedef_vars(#type_def{vars=Vars}) -> Vars.
typedef_def(#type_def{typedef=Def}) -> Def.
%% parse(ContractString, Options) -> {ok,AST}.
%% Signal errors, the sophia compiler way. Sigh!
parse(Text, Options) ->
%% Try and return something sensible here!
case aeso_parser:string(Text, Options) of