305 lines
6.5 KiB
Python
305 lines
6.5 KiB
Python
|
from unittest import TestCase
|
||
|
|
||
|
from benchmark.gcd import gcd
|
||
|
|
||
|
|
||
|
class Test_gcd(TestCase):
|
||
|
def test_gcd_1(self):
|
||
|
assert gcd(a=782, b=82) == 2
|
||
|
|
||
|
def test_gcd_2(self):
|
||
|
assert gcd(a=988, b=163) == 1
|
||
|
|
||
|
def test_gcd_3(self):
|
||
|
assert gcd(a=971, b=855) == 1
|
||
|
|
||
|
def test_gcd_4(self):
|
||
|
assert gcd(a=961, b=161) == 1
|
||
|
|
||
|
def test_gcd_5(self):
|
||
|
assert gcd(a=240, b=558) == 6
|
||
|
|
||
|
def test_gcd_6(self):
|
||
|
assert gcd(a=681, b=608) == 1
|
||
|
|
||
|
def test_gcd_7(self):
|
||
|
assert gcd(a=587, b=964) == 1
|
||
|
|
||
|
def test_gcd_8(self):
|
||
|
assert gcd(a=396, b=396) == 396
|
||
|
|
||
|
def test_gcd_9(self):
|
||
|
assert gcd(a=586, b=958) == 2
|
||
|
|
||
|
def test_gcd_10(self):
|
||
|
assert gcd(a=352, b=214) == 2
|
||
|
|
||
|
def test_gcd_11(self):
|
||
|
assert gcd(a=145, b=992) == 1
|
||
|
|
||
|
def test_gcd_12(self):
|
||
|
assert gcd(a=8, b=550) == 2
|
||
|
|
||
|
def test_gcd_13(self):
|
||
|
assert gcd(a=344, b=780) == 4
|
||
|
|
||
|
def test_gcd_14(self):
|
||
|
assert gcd(a=621, b=385) == 1
|
||
|
|
||
|
def test_gcd_15(self):
|
||
|
assert gcd(a=301, b=638) == 1
|
||
|
|
||
|
def test_gcd_16(self):
|
||
|
assert gcd(a=807, b=763) == 1
|
||
|
|
||
|
def test_gcd_17(self):
|
||
|
assert gcd(a=331, b=639) == 1
|
||
|
|
||
|
def test_gcd_18(self):
|
||
|
assert gcd(a=334, b=408) == 2
|
||
|
|
||
|
def test_gcd_19(self):
|
||
|
assert gcd(a=394, b=904) == 2
|
||
|
|
||
|
def test_gcd_20(self):
|
||
|
assert gcd(a=295, b=785) == 5
|
||
|
|
||
|
def test_gcd_21(self):
|
||
|
assert gcd(a=851, b=47) == 1
|
||
|
|
||
|
def test_gcd_22(self):
|
||
|
assert gcd(a=962, b=950) == 2
|
||
|
|
||
|
def test_gcd_23(self):
|
||
|
assert gcd(a=704, b=51) == 1
|
||
|
|
||
|
def test_gcd_24(self):
|
||
|
assert gcd(a=982, b=53) == 1
|
||
|
|
||
|
def test_gcd_25(self):
|
||
|
assert gcd(a=342, b=721) == 1
|
||
|
|
||
|
def test_gcd_26(self):
|
||
|
assert gcd(a=519, b=126) == 3
|
||
|
|
||
|
def test_gcd_27(self):
|
||
|
assert gcd(a=647, b=973) == 1
|
||
|
|
||
|
def test_gcd_28(self):
|
||
|
assert gcd(a=120, b=942) == 6
|
||
|
|
||
|
def test_gcd_29(self):
|
||
|
assert gcd(a=233, b=154) == 1
|
||
|
|
||
|
def test_gcd_30(self):
|
||
|
assert gcd(a=275, b=550) == 275
|
||
|
|
||
|
def test_gcd_31(self):
|
||
|
assert gcd(a=651, b=262) == 1
|
||
|
|
||
|
def test_gcd_32(self):
|
||
|
assert gcd(a=71, b=619) == 1
|
||
|
|
||
|
def test_gcd_33(self):
|
||
|
assert gcd(a=804, b=346) == 2
|
||
|
|
||
|
def test_gcd_34(self):
|
||
|
assert gcd(a=652, b=193) == 1
|
||
|
|
||
|
def test_gcd_35(self):
|
||
|
assert gcd(a=502, b=431) == 1
|
||
|
|
||
|
def test_gcd_36(self):
|
||
|
assert gcd(a=4, b=290) == 2
|
||
|
|
||
|
def test_gcd_37(self):
|
||
|
assert gcd(a=160, b=498) == 2
|
||
|
|
||
|
def test_gcd_38(self):
|
||
|
assert gcd(a=227, b=596) == 1
|
||
|
|
||
|
def test_gcd_39(self):
|
||
|
assert gcd(a=562, b=470) == 2
|
||
|
|
||
|
def test_gcd_40(self):
|
||
|
assert gcd(a=907, b=763) == 1
|
||
|
|
||
|
def test_gcd_41(self):
|
||
|
assert gcd(a=973, b=653) == 1
|
||
|
|
||
|
def test_gcd_42(self):
|
||
|
assert gcd(a=652, b=232) == 4
|
||
|
|
||
|
def test_gcd_43(self):
|
||
|
assert gcd(a=562, b=396) == 2
|
||
|
|
||
|
def test_gcd_44(self):
|
||
|
assert gcd(a=166, b=78) == 2
|
||
|
|
||
|
def test_gcd_45(self):
|
||
|
assert gcd(a=759, b=782) == 23
|
||
|
|
||
|
def test_gcd_46(self):
|
||
|
assert gcd(a=176, b=284) == 4
|
||
|
|
||
|
def test_gcd_47(self):
|
||
|
assert gcd(a=982, b=948) == 2
|
||
|
|
||
|
def test_gcd_48(self):
|
||
|
assert gcd(a=173, b=178) == 1
|
||
|
|
||
|
def test_gcd_49(self):
|
||
|
assert gcd(a=720, b=240) == 240
|
||
|
|
||
|
def test_gcd_50(self):
|
||
|
assert gcd(a=145, b=315) == 5
|
||
|
|
||
|
def test_gcd_51(self):
|
||
|
assert gcd(a=946, b=524) == 2
|
||
|
|
||
|
def test_gcd_52(self):
|
||
|
assert gcd(a=851, b=890) == 1
|
||
|
|
||
|
def test_gcd_53(self):
|
||
|
assert gcd(a=529, b=826) == 1
|
||
|
|
||
|
def test_gcd_54(self):
|
||
|
assert gcd(a=516, b=766) == 2
|
||
|
|
||
|
def test_gcd_55(self):
|
||
|
assert gcd(a=873, b=139) == 1
|
||
|
|
||
|
def test_gcd_56(self):
|
||
|
assert gcd(a=371, b=142) == 1
|
||
|
|
||
|
def test_gcd_57(self):
|
||
|
assert gcd(a=162, b=653) == 1
|
||
|
|
||
|
def test_gcd_58(self):
|
||
|
assert gcd(a=867, b=952) == 17
|
||
|
|
||
|
def test_gcd_59(self):
|
||
|
assert gcd(a=941, b=444) == 1
|
||
|
|
||
|
def test_gcd_60(self):
|
||
|
assert gcd(a=443, b=214) == 1
|
||
|
|
||
|
def test_gcd_61(self):
|
||
|
assert gcd(a=385, b=9) == 1
|
||
|
|
||
|
def test_gcd_62(self):
|
||
|
assert gcd(a=180, b=791) == 1
|
||
|
|
||
|
def test_gcd_63(self):
|
||
|
assert gcd(a=571, b=114) == 1
|
||
|
|
||
|
def test_gcd_64(self):
|
||
|
assert gcd(a=591, b=780) == 3
|
||
|
|
||
|
def test_gcd_65(self):
|
||
|
assert gcd(a=710, b=625) == 5
|
||
|
|
||
|
def test_gcd_66(self):
|
||
|
assert gcd(a=946, b=67) == 1
|
||
|
|
||
|
def test_gcd_67(self):
|
||
|
assert gcd(a=297, b=525) == 3
|
||
|
|
||
|
def test_gcd_68(self):
|
||
|
assert gcd(a=686, b=819) == 7
|
||
|
|
||
|
def test_gcd_69(self):
|
||
|
assert gcd(a=549, b=875) == 1
|
||
|
|
||
|
def test_gcd_70(self):
|
||
|
assert gcd(a=969, b=524) == 1
|
||
|
|
||
|
def test_gcd_71(self):
|
||
|
assert gcd(a=248, b=750) == 2
|
||
|
|
||
|
def test_gcd_72(self):
|
||
|
assert gcd(a=969, b=67) == 1
|
||
|
|
||
|
def test_gcd_73(self):
|
||
|
assert gcd(a=308, b=175) == 7
|
||
|
|
||
|
def test_gcd_74(self):
|
||
|
assert gcd(a=471, b=974) == 1
|
||
|
|
||
|
def test_gcd_75(self):
|
||
|
assert gcd(a=409, b=685) == 1
|
||
|
|
||
|
def test_gcd_76(self):
|
||
|
assert gcd(a=625, b=552) == 1
|
||
|
|
||
|
def test_gcd_77(self):
|
||
|
assert gcd(a=490, b=431) == 1
|
||
|
|
||
|
def test_gcd_78(self):
|
||
|
assert gcd(a=836, b=938) == 2
|
||
|
|
||
|
def test_gcd_79(self):
|
||
|
assert gcd(a=628, b=306) == 2
|
||
|
|
||
|
def test_gcd_80(self):
|
||
|
assert gcd(a=522, b=964) == 2
|
||
|
|
||
|
def test_gcd_81(self):
|
||
|
assert gcd(a=907, b=977) == 1
|
||
|
|
||
|
def test_gcd_82(self):
|
||
|
assert gcd(a=924, b=703) == 1
|
||
|
|
||
|
def test_gcd_83(self):
|
||
|
assert gcd(a=658, b=615) == 1
|
||
|
|
||
|
def test_gcd_84(self):
|
||
|
assert gcd(a=716, b=258) == 2
|
||
|
|
||
|
def test_gcd_85(self):
|
||
|
assert gcd(a=88, b=349) == 1
|
||
|
|
||
|
def test_gcd_86(self):
|
||
|
assert gcd(a=838, b=353) == 1
|
||
|
|
||
|
def test_gcd_87(self):
|
||
|
assert gcd(a=329, b=801) == 1
|
||
|
|
||
|
def test_gcd_88(self):
|
||
|
assert gcd(a=969, b=306) == 51
|
||
|
|
||
|
def test_gcd_89(self):
|
||
|
assert gcd(a=611, b=14) == 1
|
||
|
|
||
|
def test_gcd_90(self):
|
||
|
assert gcd(a=716, b=47) == 1
|
||
|
|
||
|
def test_gcd_91(self):
|
||
|
assert gcd(a=431, b=825) == 1
|
||
|
|
||
|
def test_gcd_92(self):
|
||
|
assert gcd(a=496, b=632) == 8
|
||
|
|
||
|
def test_gcd_93(self):
|
||
|
assert gcd(a=658, b=290) == 2
|
||
|
|
||
|
def test_gcd_94(self):
|
||
|
assert gcd(a=754, b=194) == 2
|
||
|
|
||
|
def test_gcd_95(self):
|
||
|
assert gcd(a=29, b=213) == 1
|
||
|
|
||
|
def test_gcd_96(self):
|
||
|
assert gcd(a=284, b=226) == 2
|
||
|
|
||
|
def test_gcd_97(self):
|
||
|
assert gcd(a=106, b=419) == 1
|
||
|
|
||
|
def test_gcd_98(self):
|
||
|
assert gcd(a=361, b=236) == 1
|
||
|
|
||
|
def test_gcd_99(self):
|
||
|
assert gcd(a=341, b=105) == 1
|
||
|
|
||
|
def test_gcd_100(self):
|
||
|
assert gcd(a=330, b=144) == 6
|