def test_FirstHighestOutputExample(self): phaseSettings = '43210' intcode = [ 3, 15, 3, 16, 1002, 16, 10, 16, 1, 16, 15, 15, 4, 15, 99, 0, 0 ] ampBank = amplifiersInSeries(intcode, phaseSettings) self.assertEqual(43210, ampBank.giveFinalOutput())
def test_SecondHighestExample(self): phaseSettings = '01234' intcode = [ 3, 23, 3, 24, 1002, 24, 10, 24, 1002, 23, -1, 23, 101, 5, 23, 23, 1, 24, 23, 23, 4, 23, 99, 0, 0 ] ampBank = amplifiersInSeries(intcode, phaseSettings) self.assertEqual(54321, ampBank.giveFinalOutput())