From b6cf1ec648f89248c90a92136956b823630ed310 Mon Sep 17 00:00:00 2001 From: Trevor Hansen Date: Sat, 30 Dec 2023 10:58:07 +1100 Subject: [PATCH] replace with macro --- src/extract/faster_ilp_cbc.rs | 58 ++++++----------------------------- 1 file changed, 10 insertions(+), 48 deletions(-) diff --git a/src/extract/faster_ilp_cbc.rs b/src/extract/faster_ilp_cbc.rs index dc8ab2e..a98d8b6 100644 --- a/src/extract/faster_ilp_cbc.rs +++ b/src/extract/faster_ilp_cbc.rs @@ -1046,53 +1046,15 @@ fn all_disabled() -> Config { } // So the test runner uses more of my cores. - -#[test] -fn random1() { - run(); -} - -#[test] -fn random2() { - run(); -} - -#[test] -fn random3() { - run(); -} - -#[test] -fn random4() { - run(); -} - -#[test] -fn random5() { - run(); -} - -#[test] -fn random6() { - run(); -} - -#[test] -fn random7() { - run(); -} - -#[test] -fn random8() { - run(); -} - -#[test] -fn random9() { - run(); +macro_rules! create_tests { + ($($name:ident),*) => { + $( + #[test] + fn $name() { + run(); + } + )* + } } -#[test] -fn random10() { - run(); -} +create_tests!(random0, random1, random2, random3, random4, random5, random6, random7, random8, random9); \ No newline at end of file