コード例 #1
0
 def testGuaranteedSafe(self):
     hobo = Hobo()
     hobo.runningResults = [[0, 0]]
     hobo.runningL0 = [1000]
     hobo.runningL1 = [5]
     value = hobo.doMaths()
     answer = [100]
     self.assertEqual(answer, value)
コード例 #2
0
 def testNormal(self):
     hobo = Hobo()
     hobo.runningResults = [[0, 0], [1, 1]]
     hobo.runningL0 = [3, 4]
     hobo.runningL1 = [4, 5]
     value = hobo.doMaths()
     answer = [46, 66]
     self.assertEqual(answer, value)