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