Lines Matching refs:next_toward
176 'nexttoward':'next_toward',
1642 self.assertEqual(Decimal(567).next_toward(123),
1643 Decimal(567).next_toward(Decimal(123)))
2073 d = c.next_toward(Decimal(1), Decimal(2))
2074 self.assertEqual(c.next_toward(1, 2), d)
2075 self.assertEqual(c.next_toward(Decimal(1), 2), d)
2076 self.assertEqual(c.next_toward(1, Decimal(2)), d)
2077 self.assertRaises(TypeError, c.next_toward, '1', 2)
2078 self.assertRaises(TypeError, c.next_toward, 1, '2')