コード例 #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
ファイル: tests.py プロジェクト: AndyG1128/prettyqr
 def test_empty(self):
     self.assertEqual(pointwise('add', [], []), [])
コード例 #6
0
ファイル: tests.py プロジェクト: AndyG1128/prettyqr
 def test_singleton(self):
     self.assertEqual(pointwise('add', [1, 1], 1), [2, 2])
コード例 #7
0
ファイル: tests.py プロジェクト: AndyG1128/prettyqr
 def test_tuple(self):
     self.assertEqual(pointwise('add', [1, 1], (2, 2)), (3, 3))
コード例 #8
0
ファイル: tests.py プロジェクト: AndyG1128/prettyqr
 def test_add(self):
     self.assertEqual(pointwise('add', [1, 1], [2, 2]), [3, 3])