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