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