Skip to content

Commit 3fd9735

Browse files
Add zero-operand cases to least_common_multiple unit test
1 parent 9d7733f commit 3fd9735

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

maths/least_common_multiple.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,11 @@ class TestLeastCommonMultiple(unittest.TestCase):
7575
(12, 25),
7676
(10, 25),
7777
(6, 9),
78+
(0, 5),
79+
(5, 0),
80+
(0, 0),
7881
)
79-
expected_results = (20, 195, 124, 210, 1462, 60, 300, 50, 18)
82+
expected_results = (20, 195, 124, 210, 1462, 60, 300, 50, 18, 0, 0, 0)
8083

8184
def test_lcm_function(self):
8285
for i, (first_num, second_num) in enumerate(self.test_inputs):

0 commit comments

Comments
 (0)