Exemplo n.º 1
0
        static void Main(string[] args)
        {
            string empty = NaiveCanonicalizer.GetCanonicalForm("");

            Console.WriteLine(empty == "");

            empty = NaiveCanonicalizer.GetCanonicalForm(" ");
            Console.WriteLine(empty == "");

            empty = NaiveCanonicalizer.GetCanonicalForm("   ");
            Console.WriteLine(empty == "");

            Console.WriteLine(NaiveCanonicalizer.GetCanonicalForm("Jackie life wonderful"));
            Console.WriteLine(NaiveCanonicalizer.GetCanonicalForm("Jackie   life   wonderful"));

            Console.WriteLine(NaiveCanonicalizer.GetCanonicalForm("Wonderful Life Jackie"));
            Console.WriteLine(NaiveCanonicalizer.GetCanonicalForm("life wonderful jackie"));
            Console.WriteLine(NaiveCanonicalizer.GetCanonicalForm("Jackie life wonderful"));

            Console.Read();
        }
Exemplo n.º 2
0
        static void Main(string[] args)
        {
            string empty = NaiveCanonicalizer.GetCanonicalForm("");

            Console.WriteLine(empty == "");
            empty = NaiveCanonicalizer.GetCanonicalForm("     ");
            Console.WriteLine(empty == "");
            empty = NaiveCanonicalizer.GetCanonicalForm("                ");
            Console.WriteLine(empty == "");



            Console.WriteLine(NaiveCanonicalizer.GetCanonicalForm("wonderful life katie melua         "));
            Console.WriteLine(NaiveCanonicalizer.GetCanonicalForm("life          wonderful katie        melua"));



            Console.WriteLine(NaiveCanonicalizer.GetCanonicalForm("wonderful life katie melua"));
            Console.WriteLine(NaiveCanonicalizer.GetCanonicalForm("life wonderful katie melua"));
            Console.WriteLine(NaiveCanonicalizer.GetCanonicalForm("katie melua life wonderful"));

            Console.Read();
        }