308 lines
7.7 KiB
Python
308 lines
7.7 KiB
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=584, b=-345) == 1
|
||
|
|
||
|
def test_cd_count_2(self):
|
||
|
assert cd_count(a=-712, b=-668) == 3
|
||
|
|
||
|
def test_cd_count_3(self):
|
||
|
assert cd_count(a=975, b=-510) == 4
|
||
|
|
||
|
def test_cd_count_4(self):
|
||
|
assert cd_count(a=-610, b=-557) == 1
|
||
|
|
||
|
def test_cd_count_5(self):
|
||
|
assert cd_count(a=176, b=400) == 5
|
||
|
|
||
|
def test_cd_count_6(self):
|
||
|
assert cd_count(a=308, b=-472) == 3
|
||
|
|
||
|
def test_cd_count_7(self):
|
||
|
assert cd_count(a=-330, b=778) == 2
|
||
|
|
||
|
def test_cd_count_8(self):
|
||
|
assert cd_count(a=-271, b=212) == 1
|
||
|
|
||
|
def test_cd_count_9(self):
|
||
|
assert cd_count(a=-841, b=-15) == 1
|
||
|
|
||
|
def test_cd_count_10(self):
|
||
|
assert cd_count(a=993, b=450) == 2
|
||
|
|
||
|
def test_cd_count_11(self):
|
||
|
assert cd_count(a=-939, b=495) == 2
|
||
|
|
||
|
def test_cd_count_12(self):
|
||
|
assert cd_count(a=322, b=545) == 1
|
||
|
|
||
|
def test_cd_count_13(self):
|
||
|
assert cd_count(a=325, b=-464) == 1
|
||
|
|
||
|
def test_cd_count_14(self):
|
||
|
assert cd_count(a=-415, b=109) == 1
|
||
|
|
||
|
def test_cd_count_15(self):
|
||
|
assert cd_count(a=388, b=302) == 2
|
||
|
|
||
|
def test_cd_count_16(self):
|
||
|
assert cd_count(a=-120, b=-61) == 1
|
||
|
|
||
|
def test_cd_count_17(self):
|
||
|
assert cd_count(a=-402, b=164) == 2
|
||
|
|
||
|
def test_cd_count_18(self):
|
||
|
assert cd_count(a=-315, b=257) == 1
|
||
|
|
||
|
def test_cd_count_19(self):
|
||
|
assert cd_count(a=-994, b=-955) == 1
|
||
|
|
||
|
def test_cd_count_20(self):
|
||
|
assert cd_count(a=611, b=-113) == 1
|
||
|
|
||
|
def test_cd_count_21(self):
|
||
|
assert cd_count(a=821, b=550) == 1
|
||
|
|
||
|
def test_cd_count_22(self):
|
||
|
assert cd_count(a=-404, b=960) == 3
|
||
|
|
||
|
def test_cd_count_23(self):
|
||
|
assert cd_count(a=162, b=-422) == 2
|
||
|
|
||
|
def test_cd_count_24(self):
|
||
|
assert cd_count(a=940, b=741) == 1
|
||
|
|
||
|
def test_cd_count_25(self):
|
||
|
assert cd_count(a=12, b=-270) == 4
|
||
|
|
||
|
def test_cd_count_26(self):
|
||
|
assert cd_count(a=-490, b=-403) == 1
|
||
|
|
||
|
def test_cd_count_27(self):
|
||
|
assert cd_count(a=-87, b=-270) == 2
|
||
|
|
||
|
def test_cd_count_28(self):
|
||
|
assert cd_count(a=-362, b=-406) == 2
|
||
|
|
||
|
def test_cd_count_29(self):
|
||
|
assert cd_count(a=328, b=-291) == 1
|
||
|
|
||
|
def test_cd_count_30(self):
|
||
|
assert cd_count(a=457, b=328) == 1
|
||
|
|
||
|
def test_cd_count_31(self):
|
||
|
assert cd_count(a=-837, b=-349) == 1
|
||
|
|
||
|
def test_cd_count_32(self):
|
||
|
assert cd_count(a=27, b=-391) == 1
|
||
|
|
||
|
def test_cd_count_33(self):
|
||
|
assert cd_count(a=-417, b=-969) == 2
|
||
|
|
||
|
def test_cd_count_34(self):
|
||
|
assert cd_count(a=-529, b=-472) == 1
|
||
|
|
||
|
def test_cd_count_35(self):
|
||
|
assert cd_count(a=-109, b=-69) == 1
|
||
|
|
||
|
def test_cd_count_36(self):
|
||
|
assert cd_count(a=961, b=105) == 1
|
||
|
|
||
|
def test_cd_count_37(self):
|
||
|
assert cd_count(a=-669, b=-16) == 1
|
||
|
|
||
|
def test_cd_count_38(self):
|
||
|
assert cd_count(a=-932, b=284) == 3
|
||
|
|
||
|
def test_cd_count_39(self):
|
||
|
assert cd_count(a=164, b=-438) == 2
|
||
|
|
||
|
def test_cd_count_40(self):
|
||
|
assert cd_count(a=-652, b=215) == 1
|
||
|
|
||
|
def test_cd_count_41(self):
|
||
|
assert cd_count(a=-925, b=-731) == 1
|
||
|
|
||
|
def test_cd_count_42(self):
|
||
|
assert cd_count(a=751, b=-61) == 1
|
||
|
|
||
|
def test_cd_count_43(self):
|
||
|
assert cd_count(a=-101, b=-24) == 1
|
||
|
|
||
|
def test_cd_count_44(self):
|
||
|
assert cd_count(a=397, b=-482) == 1
|
||
|
|
||
|
def test_cd_count_45(self):
|
||
|
assert cd_count(a=216, b=701) == 1
|
||
|
|
||
|
def test_cd_count_46(self):
|
||
|
assert cd_count(a=-937, b=-668) == 1
|
||
|
|
||
|
def test_cd_count_47(self):
|
||
|
assert cd_count(a=628, b=-490) == 2
|
||
|
|
||
|
def test_cd_count_48(self):
|
||
|
assert cd_count(a=127, b=969) == 1
|
||
|
|
||
|
def test_cd_count_49(self):
|
||
|
assert cd_count(a=297, b=382) == 1
|
||
|
|
||
|
def test_cd_count_50(self):
|
||
|
assert cd_count(a=-290, b=104) == 2
|
||
|
|
||
|
def test_cd_count_51(self):
|
||
|
assert cd_count(a=-68, b=-878) == 2
|
||
|
|
||
|
def test_cd_count_52(self):
|
||
|
assert cd_count(a=81, b=-13) == 1
|
||
|
|
||
|
def test_cd_count_53(self):
|
||
|
assert cd_count(a=930, b=288) == 4
|
||
|
|
||
|
def test_cd_count_54(self):
|
||
|
assert cd_count(a=943, b=-700) == 1
|
||
|
|
||
|
def test_cd_count_55(self):
|
||
|
assert cd_count(a=-669, b=-422) == 1
|
||
|
|
||
|
def test_cd_count_56(self):
|
||
|
assert cd_count(a=-528, b=763) == 1
|
||
|
|
||
|
def test_cd_count_57(self):
|
||
|
assert cd_count(a=735, b=154) == 2
|
||
|
|
||
|
def test_cd_count_58(self):
|
||
|
assert cd_count(a=341, b=-332) == 1
|
||
|
|
||
|
def test_cd_count_59(self):
|
||
|
assert cd_count(a=-62, b=-332) == 2
|
||
|
|
||
|
def test_cd_count_60(self):
|
||
|
assert cd_count(a=-271, b=580) == 1
|
||
|
|
||
|
def test_cd_count_61(self):
|
||
|
assert cd_count(a=-440, b=-186) == 2
|
||
|
|
||
|
def test_cd_count_62(self):
|
||
|
assert cd_count(a=260, b=-956) == 3
|
||
|
|
||
|
def test_cd_count_63(self):
|
||
|
assert cd_count(a=-625, b=457) == 1
|
||
|
|
||
|
def test_cd_count_64(self):
|
||
|
assert cd_count(a=-483, b=-400) == 1
|
||
|
|
||
|
def test_cd_count_65(self):
|
||
|
assert cd_count(a=-319, b=137) == 1
|
||
|
|
||
|
def test_cd_count_66(self):
|
||
|
assert cd_count(a=-972, b=-931) == 1
|
||
|
|
||
|
def test_cd_count_67(self):
|
||
|
assert cd_count(a=-285, b=940) == 2
|
||
|
|
||
|
def test_cd_count_68(self):
|
||
|
assert cd_count(a=-434, b=-581) == 2
|
||
|
|
||
|
def test_cd_count_69(self):
|
||
|
assert cd_count(a=-529, b=-666) == 1
|
||
|
|
||
|
def test_cd_count_70(self):
|
||
|
assert cd_count(a=948, b=763) == 1
|
||
|
|
||
|
def test_cd_count_71(self):
|
||
|
assert cd_count(a=-660, b=-657) == 2
|
||
|
|
||
|
def test_cd_count_72(self):
|
||
|
assert cd_count(a=-816, b=-241) == 1
|
||
|
|
||
|
def test_cd_count_73(self):
|
||
|
assert cd_count(a=524, b=594) == 2
|
||
|
|
||
|
def test_cd_count_74(self):
|
||
|
assert cd_count(a=-14, b=743) == 1
|
||
|
|
||
|
def test_cd_count_75(self):
|
||
|
assert cd_count(a=745, b=-80) == 2
|
||
|
|
||
|
def test_cd_count_76(self):
|
||
|
assert cd_count(a=493, b=504) == 1
|
||
|
|
||
|
def test_cd_count_77(self):
|
||
|
assert cd_count(a=-170, b=-232) == 2
|
||
|
|
||
|
def test_cd_count_78(self):
|
||
|
assert cd_count(a=28, b=-804) == 3
|
||
|
|
||
|
def test_cd_count_79(self):
|
||
|
assert cd_count(a=221, b=212) == 1
|
||
|
|
||
|
def test_cd_count_80(self):
|
||
|
assert cd_count(a=994, b=-397) == 1
|
||
|
|
||
|
def test_cd_count_81(self):
|
||
|
assert cd_count(a=-902, b=193) == 1
|
||
|
|
||
|
def test_cd_count_82(self):
|
||
|
assert cd_count(a=221, b=580) == 1
|
||
|
|
||
|
def test_cd_count_83(self):
|
||
|
assert cd_count(a=-953, b=312) == 1
|
||
|
|
||
|
def test_cd_count_84(self):
|
||
|
assert cd_count(a=-21, b=-927) == 2
|
||
|
|
||
|
def test_cd_count_85(self):
|
||
|
assert cd_count(a=-944, b=-658) == 2
|
||
|
|
||
|
def test_cd_count_86(self):
|
||
|
assert cd_count(a=750, b=-290) == 4
|
||
|
|
||
|
def test_cd_count_87(self):
|
||
|
assert cd_count(a=-554, b=931) == 1
|
||
|
|
||
|
def test_cd_count_88(self):
|
||
|
assert cd_count(a=-534, b=-763) == 1
|
||
|
|
||
|
def test_cd_count_89(self):
|
||
|
assert cd_count(a=237, b=447) == 2
|
||
|
|
||
|
def test_cd_count_90(self):
|
||
|
assert cd_count(a=-221, b=829) == 1
|
||
|
|
||
|
def test_cd_count_91(self):
|
||
|
assert cd_count(a=-649, b=273) == 1
|
||
|
|
||
|
def test_cd_count_92(self):
|
||
|
assert cd_count(a=276, b=-612) == 6
|
||
|
|
||
|
def test_cd_count_93(self):
|
||
|
assert cd_count(a=653, b=-567) == 1
|
||
|
|
||
|
def test_cd_count_94(self):
|
||
|
assert cd_count(a=447, b=-227) == 1
|
||
|
|
||
|
def test_cd_count_95(self):
|
||
|
assert cd_count(a=-217, b=-767) == 1
|
||
|
|
||
|
def test_cd_count_96(self):
|
||
|
assert cd_count(a=820, b=-622) == 2
|
||
|
|
||
|
def test_cd_count_97(self):
|
||
|
assert cd_count(a=-640, b=-892) == 3
|
||
|
|
||
|
def test_cd_count_98(self):
|
||
|
assert cd_count(a=-222, b=209) == 1
|
||
|
|
||
|
def test_cd_count_99(self):
|
||
|
assert cd_count(a=-100, b=-89) == 1
|
||
|
|
||
|
def test_cd_count_100(self):
|
||
|
assert cd_count(a=820, b=-332) == 3
|
||
|
|
||
|
def test_cd_count_101(self):
|
||
|
assert cd_count(a=-902, b=814) == 4
|