Пример #1
0
 def test_mul(self):
     cal = Calculator()
     assert 2 == cal.mul(1, 2)
Пример #2
0
 def test_dev1(self):
     cal = Calculator()
     assert 2 == cal.dev(20000000, 10000000)
Пример #3
0
 def test_mul5(self):
     cal = Calculator()
     assert 212121212121000000000 == cal.mul(1000000000, 212121212121)
Пример #4
0
 def test_mul4(self):
     cal = Calculator()
     assert -2.4 == cal.mul(-1.2, 2)
Пример #5
0
 def test_mul3(self):
     cal = Calculator()
     assert 2 == cal.mul(-1, -2)
Пример #6
0
 def test_mul2(self):
     cal = Calculator()
     assert 0.22 == cal.mul(1.1, 0.2)
Пример #7
0
 def test_mul1(self):
     cal = Calculator()
     assert 0 == cal.mul(0, 10000000)