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/cd_count.py

23 lines
No EOL
563 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=-946, b=0) == 2
def test_cd_count_2(self):
assert cd_count(a=873, b=164) == 1
def test_cd_count_3(self):
assert cd_count(a=0, b=-90) == 2
def test_cd_count_4(self):
assert cd_count(a=783, b=-749) == 1
def test_cd_count_5(self):
assert cd_count(a=621, b=-23) == 2
def test_cd_count_6(self):
assert cd_count(a=-635, b=444) == 1