Ejemplo n.º 1
0
        public void Day10_Part1_Solution()
        {
            var d = new Day10();

            var expected = 492982;
            var actual = d.GetSolutionLength("1321131112", 40);

            Assert.AreEqual(expected, actual);
        }
Ejemplo n.º 2
0
        public void Day10_Part2_Solution()
        {
            var d = new Day10();

            var expected = 6989950;
            var actual = d.GetSolutionLength("1321131112", 50);

            Assert.AreEqual(expected, actual);
        }
Ejemplo n.º 3
0
        public void Day10_Part1_Examples()
        {
            var d = new Day10();

            Assert.AreEqual("11", d.GetSolution("1", 1));
            Assert.AreEqual("21", d.GetSolution("11", 1));
            Assert.AreEqual("1211", d.GetSolution("21", 1));
            Assert.AreEqual("111221", d.GetSolution("1211", 1));
            Assert.AreEqual("312211", d.GetSolution("111221", 1));

            Assert.AreEqual("312211", d.GetSolution("1", 5));
        }