From d02fd49bd66397c3da3c7a112c2641db0b7b79f2 Mon Sep 17 00:00:00 2001 From: Bert Peters Date: Thu, 29 Nov 2018 16:58:51 +0100 Subject: [PATCH] Clean up tests --- 2016/src/day2.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/2016/src/day2.rs b/2016/src/day2.rs index f9b607d..e1d2777 100644 --- a/2016/src/day2.rs +++ b/2016/src/day2.rs @@ -108,7 +108,7 @@ mod tests { use super::*; use common::Solution; - const SAMPLE: &str = "ULL + const SAMPLE: &[u8] = b"ULL RRDDD LURDL UUUUD"; @@ -116,13 +116,13 @@ UUUUD"; #[test] fn test_part1() { let mut instance = Day2::new(); - assert_eq!("1985", instance.part1(&mut SAMPLE.as_bytes())); + assert_eq!("1985", instance.part1(&mut SAMPLE)); } #[test] fn test_part2() { let mut instance = Day2::new(); - assert_eq!("5DB3", instance.part2(&mut SAMPLE.as_bytes())); + assert_eq!("5DB3", instance.part2(&mut SAMPLE)); } }