public async Task Day_7_2(string inputFile, int answer) { var lines = LineReader.Open(inputFile); var amps = new Amplifiers(new[] { 5, 6, 7, 8, 9 }); var x = await amps.FindMaxOutput(lines, feedbackLoop : true); Assert.Equal(answer, x); }
public async Task Day_7_1(string inputFile, int answer) { var lines = LineReader.Open(inputFile); var amps = new Amplifiers(new[] { 0, 1, 2, 3, 4 }); var x = await amps.FindMaxOutput(lines); Assert.Equal(answer, x); }