def testFloats(self): for x in xrange(-10, 10): for y in xrange(-10, 10): x = x / 10.0 y = y / 10.0 p = my_math2.product(x, y) self.failUnless(p == x * y, 'Float multiplication failed')
def test_floats(self): for x in range(-10, 10): for y in range(-10, 10): x = x / 10 y = y / 10 p = my_math2.product(x, y) self.assertEqual(p, x * y, 'Floatの乗算に失敗しました')
def testFloats(self): for x in xrange(-10, 10): for x in xrange(-10, 10): x = x/10.0 y = y/10.0 p = my_math2.product(x, y) self.failUnless(p == x*y, 'Float multiplication failed')
def testInteger(self): for x in xrange(-10, 10): for y in xrange(-10, 10): p = my_math2.product(x, y) self.failUnless(p == x * y, 'Integer Multiplication failed')
def test_integers(self): for x in range(-10, 10): for y in range(-10, 10): p = my_math2.product(x, y) self.assertEqual(p, x * y, 'Integerの乗算に失敗しました')
def testIntegers(self): for x in xrange(-10, 10): for y in xrange(-10, 10): p = my_math2.product(x, y) self.failUnless(p == x*y, 'Integer multiplication failed')