예제 #1
0
        public void Day07a_Test_c()
        {
            const string input          = "2 3 0 3 10 11 12 1 1 0 1 99 2 1 1 2";
            var          parsedMetaData = MetaDataCalculator.ParseMetaData(input);
            var          output         = MetaDataCalculator.CalculateMetaDataCount(parsedMetaData);

            output.Should().Be(138);
        }
예제 #2
0
        public void Day07a()
        {
            var input          = File.ReadAllText(".\\Content\\Day08.txt");
            var parsedMetaData = MetaDataCalculator.ParseMetaData(input);
            var output         = MetaDataCalculator.CalculateMetaDataCount(parsedMetaData);

            output.Should().Be(46781);
        }
예제 #3
0
        public void Day07a_Test_b()
        {
            const string input          = "1 3 0 3 4 5 6 1 2 3";
            var          parsedMetaData = MetaDataCalculator.ParseMetaData(input);
            var          output         = MetaDataCalculator.CalculateMetaDataCount(parsedMetaData);

            output.Should().Be(21);
        }