Exemple #1
0
        public void LookAndSee(string input, string expected)
        {
            var day10  = new Day10();
            var actual = day10.LookAndSay(input);

            Assert.Equal(expected, actual);
        }
Exemple #2
0
        public void LookAndSeeMultiple(string input, int repetitions, string expected)
        {
            var day10  = new Day10();
            var actual = day10.LookAndSay(input, repetitions);

            Assert.Equal(expected, actual);
        }
Exemple #3
0
        public void LookAndSayActualPart2()
        {
            const int TotalRibbon = 6989950;

            var day10  = new Day10();
            var actual = day10.LookAndSay("1321131112", 50);

            Assert.Equal(TotalRibbon, actual.Length);
        }
Exemple #4
0
        public void LookAndSayActual()
        {
            const int TotalRibbon = 492982;

            var day10  = new Day10();
            var actual = day10.LookAndSay("1321131112", 40);

            Assert.Equal(TotalRibbon, actual.Length);
        }
Exemple #5
0
 public void Samples(string input, string expected)
 {
     Assert.AreEqual(expected, _day10.LookAndSay(input));
 }
Exemple #6
0
        public void LookAndSayTest(string input, string expected)
        {
            var actual = day10.LookAndSay(input);

            Assert.AreEqual(expected, actual);
        }
 public void S111221Returns312211()
 {
     Assert.AreEqual("312211", Day10.LookAndSay("111221"));
 }
 public void S21Returns1211()
 {
     Assert.AreEqual("1211", Day10.LookAndSay("21"));
 }
 public void S11Returns21()
 {
     Assert.AreEqual("21", Day10.LookAndSay("11"));
 }