From 0a1ab1a9a51c3ae21021f43c94ad196f2f6746de Mon Sep 17 00:00:00 2001 From: Unknown Date: Wed, 24 Jun 2020 15:22:50 -0400 Subject: [PATCH] Test lcm() Increase coverage --- tests/test_utils.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/test_utils.py b/tests/test_utils.py index 38a1279..3fddc92 100644 --- a/tests/test_utils.py +++ b/tests/test_utils.py @@ -12,6 +12,15 @@ def test_rotate(config): assert (l2 == [2, 3, 1]) +def test_lcm(config): + # This function takes two integers and returns the L.C.M. + x = 10 + y = 50 + lcm = utils.lcm(x, y) + + assert (lcm == 5) + +