mirror of
https://github.com/louisleroy5/trnslator.git
synced 2024-12-23 08:05:54 -05:00
Test lcm()
Increase coverage
This commit is contained in:
parent
dfdf384a40
commit
0a1ab1a9a5
@ -12,6 +12,15 @@ def test_rotate(config):
|
|||||||
assert (l2 == [2, 3, 1])
|
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)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user