mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
testing: allow tests to import the same module with no custom options
This commit is contained in:
committed by
Alexander Medvednikov
parent
ec36755407
commit
fc64238a39
11
vlib/compiler/tests/modules/simplemodule/importing_test.v
Normal file
11
vlib/compiler/tests/modules/simplemodule/importing_test.v
Normal file
@@ -0,0 +1,11 @@
|
||||
import simplemodule
|
||||
|
||||
// this tests whether the tests can import the same module without any special
|
||||
// custom paths setup on the CLI
|
||||
fn test_iadd(){
|
||||
assert simplemodule.iadd(10, 20) == 30
|
||||
}
|
||||
|
||||
fn test_imul(){
|
||||
assert simplemodule.imul(5,8) == 40
|
||||
}
|
||||
Reference in New Issue
Block a user