Beispiel #1
0
        public void PuzzlePartTwo()
        {
            //  Arrange
            var input = File
                        .ReadLines("tests/y2020/Day14.Input.txt")
                        .ToArray()
                        .ToProgram();

            // Act
            var actual = DockingData.EvaluateV2(input);

            // Assert
            Assert.Equal(3817372618036ul, actual);
        }
Beispiel #2
0
        public void PuzzleTwo()
        {
            // Arrange
            var program = @"
mask = 000000000000000000000000000000X1001X
mem[42] = 100
mask = 00000000000000000000000000000000X0XX
mem[26] = 1".ToProgram();

            // Act
            var actual = DockingData.EvaluateV2(program);

            // Assert
            Assert.Equal(208ul, actual);
        }