Changed number on day 3
This commit is contained in:
parent
13a891400a
commit
cb4b54e130
@ -18,29 +18,31 @@ impl Solution for Day03 {
|
||||
}
|
||||
|
||||
fn get_day(&self) -> u8 {
|
||||
2
|
||||
3
|
||||
}
|
||||
}
|
||||
|
||||
impl Day03 {
|
||||
|
||||
}
|
||||
|
||||
impl Day03 {}
|
||||
|
||||
/// Test from puzzle input
|
||||
#[cfg(test)]
|
||||
mod test {
|
||||
use crate::*;
|
||||
use super::*;
|
||||
use crate::*;
|
||||
|
||||
#[test]
|
||||
fn part1() {
|
||||
let challenge = day03::Day03 {};
|
||||
|
||||
//Complete the Challenge
|
||||
let answer = challenge.part1(
|
||||
get_input(challenge.get_day(), utils::InputType::Test1).unwrap().as_mut()
|
||||
).unwrap().to_string();
|
||||
let answer = challenge
|
||||
.part1(
|
||||
get_input(challenge.get_day(), utils::InputType::Test1)
|
||||
.unwrap()
|
||||
.as_mut(),
|
||||
)
|
||||
.unwrap()
|
||||
.to_string();
|
||||
|
||||
assert_eq!(answer, "Ready");
|
||||
}
|
||||
@ -50,9 +52,14 @@ mod test {
|
||||
let challenge = day03::Day03 {};
|
||||
|
||||
//Complete the Challenge
|
||||
let answer = challenge.part2(
|
||||
get_input(challenge.get_day(), utils::InputType::Test2).unwrap().as_mut()
|
||||
).unwrap().to_string();
|
||||
let answer = challenge
|
||||
.part2(
|
||||
get_input(challenge.get_day(), utils::InputType::Test2)
|
||||
.unwrap()
|
||||
.as_mut(),
|
||||
)
|
||||
.unwrap()
|
||||
.to_string();
|
||||
|
||||
assert_eq!(answer, "Ready");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user