| 1 | // vtest retry: 3 |
| 2 | import v.tests.project_with_c_code_3.mod1 |
| 3 | |
| 4 | fn test_using_c_code_in_the_same_module_works() { |
| 5 | $if js { |
| 6 | assert 2003 == mod1.vadd(1, 2) |
| 7 | } $else { |
| 8 | assert 1003 == mod1.vadd(1, 2) |
| 9 | } |
| 10 | } |
| 11 | |
| 12 | fn test_a_common_pure_v_fn_works() { |
| 13 | assert mod1.a_common_pure_v_fn() == 987654 |
| 14 | } |
| 15 |