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

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

            // Assert
            Assert.Equal(10035335144067ul, actual);
        }
Beispiel #2
0
        public void PuzzleOne()
        {
            // Arrange
            var program = @"
mask = XXXXXXXXXXXXXXXXXXXXXXXXXXXXX1XXXX0X
mem[8] = 11
mem[7] = 101
mem[8] = 0".ToProgram();

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

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