static void TestRemovePalindrome() { var lst = new WordSet(new string[] { "ab", "abb", "bab", "aba", "abc", "abababa" }); lst.RemovePalindrome(); Console.WriteLine(lst.ToString()); }
static void TestDelete() { var lst = new WordSet(new string[] { "c", "a", "d", "b" }); lst.Delete("c"); Console.WriteLine(lst.ToString()); }
static void TestNewWordSetByWordLength() { var lst = new WordSet(new string[] { "a", "aa", "aaa", "bb", "bbbb", "cc" }); lst = lst.NewWordSetByWordLength(2); Console.WriteLine(lst.ToString()); }
static void TestInsert() { var lst = new WordSet(new string[] { "c", "a", "d" }); lst.Insert("b"); Console.WriteLine(lst.ToString()); }