Add test
This commit is contained in:
parent
9c7f942bca
commit
b69e19be1d
@ -69,6 +69,7 @@ simple_compile_test_() ->
|
||||
[ {"Testing warning messages",
|
||||
fun() ->
|
||||
#{ warnings := Warnings } = compile("warnings", [warn_all]),
|
||||
#{ warnings := [] } = compile("warning_unused_include_no_include", [warn_all]),
|
||||
check_warnings(warnings(), Warnings)
|
||||
end} ] ++
|
||||
[].
|
||||
|
5
test/contracts/warning_unused_include_no_include.aes
Normal file
5
test/contracts/warning_unused_include_no_include.aes
Normal file
@ -0,0 +1,5 @@
|
||||
namespace N =
|
||||
function nconst() = 1
|
||||
|
||||
main contract C =
|
||||
entrypoint f() = N.nconst()
|
Loading…
x
Reference in New Issue
Block a user