v2 / vlib / v / tests / modules / amodule / internal_module_test.v
15 lines · 12 sloc · 272 bytes · 2de1437a1e32a85a72d9afc147ef0d41aab5c0f5
Raw
1module amodule
2
3// this tests whether _test.v files can be *internal*
4// to a module, and thus have access to its guts.
5fn test_iadd() {
6 assert iadd(10, 20) == 30
7}
8
9fn test_imul() {
10 assert imul(5, 8) == 40
11}
12
13fn test_private_isub() {
14 assert private_isub(10, 6) == 4
15}
16