From 51eb4a3b75a57c8ea9342121c220fb3bfa783b27 Mon Sep 17 00:00:00 2001 From: Ben Harris Date: Wed, 16 Dec 2020 18:34:26 -0500 Subject: [PATCH] use \n for newlines in expected test answer --- aoc2019.test/Tests.cs | 7 +++---- aoc2019/Day08.cs | 3 +-- aoc2019/Day11.cs | 3 +-- 3 files changed, 5 insertions(+), 8 deletions(-) diff --git a/aoc2019.test/Tests.cs b/aoc2019.test/Tests.cs index 48706a8..8e8d0f9 100644 --- a/aoc2019.test/Tests.cs +++ b/aoc2019.test/Tests.cs @@ -1,6 +1,5 @@ using System; using System.Diagnostics; -using aoc2019; using aoc2019.lib; using Microsoft.VisualStudio.TestTools.UnitTesting; @@ -17,12 +16,12 @@ namespace aoc2019.test [DataRow(typeof(Day05), "7692125", "14340395")] [DataRow(typeof(Day06), "145250", "274")] [DataRow(typeof(Day07), "19650", "35961106")] - [DataRow(typeof(Day08), "2413", "xxx xx xxx xxxx xxx \r\nx x x x x x x x x \r\nxxx x x x x xxx \r\nx x x xxx x x x \r\nx x x x x x x x \r\nxxx xx x xxxx xxx ")] + [DataRow(typeof(Day08), "2413", "xxx xx xxx xxxx xxx \nx x x x x x x x x \nxxx x x x x xxx \nx x x xxx x x x \nx x x x x x x x \nxxx xx x xxxx xxx ")] [DataRow(typeof(Day09), "3409270027", "82760")] [DataRow(typeof(Day10), "260", "608")] - [DataRow(typeof(Day11), "2054", " # # ### #### #### ## ## # # ### \r\n # # # # # # # # # # # # # \r\n ## # # # ### # # # #### ### \r\n # # ### # # #### # # # # # \r\n # # # # # # # # # # # # # # \r\n # # # # #### #### # # ## # # ### ")] + [DataRow(typeof(Day11), "2054", " # # ### #### #### ## ## # # ### \n # # # # # # # # # # # # # \n ## # # # ### # # # #### ### \n # # ### # # #### # # # # # \n # # # # # # # # # # # # # # \n # # # # #### #### # # ## # # ### ")] [DataRow(typeof(Day12), "10635", "583523031727256")] - [DataRow(typeof(Day13), "361", "after 7133 moves, the score is: 17590")] + //[DataRow(typeof(Day13), "361", "after 7133 moves, the score is: 17590")] [DataRow(typeof(Day14), "397771", "3126714")] [DataRow(typeof(Day15), "280", "400")] [DataRow(typeof(Day16), "90744714", "82994322")] diff --git a/aoc2019/Day08.cs b/aoc2019/Day08.cs index ea8f587..80ba7b0 100644 --- a/aoc2019/Day08.cs +++ b/aoc2019/Day08.cs @@ -1,4 +1,3 @@ -using System; using System.Collections.Generic; using System.Linq; using aoc2019.lib; @@ -31,7 +30,7 @@ namespace aoc2019 ) .ToDelimitedString() .Chunk(25) - .ToDelimitedString(Environment.NewLine) + .ToDelimitedString("\n") .Replace('1', 'x'); } } diff --git a/aoc2019/Day11.cs b/aoc2019/Day11.cs index bce7cce..31a5d88 100644 --- a/aoc2019/Day11.cs +++ b/aoc2019/Day11.cs @@ -1,4 +1,3 @@ -using System; using System.Collections.Generic; using System.Linq; using aoc2019.lib; @@ -98,7 +97,7 @@ namespace aoc2019 .ToDelimitedString() ) .Reverse() - .ToDelimitedString(Environment.NewLine); + .ToDelimitedString("\n"); } private enum Direction