Ejemplo n.º 1
0
        public void WordBreakTest_3()
        {
            var wordBreak = new WordBreakII();
            var input     = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa";
            var list      = new string[] { "a", "aa", "aaa", "aaaa", "aaaaa", "aaaaaa", "aaaaaaa", "aaaaaaaa", "aaaaaaaaa", "aaaaaaaaaa" };

            wordBreak.WordBreak(input, list);
        }
Ejemplo n.º 2
0
        public void Test2()
        {
            var wordBreak = new WordBreakII();
            var input     = "pineapplepenapple";
            var list      = new string[] { "apple", "pen", "applepen", "pine", "pineapple" };

            wordBreak.WordBreak(input, list);
        }
Ejemplo n.º 3
0
        public void WordBreakTest()
        {
            var wordBreak = new WordBreakII();
            var input     = "catsanddog";
            var list      = new string[] { "cat", "cats", "and", "sand", "dog" };

            wordBreak.WordBreak(input, list);
        }