예제 #1
0
 def testEvalPoly1(self):
   POLY = hw.create_random_poly(2, 42)
   self.assertEqual(hw.eval_poly(POLY, 0), 42)
예제 #2
0
 def testEvalPoly2(self):
   self.assertEqual(hw.eval_poly(hw.create_random_poly(3, 9001), 0), 9001)