Move code into library crate for testing
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
mod common;
|
||||
pub mod solvers;
|
||||
+1
-2
@@ -1,5 +1,4 @@
|
||||
mod common;
|
||||
mod solvers;
|
||||
use advent_of_code_2025::solvers;
|
||||
|
||||
fn main() {
|
||||
println!("### Advent of Code 2025 ###\n");
|
||||
|
||||
+2
-1
@@ -25,7 +25,8 @@ pub trait Solver {
|
||||
|
||||
// The "../../data" and "../../../data" paths are useful for running the binary from
|
||||
// "target/release/" directory with "data/" directory in package root or parent directory.
|
||||
const DATA_PATHS: &'static [&'static str] = &["./data", "../data", "../../data", "../../../data"];
|
||||
pub const DATA_PATHS: &'static [&'static str] =
|
||||
&["./data", "../data", "../../data", "../../../data"];
|
||||
|
||||
pub fn run<S: Solver>(solver: S) {
|
||||
println!(
|
||||
|
||||
Reference in New Issue
Block a user