Ejemplo n.º 1
0
 public static void test4()
 {
     testing(
         LongestConsecutives.LongestConsec(
             new String[] { "itvayloxrp", "wkppqsztdkmvcuwvereiupccauycnjutlv", "vweqilsfytihvrzlaodfixoyxvyuyvgpck" },
             2), "wkppqsztdkmvcuwvereiupccauycnjutlvvweqilsfytihvrzlaodfixoyxvyuyvgpck");
 }
Ejemplo n.º 2
0
 public static void test2()
 {
     testing(
         LongestConsecutives.LongestConsec(
             new String[] { "ejjjjmmtthh", "zxxuueeg", "aanlljrrrxx", "dqqqaaabbb", "oocccffuucccjjjkkkjyyyeehh" }, 1),
         "oocccffuucccjjjkkkjyyyeehh");
 }
Ejemplo n.º 3
0
 public static void test1()
 {
     testing(
         LongestConsecutives.LongestConsec(
             new String[] { "zone", "abigail", "theta", "form", "libe", "zas", "theta", "abigail" }, 2),
         "abigailtheta");
 }
Ejemplo n.º 4
0
 public static void test1()
 {
     Console.WriteLine("Basic Tests");
     testing(LongestConsecutives.LongestConsec(new String[] { "zone", "abigail", "theta", "form", "libe", "zas", "theta", "abigail" }, 2), "abigailtheta");
     testing(LongestConsecutives.LongestConsec(new String[] { "ejjjjmmtthh", "zxxuueeg", "aanlljrrrxx", "dqqqaaabbb", "oocccffuucccjjjkkkjyyyeehh" }, 1), "oocccffuucccjjjkkkjyyyeehh");
     testing(LongestConsecutives.LongestConsec(new String[] {}, 3), "");
     testing(LongestConsecutives.LongestConsec(new String[] { "itvayloxrp", "wkppqsztdkmvcuwvereiupccauycnjutlv", "vweqilsfytihvrzlaodfixoyxvyuyvgpck" }, 2), "wkppqsztdkmvcuwvereiupccauycnjutlvvweqilsfytihvrzlaodfixoyxvyuyvgpck");
     testing(LongestConsecutives.LongestConsec(new String[] { "wlwsasphmxx", "owiaxujylentrklctozmymu", "wpgozvxxiu" }, 2), "wlwsasphmxxowiaxujylentrklctozmymu");
     testing(LongestConsecutives.LongestConsec(new String[] { "zone", "abigail", "theta", "form", "libe", "zas" }, -2), "");
     testing(LongestConsecutives.LongestConsec(new String[] { "it", "wkppv", "ixoyx", "3452", "zzzzzzzzzzzz" }, 3), "ixoyx3452zzzzzzzzzzzz");
     testing(LongestConsecutives.LongestConsec(new String[] { "it", "wkppv", "ixoyx", "3452", "zzzzzzzzzzzz" }, 15), "");
     testing(LongestConsecutives.LongestConsec(new String[] { "it", "wkppv", "ixoyx", "3452", "zzzzzzzzzzzz" }, 0), "");
 }
Ejemplo n.º 5
0
 public static void test9()
 {
     testing(LongestConsecutives.LongestConsec(new String[] { "it", "wkppv", "ixoyx", "3452", "zzzzzzzzzzzz" }, 0),
             "");
 }
Ejemplo n.º 6
0
 public static void test5()
 {
     testing(
         LongestConsecutives.LongestConsec(new String[] { "wlwsasphmxx", "owiaxujylentrklctozmymu", "wpgozvxxiu" }, 2),
         "wlwsasphmxxowiaxujylentrklctozmymu");
 }
Ejemplo n.º 7
0
 public static void test3()
 {
     testing(LongestConsecutives.LongestConsec(new String[] { }, 3), "");
 }