コード例 #1
0
 def test_FifthHighestOutputExample(self):
     phaseSettings = '97856'
     path = 'ExampleData\Day7part2Example2'
     ampBank = constructAmplifiersInSeriesWithFeedbackLoopFromFile(path,phaseSettings)
     self.assertEqual(18216, ampBank.giveFinalOutput())
コード例 #2
0
 def test_FourthHighestOutputExample(self):
     phaseSettings = '98765'
     path = 'ExampleData\Day7part2Example1'
     ampBank = constructAmplifiersInSeriesWithFeedbackLoopFromFile(path,phaseSettings)
     self.assertEqual(139629729, ampBank.giveFinalOutput())