big: Refactored gcm and lcm to use a common function.

This commit is contained in:
Jeroen van Rijn
2021-08-11 20:59:52 +02:00
parent 06f5a6c785
commit 6424a5a8dd
3 changed files with 130 additions and 48 deletions
+4 -2
View File
@@ -430,16 +430,18 @@ TESTS = {
[ 12_345 ],
],
test_gcd: [
[ 123, 25, ],
[ 23, 25, ],
[ 125, 25, ],
[ 125, 0, ],
[ 0, 0, ],
[ 0, 125,],
],
test_lcm: [
[ 123, 25, ],
[ 23, 25,],
[ 125, 25, ],
[ 125, 0, ],
[ 0, 0, ],
[ 0, 125,],
],
}