Esempio n. 1
0
 public void Test2D()
 {
     string[] a = new string[]
     {
         "0 <-> 1, 2, 3, 4, 5, 6, 7, 8, 9",
     };
     Assert.AreEqual(1, Dec12.CountGroups(a));
 }
Esempio n. 2
0
 public void Test2C()
 {
     string[] a = new string[]
     {
         "0 <-> 1",
         "1 <-> 2",
         "2 <-> 3",
         "4 <-> 5",
         "6 <-> 5",
         "3 <-> 4",
     };
     Assert.AreEqual(1, Dec12.CountGroups(a));
 }
Esempio n. 3
0
 public void Test2B()
 {
     string[] a = new string[]
     {
         "0 <-> 2",
         "1 <-> 1",
         "5 <-> 6",
         "6 <-> 4, 5",
         "2 <-> 0, 3, 4",
         "3 <-> 2, 4",
         "4 <-> 2, 3, 6"
     };
     Assert.AreEqual(2, Dec12.CountGroups(a));
 }