From b69e19be1d2303c5f6ec9c7e1498558c0852389a Mon Sep 17 00:00:00 2001 From: Gaith Hallak Date: Mon, 20 Mar 2023 08:00:14 +0300 Subject: [PATCH] Add test --- test/aeso_compiler_tests.erl | 1 + test/contracts/warning_unused_include_no_include.aes | 5 +++++ 2 files changed, 6 insertions(+) create mode 100644 test/contracts/warning_unused_include_no_include.aes diff --git a/test/aeso_compiler_tests.erl b/test/aeso_compiler_tests.erl index e070fd7..9eb002d 100644 --- a/test/aeso_compiler_tests.erl +++ b/test/aeso_compiler_tests.erl @@ -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} ] ++ []. diff --git a/test/contracts/warning_unused_include_no_include.aes b/test/contracts/warning_unused_include_no_include.aes new file mode 100644 index 0000000..edf2fd2 --- /dev/null +++ b/test/contracts/warning_unused_include_no_include.aes @@ -0,0 +1,5 @@ +namespace N = + function nconst() = 1 + +main contract C = + entrypoint f() = N.nconst()