Home | History | Annotate | Download | only in test

Lines Matching refs:inc

16         inc = make_adder(1)
19 self.assertEqual(inc(1), 2)
31 inc = make_adder2(1)
34 self.assertEqual(inc(1), 2)
45 inc = make_adder3(0)
48 self.assertEqual(inc(1), 2)
77 inc = make_adder5(1)
80 self.assertEqual(inc(1), 2)
92 inc = make_adder6(1)
95 self.assertEqual(inc(1), 11) # there's only one global
232 inc = f1(1)
234 self.assertEqual(inc(1), 2)
238 inc = f2(1)
240 self.assertEqual(inc(1), 2)
245 inc = f3(None)
246 self.assertEqual(inc(2), 3)
608 def inc():
616 return inc, dec
618 inc, dec = f(0)
619 self.assertEqual(inc(), 1)
620 self.assertEqual(inc(), 2)
627 def inc(self):
637 self.assertEqual(c.inc(), 1)
638 self.assertEqual(c.inc(), 2)