Exemplo n.º 1
0
 def test_off_centre_positive(self):
     self.assertEqual(list(g.check(cent=1)), [0, 1, 2])
Exemplo n.º 2
0
 def test_defaults(self):
     self.assertEqual(list(g.check()), [-1, 0, 1])
Exemplo n.º 3
0
 def test_off_centre_with_larger_range(self):
     self.assertEqual(list(g.check(cent=1, ran=2)), [-1, 0, 1, 2, 3])
Exemplo n.º 4
0
 def test_larger_range(self):
     self.assertEqual(list(g.check(ran=2)), [-2, -1, 0, 1, 2])
Exemplo n.º 5
0
 def test_zero_range(self):
     self.assertEqual(list(g.check(ran=0)), [0])
Exemplo n.º 6
0
 def test_off_centre_negative(self):
     self.assertEqual(list(g.check(cent=-1)), [-2, -1, 0])