From bdd3a1c44090ca1adf6f2964ce4b6f3058b765e2 Mon Sep 17 00:00:00 2001 From: Jur van den Berg Date: Mon, 5 Dec 2022 20:22:24 +0100 Subject: [PATCH] reformat day5 test input --- src/day05.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/day05.rs b/src/day05.rs index 5bfd5a7..4c085fc 100644 --- a/src/day05.rs +++ b/src/day05.rs @@ -115,8 +115,11 @@ fn parse_crate_single(input: &str) -> IResult<&str, Option<&str>> { mod tests { use super::*; - // Input slightly mangled like this due to rustfmt/intellijfmt stripping trailing spaces - const INPUT: &str = " [D] \n[N] [C] \n[Z] [M] [P]\n 1 2 3 \n + const INPUT: &str = " [D] +[N] [C] +[Z] [M] [P] + 1 2 3 + move 1 from 2 to 1 move 3 from 1 to 3 move 2 from 2 to 1