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