Beispiel #1
0
        public void Test_RunLength()
        {
            StringCompression compress = new StringCompression();
            string            str      = "wwwggopp";

            Console.WriteLine("Run Length:");

            Console.WriteLine("Input:  {0}", str);
            Console.WriteLine("Output: {0}", compress.RunLength(str));
            Console.WriteLine();

            str = "wwwbbbw";
            Console.WriteLine("Input:  {0}", str);
            Console.WriteLine("Output: {0}", compress.RunLength(str));
            Console.WriteLine();
        }