| 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: |
| 3 | import benchmark as jj |
| 4 | import x.benchmark |
| 5 | |
| 6 | fn 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 |