Home
last modified time | relevance | path

Searched refs:DummyRational (Results 1 – 2 of 2) sorted by relevance

/external/python/cpython2/Lib/test/
Dtest_fractions.py56 class DummyRational(object): class
424 self.assertTrue(F(1, 2) == DummyRational(1, 2))
425 self.assertTrue(DummyRational(1, 2) == F(1, 2))
426 self.assertFalse(F(1, 2) == DummyRational(3, 4))
427 self.assertFalse(DummyRational(3, 4) == F(1, 2))
429 self.assertTrue(F(1, 2) < DummyRational(3, 4))
430 self.assertFalse(F(1, 2) < DummyRational(1, 2))
431 self.assertFalse(F(1, 2) < DummyRational(1, 7))
432 self.assertFalse(F(1, 2) > DummyRational(3, 4))
433 self.assertFalse(F(1, 2) > DummyRational(1, 2))
[all …]
/external/python/cpython3/Lib/test/
Dtest_fractions.py49 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))
[all …]