38 lines
1.1 KiB
Rust
38 lines
1.1 KiB
Rust
|
pub fn process_part1(input: &str) -> i32 {
|
||
|
0
|
||
|
}
|
||
|
|
||
|
pub fn process_part2(input: &str) -> i32 {
|
||
|
0
|
||
|
}
|
||
|
|
||
|
#[cfg(test)]
|
||
|
mod tests {
|
||
|
use super::*;
|
||
|
|
||
|
const INPUT: &str = "Alice would gain 54 happiness units by sitting next to Bob.
|
||
|
Alice would lose 79 happiness units by sitting next to Carol.
|
||
|
Alice would lose 2 happiness units by sitting next to David.
|
||
|
Bob would gain 83 happiness units by sitting next to Alice.
|
||
|
Bob would lose 7 happiness units by sitting next to Carol.
|
||
|
Bob would lose 63 happiness units by sitting next to David.
|
||
|
Carol would lose 62 happiness units by sitting next to Alice.
|
||
|
Carol would gain 60 happiness units by sitting next to Bob.
|
||
|
Carol would gain 55 happiness units by sitting next to David.
|
||
|
David would gain 46 happiness units by sitting next to Alice.
|
||
|
David would lose 7 happiness units by sitting next to Bob.
|
||
|
David would gain 41 happiness units by sitting next to Carol.";
|
||
|
|
||
|
#[test]
|
||
|
fn part1() {
|
||
|
let result = process_part1(INPUT);
|
||
|
assert_eq!(result, 330);
|
||
|
}
|
||
|
|
||
|
#[test]
|
||
|
fn part2() {
|
||
|
let result = process_part2(INPUT);
|
||
|
assert_eq!(result, 0);
|
||
|
}
|
||
|
}
|