Skip to content

Commit

Permalink
Add multiply logic.
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelkawaicheung committed Aug 16, 2024
1 parent bc5921a commit 9dc860a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/test_calculator.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import unittest
from calculator.calculator import add, subtract
from calculator.calculator import add, subtract, multiply

class TestCalculator(unittest.TestCase):

Expand All @@ -9,5 +9,8 @@ def test_add(self):
def test_subtract(self):
self.assertEqual(subtract(5, 3), 2)

def test_multiply(self):
self.assertEqual(multiply(3, 4), 12)

if __name__=='__main__':
unittest.main()

0 comments on commit 9dc860a

Please sign in to comment.