mirror of
https://github.com/bertptrs/adventofcode.git
synced 2025-12-27 05:40:32 +01:00
Prepare future scaffolding.
Also reformat the code, but that is nothing significant.
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
use std::collections::HashSet;
|
||||
use std::io;
|
||||
use std::io::prelude::*;
|
||||
|
||||
use common;
|
||||
|
||||
pub struct Day01 {}
|
||||
@@ -46,9 +47,10 @@ impl common::Solution for Day01 {
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
use common::Solution;
|
||||
|
||||
use super::*;
|
||||
|
||||
#[test]
|
||||
fn samples_part1() {
|
||||
let mut instance = Day01::new();
|
||||
@@ -74,6 +76,4 @@ mod tests {
|
||||
assert_eq!("5", instance.part2(&mut sample3.as_bytes()));
|
||||
assert_eq!("14", instance.part2(&mut sample4.as_bytes()));
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user