Beispiel #1
0
        public void Test2()
        {
            string[] a = new string[] { "NORTH", "WEST", "SOUTH", "EAST" };
            string[] b = new string[] { "NORTH", "WEST", "SOUTH", "EAST" };
            //var m = DirectionsReduction.Solve(a);
            //var m = DirectionsReduction.Solve_myjinxin2015(a);
            var m = DirectionsReduction.Solve_Chris_fqs(a);

            CollectionAssert.AreEqual(b, m);
        }
Beispiel #2
0
 public void Test1()
 {
     string[] a = new string[] { "NORTH", "SOUTH", "SOUTH", "EAST", "WEST", "NORTH", "WEST" };
     string[] b = new string[] { "WEST" };
     Assert.AreEqual(b, DirectionsReduction.dirReduc(a));
 }