mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
testing: support for internal module testing
This commit is contained in:

committed by
Alexander Medvednikov

parent
3a2c46a1ce
commit
1cd5fab21d
15
vlib/compiler/tests/modules/amodule/module.v
Normal file
15
vlib/compiler/tests/modules/amodule/module.v
Normal file
@ -0,0 +1,15 @@
|
||||
module amodule
|
||||
|
||||
pub fn iadd(x int, y int) int {
|
||||
return x + y
|
||||
}
|
||||
|
||||
pub fn imul(x int, y int) int {
|
||||
return x * y
|
||||
}
|
||||
|
||||
///////////////////////////////////////
|
||||
|
||||
fn private_isub(x int, y int) int {
|
||||
return x - y
|
||||
}
|
Reference in New Issue
Block a user