Exemplo n.º 1
0
        public async Task ShouldPerformOptimizedPolymerReactionForBigInput()
        {
            var sut = new OptimizedPolymer(PuzzleInputParser.ParseString("Day5/Input.txt"));
            await sut.ReactAsync();

            sut.Units.Should().Be(5122);
        }
Exemplo n.º 2
0
        public async Task ShouldPerformOptimizedPolymerReactionForSimpleExample()
        {
            var sut = new OptimizedPolymer("dabAcCaCBAcCcaDA");
            await sut.ReactAsync();

            sut.Units.Should().Be(4);
        }