Ejemplo n.º 1
0
        public void TestPart1Sample2()
        {
            var input = @"0: 4 1 5
1: 2 3 | 3 2
2: 4 4 | 5 5
3: 4 5 | 5 4
4: ""a""
5: ""b""

ababbb
bababa
abbbab
aaabbb
aaaabbb".Split('\n');

            var parsed = Day19.ParseInput(input);

            Day19.CheckRuleAtIndex(parsed.rules, "ababbb").Any(c => c == "ababbb".Length).Should().BeTrue();
        }