mirror of
https://github.com/bertptrs/adventofcode.git
synced 2025-12-25 12:50:32 +01:00
Clean up tests
This commit is contained in:
@@ -108,7 +108,7 @@ mod tests {
|
|||||||
use super::*;
|
use super::*;
|
||||||
use common::Solution;
|
use common::Solution;
|
||||||
|
|
||||||
const SAMPLE: &str = "ULL
|
const SAMPLE: &[u8] = b"ULL
|
||||||
RRDDD
|
RRDDD
|
||||||
LURDL
|
LURDL
|
||||||
UUUUD";
|
UUUUD";
|
||||||
@@ -116,13 +116,13 @@ UUUUD";
|
|||||||
#[test]
|
#[test]
|
||||||
fn test_part1() {
|
fn test_part1() {
|
||||||
let mut instance = Day2::new();
|
let mut instance = Day2::new();
|
||||||
assert_eq!("1985", instance.part1(&mut SAMPLE.as_bytes()));
|
assert_eq!("1985", instance.part1(&mut SAMPLE));
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn test_part2() {
|
fn test_part2() {
|
||||||
let mut instance = Day2::new();
|
let mut instance = Day2::new();
|
||||||
assert_eq!("5DB3", instance.part2(&mut SAMPLE.as_bytes()));
|
assert_eq!("5DB3", instance.part2(&mut SAMPLE));
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user