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

305 lines
6.5 KiB
Python
Raw Normal View History

2023-11-15 17:23:53 +00:00
from unittest import TestCase
from benchmark.gcd import gcd
class Test_gcd(TestCase):
def test_gcd_1(self):
2023-12-09 10:56:23 +00:00
assert gcd(a=829, b=830) == 1
2023-11-15 17:23:53 +00:00
def test_gcd_2(self):
2023-12-09 10:56:23 +00:00
assert gcd(a=505, b=952) == 1
2023-11-15 17:23:53 +00:00
def test_gcd_3(self):
2023-12-09 10:56:23 +00:00
assert gcd(a=30, b=553) == 1
2023-11-15 17:23:53 +00:00
def test_gcd_4(self):
2023-12-09 10:56:23 +00:00
assert gcd(a=813, b=867) == 3
2023-11-15 17:23:53 +00:00
def test_gcd_5(self):
2023-12-09 10:56:23 +00:00
assert gcd(a=250, b=967) == 1
2023-11-15 17:23:53 +00:00
def test_gcd_6(self):
2023-12-09 10:56:23 +00:00
assert gcd(a=20, b=316) == 4
2023-11-15 17:23:53 +00:00
def test_gcd_7(self):
2023-12-09 10:56:23 +00:00
assert gcd(a=724, b=730) == 2
2023-11-15 17:23:53 +00:00
def test_gcd_8(self):
2023-12-09 10:56:23 +00:00
assert gcd(a=505, b=270) == 5
2023-11-15 17:23:53 +00:00
def test_gcd_9(self):
2023-12-09 10:56:23 +00:00
assert gcd(a=67, b=461) == 1
2023-11-15 17:23:53 +00:00
def test_gcd_10(self):
2023-12-09 10:56:23 +00:00
assert gcd(a=434, b=948) == 2
2023-11-15 17:23:53 +00:00
def test_gcd_11(self):
2023-12-09 10:56:23 +00:00
assert gcd(a=262, b=926) == 2
2023-11-15 17:23:53 +00:00
def test_gcd_12(self):
2023-12-09 10:56:23 +00:00
assert gcd(a=606, b=904) == 2
2023-11-15 17:23:53 +00:00
def test_gcd_13(self):
2023-12-09 10:56:23 +00:00
assert gcd(a=672, b=971) == 1
2023-11-15 17:23:53 +00:00
def test_gcd_14(self):
2023-12-09 10:56:23 +00:00
assert gcd(a=608, b=499) == 1
2023-11-15 17:23:53 +00:00
def test_gcd_15(self):
2023-12-09 10:56:23 +00:00
assert gcd(a=375, b=876) == 3
2023-11-15 17:23:53 +00:00
def test_gcd_16(self):
2023-12-09 10:56:23 +00:00
assert gcd(a=44, b=728) == 4
2023-11-15 17:23:53 +00:00
def test_gcd_17(self):
2023-12-09 10:56:23 +00:00
assert gcd(a=499, b=663) == 1
2023-11-15 17:23:53 +00:00
def test_gcd_18(self):
2023-12-09 10:56:23 +00:00
assert gcd(a=137, b=617) == 1
2023-11-15 17:23:53 +00:00
def test_gcd_19(self):
2023-12-09 10:56:23 +00:00
assert gcd(a=910, b=867) == 1
2023-11-15 17:23:53 +00:00
def test_gcd_20(self):
2023-12-09 10:56:23 +00:00
assert gcd(a=991, b=191) == 1
2023-11-15 17:23:53 +00:00
def test_gcd_21(self):
2023-12-09 10:56:23 +00:00
assert gcd(a=180, b=535) == 5
2023-11-15 17:23:53 +00:00
def test_gcd_22(self):
2023-12-09 10:56:23 +00:00
assert gcd(a=809, b=88) == 1
2023-11-15 17:23:53 +00:00
def test_gcd_23(self):
2023-12-09 10:56:23 +00:00
assert gcd(a=708, b=429) == 3
2023-11-15 17:23:53 +00:00
def test_gcd_24(self):
2023-12-09 10:56:23 +00:00
assert gcd(a=342, b=530) == 2
2023-11-15 17:23:53 +00:00
def test_gcd_25(self):
2023-12-09 10:56:23 +00:00
assert gcd(a=17, b=726) == 1
2023-11-15 17:23:53 +00:00
def test_gcd_26(self):
2023-12-09 10:56:23 +00:00
assert gcd(a=167, b=760) == 1
2023-11-15 17:23:53 +00:00
def test_gcd_27(self):
2023-12-09 10:56:23 +00:00
assert gcd(a=929, b=345) == 1
2023-11-15 17:23:53 +00:00
def test_gcd_28(self):
2023-12-09 10:56:23 +00:00
assert gcd(a=639, b=726) == 3
2023-11-15 17:23:53 +00:00
def test_gcd_29(self):
2023-12-09 10:56:23 +00:00
assert gcd(a=99, b=658) == 1
2023-11-15 17:23:53 +00:00
def test_gcd_30(self):
2023-12-09 10:56:23 +00:00
assert gcd(a=523, b=488) == 1
2023-11-15 17:23:53 +00:00
def test_gcd_31(self):
2023-12-09 10:56:23 +00:00
assert gcd(a=364, b=503) == 1
2023-11-15 17:23:53 +00:00
def test_gcd_32(self):
2023-12-09 10:56:23 +00:00
assert gcd(a=826, b=765) == 1
2023-11-15 17:23:53 +00:00
def test_gcd_33(self):
2023-12-09 10:56:23 +00:00
assert gcd(a=53, b=492) == 1
2023-11-15 17:23:53 +00:00
def test_gcd_34(self):
2023-12-09 10:56:23 +00:00
assert gcd(a=459, b=293) == 1
2023-11-15 17:23:53 +00:00
def test_gcd_35(self):
2023-12-09 10:56:23 +00:00
assert gcd(a=64, b=209) == 1
2023-11-15 17:23:53 +00:00
def test_gcd_36(self):
2023-12-09 10:56:23 +00:00
assert gcd(a=435, b=98) == 1
2023-11-15 17:23:53 +00:00
def test_gcd_37(self):
2023-12-09 10:56:23 +00:00
assert gcd(a=810, b=131) == 1
2023-11-15 17:23:53 +00:00
def test_gcd_38(self):
2023-12-09 10:56:23 +00:00
assert gcd(a=724, b=722) == 2
2023-11-15 17:23:53 +00:00
def test_gcd_39(self):
2023-12-09 10:56:23 +00:00
assert gcd(a=294, b=596) == 2
2023-11-15 17:23:53 +00:00
def test_gcd_40(self):
2023-12-09 10:56:23 +00:00
assert gcd(a=608, b=325) == 1
2023-11-15 17:23:53 +00:00
def test_gcd_41(self):
2023-12-09 10:56:23 +00:00
assert gcd(a=348, b=221) == 1
2023-11-15 17:23:53 +00:00
def test_gcd_42(self):
2023-12-09 10:56:23 +00:00
assert gcd(a=435, b=535) == 5
2023-11-15 17:23:53 +00:00
def test_gcd_43(self):
2023-12-09 10:56:23 +00:00
assert gcd(a=945, b=301) == 7
2023-11-15 17:23:53 +00:00
def test_gcd_44(self):
2023-12-09 10:56:23 +00:00
assert gcd(a=527, b=701) == 1
2023-11-15 17:23:53 +00:00
def test_gcd_45(self):
2023-12-09 10:56:23 +00:00
assert gcd(a=30, b=464) == 2
2023-11-15 17:23:53 +00:00
def test_gcd_46(self):
2023-12-09 10:56:23 +00:00
assert gcd(a=370, b=103) == 1
2023-11-15 17:23:53 +00:00
def test_gcd_47(self):
2023-12-09 10:56:23 +00:00
assert gcd(a=831, b=710) == 1
2023-11-15 17:23:53 +00:00
def test_gcd_48(self):
2023-12-09 10:56:23 +00:00
assert gcd(a=999, b=894) == 3
2023-11-15 17:23:53 +00:00
def test_gcd_49(self):
2023-12-09 10:56:23 +00:00
assert gcd(a=100, b=504) == 4
2023-11-15 17:23:53 +00:00
def test_gcd_50(self):
2023-12-09 10:56:23 +00:00
assert gcd(a=944, b=357) == 1
2023-11-15 17:23:53 +00:00
def test_gcd_51(self):
2023-12-09 10:56:23 +00:00
assert gcd(a=380, b=166) == 2
2023-11-15 17:23:53 +00:00
def test_gcd_52(self):
2023-12-09 10:56:23 +00:00
assert gcd(a=292, b=362) == 2
2023-11-15 17:23:53 +00:00
def test_gcd_53(self):
2023-12-09 10:56:23 +00:00
assert gcd(a=805, b=209) == 1
2023-11-15 17:23:53 +00:00
def test_gcd_54(self):
2023-12-09 10:56:23 +00:00
assert gcd(a=586, b=417) == 1
2023-11-15 17:23:53 +00:00
def test_gcd_55(self):
2023-12-09 10:56:23 +00:00
assert gcd(a=121, b=726) == 121
2023-11-15 17:23:53 +00:00
def test_gcd_56(self):
2023-12-09 10:56:23 +00:00
assert gcd(a=999, b=467) == 1
2023-11-15 17:23:53 +00:00
def test_gcd_57(self):
2023-12-09 10:56:23 +00:00
assert gcd(a=570, b=393) == 3
2023-11-15 17:23:53 +00:00
def test_gcd_58(self):
2023-12-09 10:56:23 +00:00
assert gcd(a=968, b=464) == 8
2023-11-15 17:23:53 +00:00
def test_gcd_59(self):
2023-12-09 10:56:23 +00:00
assert gcd(a=542, b=901) == 1
2023-11-15 17:23:53 +00:00
def test_gcd_60(self):
2023-12-09 10:56:23 +00:00
assert gcd(a=573, b=303) == 3
2023-11-15 17:23:53 +00:00
def test_gcd_61(self):
2023-12-09 10:56:23 +00:00
assert gcd(a=898, b=88) == 2
2023-11-15 17:23:53 +00:00
def test_gcd_62(self):
2023-12-09 10:56:23 +00:00
assert gcd(a=153, b=876) == 3
2023-11-15 17:23:53 +00:00
def test_gcd_63(self):
2023-12-09 10:56:23 +00:00
assert gcd(a=144, b=329) == 1
2023-11-15 17:23:53 +00:00
def test_gcd_64(self):
2023-12-09 10:56:23 +00:00
assert gcd(a=334, b=260) == 2
2023-11-15 17:23:53 +00:00
def test_gcd_65(self):
2023-12-09 10:56:23 +00:00
assert gcd(a=722, b=108) == 2
2023-11-15 17:23:53 +00:00
def test_gcd_66(self):
2023-12-09 10:56:23 +00:00
assert gcd(a=546, b=445) == 1
2023-11-15 17:23:53 +00:00
def test_gcd_67(self):
2023-12-09 10:56:23 +00:00
assert gcd(a=561, b=154) == 11
2023-11-15 17:23:53 +00:00
def test_gcd_68(self):
2023-12-09 10:56:23 +00:00
assert gcd(a=955, b=931) == 1
2023-11-15 17:23:53 +00:00
def test_gcd_69(self):
2023-12-09 10:56:23 +00:00
assert gcd(a=982, b=450) == 2
2023-11-15 17:23:53 +00:00
def test_gcd_70(self):
2023-12-09 10:56:23 +00:00
assert gcd(a=656, b=193) == 1
2023-11-15 17:23:53 +00:00
def test_gcd_71(self):
2023-12-09 10:56:23 +00:00
assert gcd(a=578, b=901) == 17
2023-11-15 17:23:53 +00:00
def test_gcd_72(self):
2023-12-09 10:56:23 +00:00
assert gcd(a=524, b=663) == 1
2023-11-15 17:23:53 +00:00
def test_gcd_73(self):
2023-12-09 10:56:23 +00:00
assert gcd(a=272, b=314) == 2
2023-11-15 17:23:53 +00:00
def test_gcd_74(self):
2023-12-09 10:56:23 +00:00
assert gcd(a=444, b=876) == 12
2023-11-15 17:23:53 +00:00
def test_gcd_75(self):
2023-12-09 10:56:23 +00:00
assert gcd(a=624, b=707) == 1
2023-11-15 17:23:53 +00:00
def test_gcd_76(self):
2023-12-09 10:56:23 +00:00
assert gcd(a=525, b=963) == 3
2023-11-15 17:23:53 +00:00
def test_gcd_77(self):
2023-12-09 10:56:23 +00:00
assert gcd(a=929, b=892) == 1
2023-11-15 17:23:53 +00:00
def test_gcd_78(self):
2023-12-09 10:56:23 +00:00
assert gcd(a=208, b=418) == 2
2023-11-15 17:23:53 +00:00
def test_gcd_79(self):
2023-12-09 10:56:23 +00:00
assert gcd(a=434, b=846) == 2
2023-11-15 17:23:53 +00:00
def test_gcd_80(self):
2023-12-09 10:56:23 +00:00
assert gcd(a=813, b=715) == 1
2023-11-15 17:23:53 +00:00
def test_gcd_81(self):
2023-12-09 10:56:23 +00:00
assert gcd(a=180, b=352) == 4
2023-11-15 17:23:53 +00:00
def test_gcd_82(self):
2023-12-09 10:56:23 +00:00
assert gcd(a=693, b=370) == 1
2023-11-15 17:23:53 +00:00
def test_gcd_83(self):
2023-12-09 10:56:23 +00:00
assert gcd(a=908, b=263) == 1
2023-11-15 17:23:53 +00:00
def test_gcd_84(self):
2023-12-09 10:56:23 +00:00
assert gcd(a=247, b=737) == 1
2023-11-15 17:23:53 +00:00
def test_gcd_85(self):
2023-12-09 10:56:23 +00:00
assert gcd(a=304, b=102) == 2
2023-11-15 17:23:53 +00:00
def test_gcd_86(self):
2023-12-09 10:56:23 +00:00
assert gcd(a=202, b=899) == 1
2023-11-15 17:23:53 +00:00
def test_gcd_87(self):
2023-12-09 10:56:23 +00:00
assert gcd(a=417, b=230) == 1
2023-11-15 17:23:53 +00:00
def test_gcd_88(self):
2023-12-09 10:56:23 +00:00
assert gcd(a=642, b=271) == 1
2023-11-15 17:23:53 +00:00
def test_gcd_89(self):
2023-12-09 10:56:23 +00:00
assert gcd(a=355, b=120) == 5
2023-11-15 17:23:53 +00:00
def test_gcd_90(self):
2023-12-09 10:56:23 +00:00
assert gcd(a=323, b=150) == 1
2023-11-15 17:23:53 +00:00
def test_gcd_91(self):
2023-12-09 10:56:23 +00:00
assert gcd(a=414, b=598) == 46
2023-11-15 17:23:53 +00:00
def test_gcd_92(self):
2023-12-09 10:56:23 +00:00
assert gcd(a=791, b=429) == 1
2023-11-15 17:23:53 +00:00
def test_gcd_93(self):
2023-12-09 10:56:23 +00:00
assert gcd(a=968, b=93) == 1
2023-11-15 17:23:53 +00:00
def test_gcd_94(self):
2023-12-09 10:56:23 +00:00
assert gcd(a=820, b=504) == 4
2023-11-15 17:23:53 +00:00
def test_gcd_95(self):
2023-12-09 10:56:23 +00:00
assert gcd(a=24, b=195) == 3
2023-11-15 17:23:53 +00:00
def test_gcd_96(self):
2023-12-09 10:56:23 +00:00
assert gcd(a=295, b=521) == 1
2023-11-15 17:23:53 +00:00
def test_gcd_97(self):
2023-12-09 10:56:23 +00:00
assert gcd(a=758, b=190) == 2
2023-11-15 17:23:53 +00:00
def test_gcd_98(self):
2023-12-09 10:56:23 +00:00
assert gcd(a=91, b=99) == 1
2023-11-15 17:23:53 +00:00
def test_gcd_99(self):
2023-12-09 10:56:23 +00:00
assert gcd(a=89, b=765) == 1
2023-11-15 17:23:53 +00:00
def test_gcd_100(self):
2023-12-09 10:56:23 +00:00
assert gcd(a=17, b=427) == 1