예제 #1
0
        public void PuzzleTwo()
        {
            string input  = File.ReadAllText("tests/y2019/Day3.Input.txt");
            var    wires  = input.Split('\n');
            var    actual = CrossedWires
                            .FindStepsCrossings(wires.First(), wires.Last());

            Assert.Equal(20286, actual);
        }
예제 #2
0
        public void FindNearestSteps(int expected, string a, string b)
        {
            var actual = CrossedWires.FindStepsCrossings(a, b);

            Assert.Equal(expected, actual);
        }