예제 #1
0
 def test_subtraction(self):
     self.assertTrue(solution(10, 20, "-"), 10)
예제 #2
0
 def test_addition(self):
     self.assertTrue(solution(10, 20, "+"), 30)
예제 #3
0
 def test_multiplication(self):
     self.assertTrue(solution(10, 20, "*"), 200)
예제 #4
0
 def test_modulers(self):
     self.assertTrue(solution(15, 2, "%"), 1)
예제 #5
0
 def test_division(self):
     self.assertTrue(solution(10, 20, "%"), 2)