From aff8d0504027bd3d8458e314c86a20e19cee6c91 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20B=C3=B6ttcher?= <34623283+spacesinmotion@users.noreply.github.com> Date: Mon, 5 Aug 2019 10:05:00 +0200 Subject: [PATCH] compiler: add a test case to ensure more stable local modules --- compiler/tests/local/local.v | 7 +++++++ compiler/tests/local_test.v | 7 +++++++ 2 files changed, 14 insertions(+) create mode 100644 compiler/tests/local/local.v create mode 100644 compiler/tests/local_test.v diff --git a/compiler/tests/local/local.v b/compiler/tests/local/local.v new file mode 100644 index 0000000000..c1fcfcd445 --- /dev/null +++ b/compiler/tests/local/local.v @@ -0,0 +1,7 @@ + +module local + +pub fn local_fn() bool { + return true +} + diff --git a/compiler/tests/local_test.v b/compiler/tests/local_test.v new file mode 100644 index 0000000000..ec8628cefa --- /dev/null +++ b/compiler/tests/local_test.v @@ -0,0 +1,7 @@ + +import compiler.tests.local + +fn test_local_module_is_callable() { + assert local.local_fn() +} +