This repository has been archived on 2024-10-22. You can view files and clone it, but cannot push or open issues or pull requests.
kse-02/tests/test_gcd.py

20 lines
413 B
Python
Raw Normal View History

2023-12-09 13:43:29 +00:00
from unittest import TestCase
from benchmark.gcd import gcd
class Test_gcd(TestCase):
def test_gcd_1(self):
2023-12-09 19:52:07 +00:00
assert gcd(a=1, b=292) == 1
2023-12-09 13:43:29 +00:00
def test_gcd_2(self):
2023-12-09 19:52:07 +00:00
assert gcd(a=706, b=706) == 706
2023-12-09 13:43:29 +00:00
def test_gcd_3(self):
2023-12-09 19:52:07 +00:00
assert gcd(a=506, b=1) == 1
2023-12-09 13:43:29 +00:00
def test_gcd_4(self):
2023-12-09 19:52:07 +00:00
assert gcd(a=695, b=765) == 765
2023-12-09 13:43:29 +00:00
def test_gcd_5(self):
2023-12-09 19:52:07 +00:00
assert gcd(a=140, b=29) == 140