mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
compiler: add a test case to ensure more stable local modules
This commit is contained in:
parent
3e31e116f3
commit
aff8d05040
7
compiler/tests/local/local.v
Normal file
7
compiler/tests/local/local.v
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
|
||||||
|
module local
|
||||||
|
|
||||||
|
pub fn local_fn() bool {
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
|
7
compiler/tests/local_test.v
Normal file
7
compiler/tests/local_test.v
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
|
||||||
|
import compiler.tests.local
|
||||||
|
|
||||||
|
fn test_local_module_is_callable() {
|
||||||
|
assert local.local_fn()
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user