File not found error

This commit is contained in:
Hans Svensson
2019-09-05 11:16:31 +02:00
parent ecfa04ba17
commit 37a37a169d
3 changed files with 11 additions and 3 deletions
+7
View File
@@ -32,6 +32,13 @@ simple_compile_test_() ->
end
end} || ContractName <- compilable_contracts(), Backend <- [aevm, fate],
not lists:member(ContractName, not_yet_compilable(Backend))] ++
[ {"Test file not found error",
fun() ->
{error, Errors} = aeso_compiler:file("does_not_exist.aes"),
ExpErr = <<"In 'does_not_exist.aes' at line 0, col 0:\n"
"does_not_exist.aes: no such file or directory">>,
check_errors([ExpErr], Errors)
end} ] ++
[ {"Testing error messages of " ++ ContractName,
fun() ->
Errors = compile(aevm, ContractName),