Exemplo n.º 1
0
 def test_empty(self):
     self.assertEqual(pointwise('add', [], []), [])
Exemplo n.º 2
0
 def test_tuple(self):
     self.assertEqual(pointwise('add', [1, 1], (2, 2)), (3, 3))
Exemplo n.º 3
0
 def test_singleton(self):
     self.assertEqual(pointwise('add', [1, 1], 1), [2, 2])
Exemplo n.º 4
0
 def test_add(self):
     self.assertEqual(pointwise('add', [1, 1], [2, 2]), [3, 3])
Exemplo n.º 5
0
 def test_empty(self):
     self.assertEqual(pointwise('add', [], []), [])
Exemplo n.º 6
0
 def test_singleton(self):
     self.assertEqual(pointwise('add', [1, 1], 1), [2, 2])
Exemplo n.º 7
0
 def test_tuple(self):
     self.assertEqual(pointwise('add', [1, 1], (2, 2)), (3, 3))
Exemplo n.º 8
0
 def test_add(self):
     self.assertEqual(pointwise('add', [1, 1], [2, 2]), [3, 3])