Beispiel #1
0
 def test__negyzet1(self):
     expected = 9
     result = calculator(3, 2, '^')
     self.assertEqual(expected, result)
Beispiel #2
0
 def test__gyok1(self):
     expected = 3
     result = calculator(9, 1 / 2, '^')
     self.assertEqual(expected, result)
Beispiel #3
0
 def test__kivonas1(self):
     expected = 3
     result = calculator(5, 2, '-')
     self.assertEqual(expected, result)
Beispiel #4
0
 def test__hiba1(self):
     expected = 'None'
     result = calculator(5, 2, '')
     self.assertEqual(expected, result)
Beispiel #5
0
 def test__osztas2(self):
     expected = 0.25
     result = calculator(5, 20, ':')
     self.assertEqual(expected, result)
Beispiel #6
0
 def test__osztas1(self):
     expected = 4
     result = calculator(20, 5, ':')
     self.assertEqual(expected, result)
Beispiel #7
0
 def test__szorzas1(self):
     expected = 10
     result = calculator(2, 5, '*')
     self.assertEqual(expected, result)
Beispiel #8
0
 def test__osszeadas1(self):
     expected = 9
     result = calculator(4, 5)
     self.assertEqual(expected, result)
Beispiel #9
0
 def test_my_add_is_callable(self):
     calculator(3, 4)