def testInterpZeroFraction(self): self.assertEqual(10.0, hw.interp(10.0, 100, 0))
def testInterpFracOverOne(self): self.assertEqual(5.0, hw.interp(1.0, 3.0, 2.0))
def testInterpNegFraction(self): self.assertEqual(0.5, hw.interp(1.0, 3.0, -0.25))
def testInterpSameHighAndLow(self): self.assertEqual(0.0, hw.interp(0.0, 0.0, 0.1))