rust/tests/run-make/libtest-padding/tests.rs
Martin Nordholts 4db40579ba libtest: Add regression tests for padding
As you can see the padding is wrong when running benches as tests. This
will be fixed in the next commit. (Benches should only be padded when
run as benches to make it easy to compare the benchmark numbers.)
2023-12-02 20:38:41 +01:00

19 lines
285 B
Rust

#![feature(test)]
extern crate test;
#[test]
fn short_test_name() {}
#[test]
fn this_is_a_really_long_test_name() {}
#[bench]
fn short_bench_name(b: &mut test::Bencher) {
b.iter(|| 1);
}
#[bench]
fn this_is_a_really_long_bench_name(b: &mut test::Bencher) {
b.iter(|| 1);
}