diff --git a/.github/workflows/build_algorithm.yml b/.github/workflows/build_algorithm.yml index ac266602..4206162a 100644 --- a/.github/workflows/build_algorithm.yml +++ b/.github/workflows/build_algorithm.yml @@ -38,9 +38,6 @@ jobs: - uses: dtolnay/rust-toolchain@stable with: targets: wasm32-wasi - - name: Cargo Test - if: env.SKIP_JOB != 'true' - run: cargo test -p tig-algorithms - name: Cargo Build if: env.SKIP_JOB != 'true' run: > diff --git a/tig-algorithms/README.md b/tig-algorithms/README.md deleted file mode 100644 index 09f1668e..00000000 --- a/tig-algorithms/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# Getting Started with Innovating - -Placeholder \ No newline at end of file diff --git a/tig-algorithms/src/knapsack/mod.rs b/tig-algorithms/src/knapsack/mod.rs index 9a9d68f1..5d4f1808 100644 --- a/tig-algorithms/src/knapsack/mod.rs +++ b/tig-algorithms/src/knapsack/mod.rs @@ -1,3 +1,4 @@ +pub mod template; // c003_a001 placeholder // c003_a002 placeholder // c003_a003 placeholder @@ -98,120 +99,3 @@ // c003_a098 placeholder // c003_a099 placeholder // c003_a100 placeholder - -#[cfg(test)] -mod tests { - use super::*; - use tig_challenges::{knapsack::*, *}; - - #[test] - fn test_submissions() { - let difficulty = Difficulty { - num_items: 50, - better_than_baseline: 10, - }; - let seed = 0; - let challenge = Challenge::generate_instance(seed, &difficulty).unwrap(); - - // assert!(c003_a001 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c003_a002 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c003_a003 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c003_a004 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c003_a005 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c003_a006 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c003_a007 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c003_a008 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c003_a009 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c003_a010 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c003_a011 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c003_a012 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c003_a013 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c003_a014 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c003_a015 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c003_a016 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c003_a017 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c003_a018 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c003_a019 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c003_a020 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c003_a021 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c003_a022 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c003_a023 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c003_a024 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c003_a025 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c003_a026 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c003_a027 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c003_a028 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c003_a029 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c003_a030 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c003_a031 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c003_a032 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c003_a033 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c003_a034 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c003_a035 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c003_a036 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c003_a037 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c003_a038 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c003_a039 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c003_a040 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c003_a041 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c003_a042 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c003_a043 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c003_a044 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c003_a045 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c003_a046 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c003_a047 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c003_a048 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c003_a049 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c003_a050 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c003_a051 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c003_a052 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c003_a053 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c003_a054 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c003_a055 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c003_a056 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c003_a057 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c003_a058 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c003_a059 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c003_a060 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c003_a061 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c003_a062 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c003_a063 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c003_a064 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c003_a065 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c003_a066 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c003_a067 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c003_a068 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c003_a069 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c003_a070 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c003_a071 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c003_a072 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c003_a073 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c003_a074 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c003_a075 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c003_a076 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c003_a077 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c003_a078 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c003_a079 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c003_a080 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c003_a081 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c003_a082 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c003_a083 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c003_a084 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c003_a085 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c003_a086 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c003_a087 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c003_a088 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c003_a089 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c003_a090 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c003_a091 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c003_a092 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c003_a093 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c003_a094 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c003_a095 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c003_a096 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c003_a097 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c003_a098 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c003_a099 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c003_a100 placeholder::solve_challenge(&challenge).is_ok()); - } -} diff --git a/tig-algorithms/src/knapsack/template.rs b/tig-algorithms/src/knapsack/template.rs index 0e212860..f68eb60b 100644 --- a/tig-algorithms/src/knapsack/template.rs +++ b/tig-algorithms/src/knapsack/template.rs @@ -10,6 +10,7 @@ //! //! //! # License +//! //! // TIG's UI uses the pattern `tig_challenges::` to automatically detect your algorithm's challenge @@ -23,24 +24,4 @@ pub fn solve_challenge(challenge: &Challenge) -> Result> { Err(anyhow!("Not implemented")) } -#[cfg(test)] -mod tests { - use super::solve_challenge; - use tig_challenges::{knapsack::*, *}; - - // Write any personal tests you want to run against your algorithm in this module - // All your tests must have #[ignore] - // You can run ignored tests with `cargo test -p tig-algorithms -- --include-ignored` - - #[test] - #[ignore] - fn test_solve_challenge() { - let difficulty = Difficulty { - num_items: 50, - better_than_baseline: 10, - }; - let seed = 0; - let challenge = Challenge::generate_instance(seed, &difficulty).unwrap(); - assert!(solve_challenge(&challenge).is_ok()); - } -} +// Important! Do not include any tests in this file, it will result in your submission being rejected diff --git a/tig-algorithms/src/satisfiability/mod.rs b/tig-algorithms/src/satisfiability/mod.rs index 49c69203..71a70334 100644 --- a/tig-algorithms/src/satisfiability/mod.rs +++ b/tig-algorithms/src/satisfiability/mod.rs @@ -98,120 +98,3 @@ // c001_a098 placeholder // c001_a099 placeholder // c001_a100 placeholder - -#[cfg(test)] -mod tests { - use super::*; - use tig_challenges::{satisfiability::*, *}; - - #[test] - fn test_submissions() { - let difficulty = Difficulty { - num_variables: 50, - clauses_to_variables_percent: 300, - }; - let seed = 0; - let challenge = Challenge::generate_instance(seed, &difficulty).unwrap(); - - // assert!(c001_a001 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c001_a002 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c001_a003 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c001_a004 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c001_a005 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c001_a006 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c001_a007 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c001_a008 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c001_a009 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c001_a010 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c001_a011 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c001_a012 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c001_a013 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c001_a014 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c001_a015 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c001_a016 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c001_a017 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c001_a018 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c001_a019 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c001_a020 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c001_a021 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c001_a022 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c001_a023 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c001_a024 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c001_a025 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c001_a026 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c001_a027 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c001_a028 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c001_a029 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c001_a030 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c001_a031 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c001_a032 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c001_a033 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c001_a034 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c001_a035 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c001_a036 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c001_a037 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c001_a038 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c001_a039 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c001_a040 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c001_a041 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c001_a042 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c001_a043 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c001_a044 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c001_a045 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c001_a046 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c001_a047 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c001_a048 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c001_a049 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c001_a050 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c001_a051 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c001_a052 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c001_a053 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c001_a054 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c001_a055 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c001_a056 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c001_a057 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c001_a058 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c001_a059 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c001_a060 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c001_a061 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c001_a062 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c001_a063 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c001_a064 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c001_a065 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c001_a066 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c001_a067 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c001_a068 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c001_a069 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c001_a070 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c001_a071 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c001_a072 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c001_a073 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c001_a074 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c001_a075 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c001_a076 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c001_a077 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c001_a078 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c001_a079 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c001_a080 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c001_a081 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c001_a082 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c001_a083 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c001_a084 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c001_a085 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c001_a086 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c001_a087 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c001_a088 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c001_a089 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c001_a090 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c001_a091 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c001_a092 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c001_a093 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c001_a094 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c001_a095 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c001_a096 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c001_a097 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c001_a098 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c001_a099 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c001_a100 placeholder::solve_challenge(&challenge).is_ok()); - } -} diff --git a/tig-algorithms/src/satisfiability/template.rs b/tig-algorithms/src/satisfiability/template.rs index 7e7dc07e..eede7543 100644 --- a/tig-algorithms/src/satisfiability/template.rs +++ b/tig-algorithms/src/satisfiability/template.rs @@ -10,6 +10,7 @@ //! //! //! # License +//! //! // TIG's UI uses the pattern `tig_challenges::` to automatically detect your algorithm's challenge @@ -23,24 +24,4 @@ pub fn solve_challenge(challenge: &Challenge) -> Result> { Err(anyhow!("Not implemented")) } -#[cfg(test)] -mod tests { - use super::solve_challenge; - use tig_challenges::{satisfiability::*, *}; - - // Write any personal tests you want to run against your algorithm in this module - // All your tests must have #[ignore] - // You can run ignored tests with `cargo test -p tig-algorithms -- --include-ignored` - - #[test] - #[ignore] - fn test_solve_challenge() { - let difficulty = Difficulty { - num_variables: 50, - clauses_to_variables_percent: 300, - }; - let seed = 0; - let challenge = Challenge::generate_instance(seed, &difficulty).unwrap(); - assert!(solve_challenge(&challenge).is_ok()); - } -} +// do not include any tests in this file, it will result in your submission being rejected diff --git a/tig-algorithms/src/vehicle_routing/mod.rs b/tig-algorithms/src/vehicle_routing/mod.rs index f4bbbd4e..62bb1af6 100644 --- a/tig-algorithms/src/vehicle_routing/mod.rs +++ b/tig-algorithms/src/vehicle_routing/mod.rs @@ -98,120 +98,3 @@ // c002_a098 placeholder // c002_a099 placeholder // c002_a100 placeholder - -#[cfg(test)] -mod tests { - use super::*; - use tig_challenges::{vehicle_routing::*, *}; - - #[test] - fn test_submissions() { - let difficulty = Difficulty { - num_nodes: 40, - better_than_baseline: 250, - }; - let seed = 0; - let challenge = Challenge::generate_instance(seed, &difficulty).unwrap(); - - // assert!(c002_a001 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c002_a002 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c002_a003 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c002_a004 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c002_a005 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c002_a006 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c002_a007 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c002_a008 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c002_a009 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c002_a010 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c002_a011 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c002_a012 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c002_a013 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c002_a014 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c002_a015 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c002_a016 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c002_a017 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c002_a018 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c002_a019 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c002_a020 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c002_a021 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c002_a022 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c002_a023 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c002_a024 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c002_a025 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c002_a026 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c002_a027 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c002_a028 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c002_a029 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c002_a030 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c002_a031 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c002_a032 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c002_a033 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c002_a034 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c002_a035 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c002_a036 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c002_a037 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c002_a038 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c002_a039 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c002_a040 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c002_a041 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c002_a042 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c002_a043 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c002_a044 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c002_a045 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c002_a046 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c002_a047 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c002_a048 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c002_a049 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c002_a050 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c002_a051 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c002_a052 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c002_a053 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c002_a054 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c002_a055 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c002_a056 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c002_a057 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c002_a058 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c002_a059 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c002_a060 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c002_a061 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c002_a062 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c002_a063 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c002_a064 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c002_a065 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c002_a066 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c002_a067 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c002_a068 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c002_a069 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c002_a070 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c002_a071 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c002_a072 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c002_a073 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c002_a074 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c002_a075 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c002_a076 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c002_a077 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c002_a078 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c002_a079 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c002_a080 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c002_a081 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c002_a082 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c002_a083 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c002_a084 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c002_a085 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c002_a086 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c002_a087 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c002_a088 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c002_a089 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c002_a090 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c002_a091 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c002_a092 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c002_a093 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c002_a094 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c002_a095 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c002_a096 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c002_a097 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c002_a098 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c002_a099 placeholder::solve_challenge(&challenge).is_ok()); - // assert!(c002_a100 placeholder::solve_challenge(&challenge).is_ok()); - } -} diff --git a/tig-algorithms/src/vehicle_routing/template.rs b/tig-algorithms/src/vehicle_routing/template.rs index 2ba1ddd9..55f9d38f 100644 --- a/tig-algorithms/src/vehicle_routing/template.rs +++ b/tig-algorithms/src/vehicle_routing/template.rs @@ -10,6 +10,7 @@ //! //! //! # License +//! //! // TIG's UI uses the pattern `tig_challenges::` to automatically detect your algorithm's challenge @@ -23,24 +24,4 @@ pub fn solve_challenge(challenge: &Challenge) -> Result> { Err(anyhow!("Not implemented")) } -#[cfg(test)] -mod tests { - use super::solve_challenge; - use tig_challenges::{vehicle_routing::*, *}; - - // Write any personal tests you want to run against your algorithm in this module - // All your tests must have #[ignore] - // You can run ignored tests with `cargo test -p tig-algorithms -- --include-ignored` - - #[test] - #[ignore] - fn test_solve_challenge() { - let difficulty = Difficulty { - num_nodes: 40, - better_than_baseline: 250, - }; - let seed = 0; - let challenge = Challenge::generate_instance(seed, &difficulty).unwrap(); - assert!(solve_challenge(&challenge).is_ok()); - } -} +// Important! Do not include any tests in this file, it will result in your submission being rejected