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

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

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