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_common_divisor_count.py
2023-12-09 20:52:07 +01:00

19 lines
487 B
Python

from unittest import TestCase
from benchmark.common_divisor_count import cd_count
class Test_cd_count(TestCase):
def test_cd_count_1(self):
assert cd_count(a=-741, b=-457) == 2
def test_cd_count_2(self):
assert cd_count(a=111, b=99) == 6
def test_cd_count_3(self):
assert cd_count(a=740, b=-169) == 3
def test_cd_count_4(self):
assert cd_count(a=0, b=449) == 2
def test_cd_count_5(self):
assert cd_count(a=910, b=0) == 2