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); }
public static List <int> combinedFilter(List <int> inputNumbers) { return(RunningTotalFilter.runningTotal(Modulo3.modulo3(XOR21Filter.XOR21s(inputNumbers.ToArray())).ToList <int>())); }
public static int[] combinedFilter(int[] xs) { return(RunningTotalFilter.runningTotal(Modulo3.modulo3(XOR21Filter.XOR21s(xs)).ToList <int>()).ToArray()); }