v2 / vlib / v / tests / modules / amodule / another_internal_module_test.v
14 lines · 13 sloc · 532 bytes · 36ec47cd203a1f119da74b868ceb92f6da7ea930
Raw
1module amodule
2
3// This tests whether _test.v files can be *internal* to a
4// module, and thus have access to its guts.
5// Note: the function test_private_isub() is defined both here
6// and inside internal_module_test.v . That is done on purpose,
7// with the goal of ensuring that _test.v files are compiled
8// *independently* from each other.
9//
10// _test.v files should *only* import all the other normal .v
11// files from the same folder, NOT other _test.v files from it.
12fn test_private_isub() {
13 assert private_isub(7, 5) == 2
14}
15