19 lines
413 B
Python
19 lines
413 B
Python
from unittest import TestCase
|
|
from benchmark.gcd import gcd
|
|
|
|
|
|
class Test_gcd(TestCase):
|
|
def test_gcd_1(self):
|
|
assert gcd(a=1, b=292) == 1
|
|
|
|
def test_gcd_2(self):
|
|
assert gcd(a=706, b=706) == 706
|
|
|
|
def test_gcd_3(self):
|
|
assert gcd(a=506, b=1) == 1
|
|
|
|
def test_gcd_4(self):
|
|
assert gcd(a=695, b=765) == 765
|
|
|
|
def test_gcd_5(self):
|
|
assert gcd(a=140, b=29) == 140
|