Ejemplo n.º 1
0
        public void XOR21Simple()
        {
            //Assert.IsTrue(false);

            int[] input    = { 4, 2, 8, 3, 9, 4, 10 };
            int[] output   = XOR21Filter.XOR21s(input);
            int[] expected = { 17, 23, 29, 22, 28, 17, 31 };



            CollectionAssert.AreEqual(expected, output);
        }
Ejemplo n.º 2
0
 public static List <int> combinedFilter(List <int> inputNumbers)
 {
     return(RunningTotalFilter.runningTotal(Modulo3.modulo3(XOR21Filter.XOR21s(inputNumbers.ToArray())).ToList <int>()));
 }
Ejemplo n.º 3
0
 public static int[] combinedFilter(int[] xs)
 {
     return(RunningTotalFilter.runningTotal(Modulo3.modulo3(XOR21Filter.XOR21s(xs)).ToList <int>()).ToArray());
 }