20 lines
487 B
Python
20 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
|