Esempio n. 1
0
        public void ParseSubstitutionRules()
        {
            string[] rules =
            {
                "H => HO",
                "H => OH",
                "O => HH"
            };
            var input = "HOH";

            _day19.ParseSubstitutionRules(rules);
            var results = _day19.GenerateReplacements(input);

            Assert.AreEqual(4, results.Count);
        }