public void Puzzle1_CountRemainingUnits_AfterAllCollapseEvents() { var polymer = new Polymer(Input.Day05); var collapsed = polymer.Collapse(); collapsed.Should().HaveLength(9288); }
public void Puzzle1LargerExample_PolymerCollapsesCorrectly() { const string input = "dabAcCaCBAcCcaDA"; const string expected = "dabCBAcaDA"; var polymer = new Polymer(input); var collapsed = polymer.Collapse(); collapsed.Should().Be(expected); }