Properly refer the stdlib

This commit is contained in:
radrow 2021-06-02 17:06:36 +02:00
parent eadb4e8c83
commit 254172e3a3

View File

@ -92,8 +92,7 @@ simple_compile_test_() ->
%% Check if all modules in the standard library compile
stdlib_test_() ->
StdlibDir = filename:append(code:priv_dir(aesophia), "stdlib"),
{ok, Files} = file:list_dir(StdlibDir),
{ok, Files} = file:list_dir(aeso_stdlib:stdlib_include_path()),
[ { "Testing " ++ File ++ " from the stdlib",
fun() ->
String = "include \"" ++ File ++ "\"\nmain contract Test =\n entrypoint f(x) = x",