mirror of
https://github.com/kristoferssolo/Advent-of-Code.git
synced 2026-03-22 00:26:24 +00:00
fix daily template
This commit is contained in:
@@ -3,7 +3,7 @@ use {{crate_name}}::part1::process;
|
||||
|
||||
fn main() -> Result<()> {
|
||||
let file = include_str!("../../input1.txt");
|
||||
let result = process(file).context("process part 1")?;
|
||||
let result = process(file)?;
|
||||
println!("{}", result);
|
||||
Ok(())
|
||||
}
|
||||
|
||||
@@ -3,7 +3,7 @@ use {{crate_name}}::part1::process;
|
||||
|
||||
fn main() -> Result<()> {
|
||||
let file = include_str!("../../input2.txt");
|
||||
let result = process(file).context("process part 2")?;
|
||||
let result = process(file)?;
|
||||
println!("{}", result);
|
||||
Ok(())
|
||||
}
|
||||
|
||||
@@ -10,10 +10,9 @@ mod tests {
|
||||
|
||||
#[test]
|
||||
fn test_process() -> Result<()> {
|
||||
todo!("haven't built test yet");
|
||||
let input = "";
|
||||
todo!("haven't built test yet");
|
||||
assert_eq!("", process(input)?);
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -10,8 +10,8 @@ mod tests {
|
||||
|
||||
#[test]
|
||||
fn test_process() -> Result<()> {
|
||||
todo!("haven't built test yet");
|
||||
let input = "";
|
||||
todo!("haven't built test yet");
|
||||
assert_eq!("", process(input)?);
|
||||
Ok(())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user