예제 #1
0
        public void TestInput()
        {
            var segments = Day5InputParser.ParseSegments("input_data/day5-test.txt");
            var g        = new Grid(10);

            g.LoadHVLineSegments(segments);

            Assert.Equal(5, g.CountOverlaps());
        }
예제 #2
0
        public void PuzzelTwo()
        {
            var segments = Day5InputParser.ParseSegments("input_data/day5-1.txt");
            var g        = new Grid(1000);

            g.LoadLineSegments(segments);

            Assert.Equal(21698, g.CountOverlaps());
        }