def testMixedEqual(self):
    self.assertTrue((0.5 == F(1, 2)))
    self.assertFalse((0.6 == F(1, 2)))
    self.assertTrue((F(1, 2) == 0.5))
    self.assertFalse((F(1, 2) == 0.4))
    self.assertTrue((2 == F(4, 2)))
    self.assertFalse((2 == F(3, 2)))
    self.assertTrue((F(4, 2) == 2))
    self.assertFalse((F(5, 2) == 2))
    self.assertFalse((F(5, 2) == float('nan')))
    self.assertFalse((float('nan') == F(3, 7)))
    self.assertFalse((F(5, 2) == float('inf')))
    self.assertFalse((float('-inf') == F(2, 5)))
def testMixedEqual(self):
    self.assertTrue((0.5 == F(1, 2)))
    self.assertFalse((0.6 == F(1, 2)))
    self.assertTrue((F(1, 2) == 0.5))
    self.assertFalse((F(1, 2) == 0.4))
    self.assertTrue((2 == F(4, 2)))
    self.assertFalse((2 == F(3, 2)))
    self.assertTrue((F(4, 2) == 2))
    self.assertFalse((F(5, 2) == 2))
    self.assertFalse((F(5, 2) == float('nan')))
    self.assertFalse((float('nan') == F(3, 7)))
    self.assertFalse((F(5, 2) == float('inf')))
    self.assertFalse((float('-inf') == F(2, 5)))