Skip to content

Commit

Permalink
replace with macro
Browse files Browse the repository at this point in the history
  • Loading branch information
TrevorHansen committed Dec 29, 2023
1 parent e35294f commit b6cf1ec
Showing 1 changed file with 10 additions and 48 deletions.
58 changes: 10 additions & 48 deletions src/extract/faster_ilp_cbc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);

0 comments on commit b6cf1ec

Please sign in to comment.