Lines Matching refs:DummyRational
49 class DummyRational(object): class
451 self.assertTrue(F(1, 2) == DummyRational(1, 2))
452 self.assertTrue(DummyRational(1, 2) == F(1, 2))
453 self.assertFalse(F(1, 2) == DummyRational(3, 4))
454 self.assertFalse(DummyRational(3, 4) == F(1, 2))
456 self.assertTrue(F(1, 2) < DummyRational(3, 4))
457 self.assertFalse(F(1, 2) < DummyRational(1, 2))
458 self.assertFalse(F(1, 2) < DummyRational(1, 7))
459 self.assertFalse(F(1, 2) > DummyRational(3, 4))
460 self.assertFalse(F(1, 2) > DummyRational(1, 2))
461 self.assertTrue(F(1, 2) > DummyRational(1, 7))
462 self.assertTrue(F(1, 2) <= DummyRational(3, 4))
463 self.assertTrue(F(1, 2) <= DummyRational(1, 2))
464 self.assertFalse(F(1, 2) <= DummyRational(1, 7))
465 self.assertFalse(F(1, 2) >= DummyRational(3, 4))
466 self.assertTrue(F(1, 2) >= DummyRational(1, 2))
467 self.assertTrue(F(1, 2) >= DummyRational(1, 7))
469 self.assertTrue(DummyRational(1, 2) < F(3, 4))
470 self.assertFalse(DummyRational(1, 2) < F(1, 2))
471 self.assertFalse(DummyRational(1, 2) < F(1, 7))
472 self.assertFalse(DummyRational(1, 2) > F(3, 4))
473 self.assertFalse(DummyRational(1, 2) > F(1, 2))
474 self.assertTrue(DummyRational(1, 2) > F(1, 7))
475 self.assertTrue(DummyRational(1, 2) <= F(3, 4))
476 self.assertTrue(DummyRational(1, 2) <= F(1, 2))
477 self.assertFalse(DummyRational(1, 2) <= F(1, 7))
478 self.assertFalse(DummyRational(1, 2) >= F(3, 4))
479 self.assertTrue(DummyRational(1, 2) >= F(1, 2))
480 self.assertTrue(DummyRational(1, 2) >= F(1, 7))