Example #1
0
        public void TestMethod7()
        {
            LookAndSayCalculator calculator = new LookAndSayCalculator();

            string current = "1321131112";
            for (int n = 0; n < 50; n++)
            {
                current = calculator.GenerateSequence(current);
            }

            Assert.AreEqual(6989950, current.Length);
        }
Example #2
0
 public void TestMethod5()
 {
     LookAndSayCalculator calculator = new LookAndSayCalculator();
     var result = calculator.GenerateSequence("111221");
     Assert.AreEqual("312211", result);
 }