Пример #1
0
 public void Test1()
 {
     long[,] lst = new long[, ] {
         { 1, 2 }, { 1, 3 }, { 1, 4 }
     };
     Assert.AreEqual("(6,12)(4,12)(3,12)", Fracts.convertFrac(lst));
 }
Пример #2
0
 //[Test]
 public void Test1000000()
 {
     long[,] lst = new long[, ] {
         { 1000000, 2000000 }, { 1000000, 3000000 }, { 1000000, 4000000 }
     };
     Assert.AreEqual("(6,12)(4,12)(3,12)", Fracts.convertFrac(lst));
 }
Пример #3
0
        public void Test2()
        {
            //(69,130)(87,1310)(3,4)
            // Expected: "(18078,34060)(2262,34060)(25545,34060)"
            // But was:  "(90390,170300)(11310,170300)(127725,170300)"

            long[,] lst = new long[, ] {
                { 69, 130 }, { 87, 1310 }, { 3, 4 }
            };
            Assert.AreEqual("(18078,34060)(2262,34060)(25545,34060)", Fracts.convertFrac(lst));
        }