コード例 #1
0
        public void TestMethod2()
        {
            var res = MinimumAbsoluteDifference.minimumAbsoluteDifference(new int[] { -59, -36, -13, 1, -53, -92, -2, -96, -54, 75 });

            Assert.AreEqual <int>(1, res);
        }
コード例 #2
0
        public void TestMethod3()
        {
            var res = MinimumAbsoluteDifference.minimumAbsoluteDifference(new int[] { 1, -3, 71, 68, 17 });

            Assert.AreEqual <int>(3, res);
        }
コード例 #3
0
        public void TestMethod1()
        {
            var res = MinimumAbsoluteDifference.minimumAbsoluteDifference(new int[] { 3, -7, 0 });

            Assert.AreEqual <int>(3, res);
        }