예제 #1
0
        public void Test2()
        {
            long[]     a      = new long[] { 1, 2, 3, 4 };
            List <int> result = Four.Solve(a);

            Assert.IsNull(result);
        }
예제 #2
0
        public void Test3()
        {
            long[]     a      = new long[] { -1, -2, -3, -4, 5 };
            List <int> result = Four.Solve(a);

            Assert.IsNull(result);
        }
예제 #3
0
        public void Test5()
        {
            long[]     a      = new long[] { -1, -2, 1, 2 };
            List <int> result = Four.Solve(a);

            Assert.IsNotNull(result);
            this.Check(a, result);
        }
예제 #4
0
        public void Test1()
        {
            long[]     a      = new long[] { -7, 1, 3, 7, 10, -14, 20 };
            List <int> result = Four.Solve(a);

            Assert.IsNotNull(result);
            this.Check(a, result);
        }