Exemplo n.º 1
0
 def test_multi(self):
     self.assertEqual(main.multi(6, 2), 12, 'multiplication fail')
 def test_multi(self):
     self.assertEqual(main.multi([3], [2]), [6])
 def test_multi_backwards(self):
     self.assertEqual(main.multi([2], [3]), [6])
 def test_multi_long_long(self):
     self.assertEqual(main.multi([0, 0, 1], [0, 0, 2]), [0, 0, 0, 0, 2])
 def test_multi_zero(self):
     self.assertEqual(main.multi([0], [5]), [0])
 def test_multi_transfer_backwards(self):
     self.assertEqual(main.multi([3], [4]), [2, 1])
 def test_multi_long(self):
     self.assertEqual(main.multi([9, 9], [7, 7]), [3, 2, 6, 7])
Exemplo n.º 8
0
 def test_multi(self):
     # self.skipTest('skip test_multi')
     self.assertEqual(9, multi(1, 9))
 def test_multi_transfer(self):
     self.assertEqual(main.multi([4], [3]), [2, 1])
Exemplo n.º 10
0
def test_multi():
    assert multi(2, 4) == 8
Exemplo n.º 11
0
 def test_multi(self):
     self.assertEqual(main.multi(6, 2), 12, 'multiplication fail')
Exemplo n.º 12
0
 def test_multi_3(self):
     pytest.skip('skip multi')
     assert 2 == multi(1, 2)
Exemplo n.º 13
0
 def test_multi_2(self):
     assert 2 == multi(1, 2)
Exemplo n.º 14
0
 def test_multi(self):
     assert 0 == multi(0, 2)
     assert 2 == multi(1, 2)