v2 / vlib / v / tests / import_order_2_test.v
13 lines · 12 sloc · 324 bytes · 299ebdff049c6f84d64ee6ecc8503ded570123f0
Raw
1// NOTE: the order of these import statements is the opposite of the one in import_order_1_test.v,
2// but *both* should compile and work:
3import benchmark as jj
4import x.benchmark
5
6fn test_runs() {
7 mut b := jj.start()
8 mut action := benchmark.setup(fn () ! {
9 return error('no')
10 })!
11 action.run()
12 b.measure('nothing')
13}
14