done up to 07. Verify that current fuzzying procedure is fine according to guidelines
This commit is contained in:
parent
abc54f2324
commit
8fcd6bb5a6
15 changed files with 73 additions and 3461 deletions
72
fuzzer.py
72
fuzzer.py
|
@ -1,11 +1,9 @@
|
|||
import os
|
||||
from random import randrange, choice, random
|
||||
from typing import Callable
|
||||
from random import randrange, choice, random, sample
|
||||
|
||||
import tqdm
|
||||
from frozendict import frozendict
|
||||
|
||||
from instrument import load_benchmark, Arg, Params, functions, invoke, call_statement, BranchTransformer, module_of
|
||||
from instrument import Arg, Params, invoke, call_statement, BranchTransformer, module_of
|
||||
|
||||
Range = tuple[int, int]
|
||||
|
||||
|
@ -133,51 +131,17 @@ def crossover(chosen_test: Params, other_chosen_test: Params, arguments: list[Ar
|
|||
return t1, t2
|
||||
|
||||
|
||||
def get_test_cases(f_name: str, arguments: list[Arg], n: int, enable_bar=True) -> set[Params]:
|
||||
assert n >= 1
|
||||
|
||||
def generate_test_case(f_name: str, arguments: list[Arg]) -> Params:
|
||||
pool: set[Params] = get_pool(arguments)
|
||||
pool_list = list(pool)
|
||||
tests: set[Params] = set()
|
||||
|
||||
n = min(n, max_cases(arguments) // 3) # bound n by 1/3rd of the max possible number of tests
|
||||
while True:
|
||||
test = sample(pool, 1)[0]
|
||||
|
||||
with tqdm.tqdm(total=n, desc=f"Tests for {BranchTransformer.to_original_name(f_name)}",
|
||||
disable=not enable_bar) as pbar:
|
||||
def consider_test_case(t: Params):
|
||||
if t not in pool:
|
||||
pool.add(t)
|
||||
pool_list.append(t)
|
||||
|
||||
try:
|
||||
invoke(f_name, t) # check if this input satisfies the input assertion
|
||||
except AssertionError:
|
||||
return
|
||||
|
||||
if t not in tests:
|
||||
tests.add(t)
|
||||
pbar.update()
|
||||
|
||||
while len(tests) < n:
|
||||
chosen_test: Params = choice(pool_list)
|
||||
kind = choice(['pool', 'mutation', 'crossover'])
|
||||
|
||||
if kind == 'mutation':
|
||||
consider_test_case(mutate(chosen_test, arguments))
|
||||
elif kind == 'crossover':
|
||||
# pick other distinct sample
|
||||
while True:
|
||||
other_chosen_test: Params = choice(pool_list)
|
||||
if frozendict(chosen_test) != frozendict(other_chosen_test):
|
||||
break
|
||||
|
||||
t1, t2 = crossover(chosen_test, other_chosen_test, arguments)
|
||||
consider_test_case(t1)
|
||||
consider_test_case(t2)
|
||||
else:
|
||||
consider_test_case(chosen_test)
|
||||
|
||||
return tests
|
||||
try:
|
||||
invoke(f_name, test)
|
||||
return test # return only test cases that satisfy assertions
|
||||
except AssertionError:
|
||||
pass
|
||||
|
||||
|
||||
def str_crossover(parent1: str, parent2: str):
|
||||
|
@ -209,19 +173,3 @@ def get_test_class(f_name: str, cases: set[Params]) -> str:
|
|||
f"class Test_{f_name_orig}(TestCase):\n")
|
||||
test_class += "\n\n".join([get_test_case_source(f_name, case, i + 1, 1) for i, case in enumerate(cases)])
|
||||
return test_class
|
||||
|
||||
|
||||
def main():
|
||||
load_benchmark(save_instrumented=False) # instrument all files in benchmark
|
||||
|
||||
if not os.path.isdir(OUT_DIR):
|
||||
os.makedirs(OUT_DIR)
|
||||
|
||||
for f_name in functions.keys():
|
||||
with open(os.path.join(OUT_DIR, f_name + ".py"), "w") as f:
|
||||
cases = get_test_cases(f_name, functions[f_name], 100)
|
||||
f.write(get_test_class(f_name, cases))
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
|
|
88
genetic.py
88
genetic.py
|
@ -1,20 +1,22 @@
|
|||
import os
|
||||
from typing import Callable
|
||||
import random
|
||||
import sys
|
||||
|
||||
import frozendict
|
||||
import tqdm
|
||||
from deap import creator, base, tools, algorithms
|
||||
|
||||
import fuzzer
|
||||
import instrument
|
||||
from fuzzer import get_test_cases, get_test_class
|
||||
from fuzzer import generate_test_case, get_test_class
|
||||
|
||||
INDMUPROB = 0.05
|
||||
MUPROB = 0.1
|
||||
CXPROB = 0.5
|
||||
MUPROB = 0.33
|
||||
CXPROB = 0.33
|
||||
TOURNSIZE = 3
|
||||
NPOP = 300
|
||||
NPOP = 1000
|
||||
NGEN = 200
|
||||
REPS = 1
|
||||
REPS = 10
|
||||
|
||||
to_test: str = ""
|
||||
|
||||
|
@ -25,21 +27,27 @@ def normalize(x):
|
|||
return x / (1.0 + x)
|
||||
|
||||
|
||||
def get_test_case_generator(f_name: str, arguments: list[instrument.Arg]) -> Callable[[], list]:
|
||||
return lambda: list(list(get_test_cases(f_name, arguments, 1, enable_bar=False))[0].items())
|
||||
def init_deap():
|
||||
creator.create("Fitness", base.Fitness, weights=(-1.0,))
|
||||
creator.create("Individual", list, fitness=creator.Fitness)
|
||||
|
||||
|
||||
def taken_branches_descriptor() -> str:
|
||||
branch_ids = sorted([f"{branch:2d}T" for branch in instrument.archive_true_branches.keys()] +
|
||||
[f"{branch:2d}F" for branch in instrument.archive_false_branches.keys()])
|
||||
return ' '.join([branch.strip() for branch in branch_ids])
|
||||
|
||||
|
||||
def generate(f_name: str):
|
||||
global to_test
|
||||
to_test = f_name
|
||||
|
||||
creator.create("Fitness", base.Fitness, weights=(-1.0,))
|
||||
creator.create("Individual", list, fitness=creator.Fitness)
|
||||
orig_name = instrument.BranchTransformer.to_original_name(f_name)
|
||||
|
||||
args = instrument.functions[f_name]
|
||||
|
||||
toolbox = base.Toolbox()
|
||||
toolbox.register("attr_test_case", get_test_case_generator(to_test, instrument.functions[to_test]))
|
||||
toolbox.register("attr_test_case", lambda: list(generate_test_case(f_name, args).items()))
|
||||
toolbox.register("individual", tools.initIterate, creator.Individual, lambda: toolbox.attr_test_case())
|
||||
toolbox.register("population", tools.initRepeat, list, toolbox.individual)
|
||||
toolbox.register("evaluate", compute_fitness)
|
||||
|
@ -60,19 +68,38 @@ def generate(f_name: str):
|
|||
toolbox.register("mutate", mutate)
|
||||
toolbox.register("select", tools.selTournament, tournsize=TOURNSIZE)
|
||||
|
||||
top_result = set()
|
||||
top_coverage = 0
|
||||
|
||||
range_start, range_end = instrument.n_of_branches[to_test]
|
||||
total_branches = (range_end - range_start) * 2 # *2 because of True and False
|
||||
|
||||
coverage = []
|
||||
for i in range(REPS):
|
||||
instrument.archive_true_branches = {}
|
||||
instrument.archive_false_branches = {}
|
||||
population = toolbox.population(n=NPOP)
|
||||
algorithms.eaSimple(population, toolbox, CXPROB, MUPROB, NGEN) # , verbose=False)
|
||||
cov = len(instrument.archive_true_branches) + len(instrument.archive_false_branches)
|
||||
print(cov, instrument.archive_true_branches, instrument.archive_false_branches)
|
||||
|
||||
algorithms.eaSimple(population, toolbox, CXPROB, MUPROB, NGEN, verbose=False)
|
||||
|
||||
true_covered = len(instrument.archive_true_branches.keys())
|
||||
false_covered = len(instrument.archive_false_branches.keys())
|
||||
tot_covered = true_covered + false_covered
|
||||
|
||||
cov: float = (tot_covered / total_branches) * 100
|
||||
coverage.append(cov)
|
||||
|
||||
branches = taken_branches_descriptor()
|
||||
print(f"{orig_name}: rep #{i:02d}: Cov: {cov:02.02f}% ({tot_covered}/{total_branches} branches): {branches}")
|
||||
|
||||
if cov > top_coverage:
|
||||
top_result = set(list(instrument.archive_true_branches.values()) +
|
||||
list(instrument.archive_false_branches.values()))
|
||||
top_coverage = cov
|
||||
|
||||
print(coverage)
|
||||
return set(list(instrument.archive_true_branches.values()) +
|
||||
list(instrument.archive_false_branches.values()))
|
||||
|
||||
return top_result
|
||||
|
||||
|
||||
def compute_fitness(individual: list) -> tuple[float]:
|
||||
|
@ -92,7 +119,7 @@ def compute_fitness(individual: list) -> tuple[float]:
|
|||
try:
|
||||
out = instrument.invoke(to_test, x)
|
||||
except AssertionError:
|
||||
print(to_test, x, "=", "[FAILS] fitness = 100.0")
|
||||
# print(to_test, x, "=", "[FAILS] fitness = 100.0")
|
||||
return 100.0,
|
||||
|
||||
fitness = 0.0
|
||||
|
@ -104,24 +131,33 @@ def compute_fitness(individual: list) -> tuple[float]:
|
|||
instrument.archive_true_branches[branch] = x
|
||||
if branch not in instrument.archive_true_branches:
|
||||
fitness += normalize(instrument.distances_true[branch])
|
||||
elif branch in instrument.distances_false:
|
||||
|
||||
for branch in range(range_start, range_end):
|
||||
if branch in instrument.distances_false:
|
||||
if instrument.distances_false[branch] == 0 and branch not in instrument.archive_false_branches:
|
||||
instrument.archive_false_branches[branch] = x
|
||||
if branch not in instrument.archive_false_branches:
|
||||
fitness += normalize(instrument.distances_false[branch])
|
||||
else:
|
||||
fitness += 1.0
|
||||
|
||||
print(to_test, x, "=", out, "fitness =", fitness)
|
||||
# print(to_test, x, "=", out, "fitness =", fitness)
|
||||
return fitness,
|
||||
|
||||
|
||||
def main():
|
||||
instrument.load_benchmark(save_instrumented=False) # instrument all files in benchmark
|
||||
f_name = "railencrypt_instrumented"
|
||||
cases = generate(f_name)
|
||||
def build_suite(f_name: str):
|
||||
instr_name = instrument.BranchTransformer.to_instrumented_name(f_name)
|
||||
cases = generate(instr_name)
|
||||
with open(os.path.join(OUT_DIR, f_name + ".py"), "w") as f:
|
||||
f.write(get_test_class(f_name, cases))
|
||||
f.write(get_test_class(instr_name, cases))
|
||||
|
||||
|
||||
def main():
|
||||
random.seed(0) # init random seed
|
||||
instrument.load_benchmark(save_instrumented=False) # instrument all files in benchmark
|
||||
init_deap()
|
||||
|
||||
for instr_f in tqdm.tqdm(sorted(instrument.functions.keys()), desc="Generating tests"):
|
||||
print("", file=sys.stderr)
|
||||
build_suite(instrument.BranchTransformer.to_original_name(instr_f))
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
|
|
@ -64,7 +64,7 @@ class BranchTransformer(ast.NodeTransformer):
|
|||
b_start = self.branch_num
|
||||
ast_node.name = BranchTransformer.to_instrumented_name(ast_node.name)
|
||||
inner_node = self.generic_visit(ast_node)
|
||||
self.branches_range[ast_node.name] = (b_start, self.branch_num)
|
||||
self.branches_range[ast_node.name] = (b_start + 1, self.branch_num + 1)
|
||||
self.instrumented_name = None
|
||||
return inner_node
|
||||
|
||||
|
|
|
@ -1,308 +0,0 @@
|
|||
from unittest import TestCase
|
||||
|
||||
from benchmark.anagram_check import anagram_check
|
||||
|
||||
|
||||
class Test_anagram_check(TestCase):
|
||||
def test_anagram_check_1(self):
|
||||
assert anagram_check(s1='', s2='3Q%H8e') == False
|
||||
|
||||
def test_anagram_check_2(self):
|
||||
assert anagram_check(s1='V>tI-vq', s2='2UFU.J@W1') == False
|
||||
|
||||
def test_anagram_check_3(self):
|
||||
assert anagram_check(s1='F'', s2='W>5') == False
|
||||
|
||||
def test_anagram_check_4(self):
|
||||
assert anagram_check(s1='(E7/~', s2='k\*'k+w|W') == False
|
||||
|
||||
def test_anagram_check_5(self):
|
||||
assert anagram_check(s1='{.HDvB;K', s2='U]') == False
|
||||
|
||||
def test_anagram_check_6(self):
|
||||
assert anagram_check(s1='o', s2=';_~E,') == False
|
||||
|
||||
def test_anagram_check_7(self):
|
||||
assert anagram_check(s1='P2Q', s2='') == False
|
||||
|
||||
def test_anagram_check_8(self):
|
||||
assert anagram_check(s1='"G', s2=',+IY/') == False
|
||||
|
||||
def test_anagram_check_9(self):
|
||||
assert anagram_check(s1='CD[,W^"{M', s2='DYpw') == False
|
||||
|
||||
def test_anagram_check_10(self):
|
||||
assert anagram_check(s1='1', s2='GKGn') == False
|
||||
|
||||
def test_anagram_check_11(self):
|
||||
assert anagram_check(s1='8B=zA9TN,', s2='~') == False
|
||||
|
||||
def test_anagram_check_12(self):
|
||||
assert anagram_check(s1='p,', s2='') == False
|
||||
|
||||
def test_anagram_check_13(self):
|
||||
assert anagram_check(s1='DU?Y', s2='r') == False
|
||||
|
||||
def test_anagram_check_14(self):
|
||||
assert anagram_check(s1='f', s2='p{C-`Pq6T') == False
|
||||
|
||||
def test_anagram_check_15(self):
|
||||
assert anagram_check(s1='{M?/I', s2='#HxX') == False
|
||||
|
||||
def test_anagram_check_16(self):
|
||||
assert anagram_check(s1='*w', s2='LO-SW') == False
|
||||
|
||||
def test_anagram_check_17(self):
|
||||
assert anagram_check(s1=''', s2='@y') == False
|
||||
|
||||
def test_anagram_check_18(self):
|
||||
assert anagram_check(s1='', s2='}Q') == False
|
||||
|
||||
def test_anagram_check_19(self):
|
||||
assert anagram_check(s1='Aen"W!y', s2='7,T ') == False
|
||||
|
||||
def test_anagram_check_20(self):
|
||||
assert anagram_check(s1='+pv', s2='"lR') == False
|
||||
|
||||
def test_anagram_check_21(self):
|
||||
assert anagram_check(s1='|e#z|', s2='C'spOA,U') == False
|
||||
|
||||
def test_anagram_check_22(self):
|
||||
assert anagram_check(s1='+ov', s2='"lR') == False
|
||||
|
||||
def test_anagram_check_23(self):
|
||||
assert anagram_check(s1='j(c@76t', s2='((') == False
|
||||
|
||||
def test_anagram_check_24(self):
|
||||
assert anagram_check(s1='kjCu #-FR', s2='u') == False
|
||||
|
||||
def test_anagram_check_25(self):
|
||||
assert anagram_check(s1='{5', s2='7m;') == False
|
||||
|
||||
def test_anagram_check_26(self):
|
||||
assert anagram_check(s1='|d+.OH', s2='P') == False
|
||||
|
||||
def test_anagram_check_27(self):
|
||||
assert anagram_check(s1='%|K2&&*', s2='M; X') == False
|
||||
|
||||
def test_anagram_check_28(self):
|
||||
assert anagram_check(s1='', s2='kF7J6Q\=G') == False
|
||||
|
||||
def test_anagram_check_29(self):
|
||||
assert anagram_check(s1='I:2y_pj"', s2='_'G') == False
|
||||
|
||||
def test_anagram_check_30(self):
|
||||
assert anagram_check(s1='Z)R"Qb8', s2=']T.\3(x') == False
|
||||
|
||||
def test_anagram_check_31(self):
|
||||
assert anagram_check(s1='^y1gH)jvp', s2='(Y1vpvfv') == False
|
||||
|
||||
def test_anagram_check_32(self):
|
||||
assert anagram_check(s1='W', s2='1e7') == False
|
||||
|
||||
def test_anagram_check_33(self):
|
||||
assert anagram_check(s1='Nj(}%', s2='m{|c8=a') == False
|
||||
|
||||
def test_anagram_check_34(self):
|
||||
assert anagram_check(s1='B/mqTkzy]', s2='_'TX\U<F!') == False
|
||||
|
||||
def test_anagram_check_35(self):
|
||||
assert anagram_check(s1='t@f.', s2='m`X)D~Lv') == False
|
||||
|
||||
def test_anagram_check_36(self):
|
||||
assert anagram_check(s1='xA9', s2='k>GAoo') == False
|
||||
|
||||
def test_anagram_check_37(self):
|
||||
assert anagram_check(s1='rC.u KD:'', s2='~o') == False
|
||||
|
||||
def test_anagram_check_38(self):
|
||||
assert anagram_check(s1='MBgu', s2='/xN-`Pq6T') == False
|
||||
|
||||
def test_anagram_check_39(self):
|
||||
assert anagram_check(s1='y+>', s2='X)/') == False
|
||||
|
||||
def test_anagram_check_40(self):
|
||||
assert anagram_check(s1='-LtEPi-{?', s2='$j0I+') == False
|
||||
|
||||
def test_anagram_check_41(self):
|
||||
assert anagram_check(s1='[L$(F', s2='(JsXN]/MQ') == False
|
||||
|
||||
def test_anagram_check_42(self):
|
||||
assert anagram_check(s1='X6:', s2='[1N0<') == False
|
||||
|
||||
def test_anagram_check_43(self):
|
||||
assert anagram_check(s1='4x', s2='jp8qx') == False
|
||||
|
||||
def test_anagram_check_44(self):
|
||||
assert anagram_check(s1='"n.Fa+T<Q', s2='') == False
|
||||
|
||||
def test_anagram_check_45(self):
|
||||
assert anagram_check(s1='', s2=' vik@%') == False
|
||||
|
||||
def test_anagram_check_46(self):
|
||||
assert anagram_check(s1='3Qze', s2='S)_') == False
|
||||
|
||||
def test_anagram_check_47(self):
|
||||
assert anagram_check(s1='q%pCIP{f', s2='c=\Q') == False
|
||||
|
||||
def test_anagram_check_48(self):
|
||||
assert anagram_check(s1='=xmur', s2='F') == False
|
||||
|
||||
def test_anagram_check_49(self):
|
||||
assert anagram_check(s1='y2^)$)', s2='') == False
|
||||
|
||||
def test_anagram_check_50(self):
|
||||
assert anagram_check(s1='jlw)', s2='L(') == False
|
||||
|
||||
def test_anagram_check_51(self):
|
||||
assert anagram_check(s1=':ei#f', s2='gv<X<') == False
|
||||
|
||||
def test_anagram_check_52(self):
|
||||
assert anagram_check(s1='c@x[r', s2='.j7Wj') == False
|
||||
|
||||
def test_anagram_check_53(self):
|
||||
assert anagram_check(s1='u>', s2='U') == False
|
||||
|
||||
def test_anagram_check_54(self):
|
||||
assert anagram_check(s1='va6x@Wa>', s2='0! ') == False
|
||||
|
||||
def test_anagram_check_55(self):
|
||||
assert anagram_check(s1='/aRj', s2=')*') == False
|
||||
|
||||
def test_anagram_check_56(self):
|
||||
assert anagram_check(s1='`,-', s2='r{^HTYwqb') == False
|
||||
|
||||
def test_anagram_check_57(self):
|
||||
assert anagram_check(s1='R&l_', s2='Y(u') == False
|
||||
|
||||
def test_anagram_check_58(self):
|
||||
assert anagram_check(s1='W', s2='lWidmzS9') == False
|
||||
|
||||
def test_anagram_check_59(self):
|
||||
assert anagram_check(s1='w[rB;W', s2='k&1kF,1;E') == False
|
||||
|
||||
def test_anagram_check_60(self):
|
||||
assert anagram_check(s1='4"', s2='?9'') == False
|
||||
|
||||
def test_anagram_check_61(self):
|
||||
assert anagram_check(s1='r{>8', s2='K0B~f') == False
|
||||
|
||||
def test_anagram_check_62(self):
|
||||
assert anagram_check(s1='k', s2='[n1#') == False
|
||||
|
||||
def test_anagram_check_63(self):
|
||||
assert anagram_check(s1='2G]}8', s2='FX7.') == False
|
||||
|
||||
def test_anagram_check_64(self):
|
||||
assert anagram_check(s1='', s2='>*%C^hI') == False
|
||||
|
||||
def test_anagram_check_65(self):
|
||||
assert anagram_check(s1='F', s2='IRr.MF') == False
|
||||
|
||||
def test_anagram_check_66(self):
|
||||
assert anagram_check(s1='XV4yF0WTY', s2='sk#') == False
|
||||
|
||||
def test_anagram_check_67(self):
|
||||
assert anagram_check(s1='[<o-`/"', s2='la`[QV+') == False
|
||||
|
||||
def test_anagram_check_68(self):
|
||||
assert anagram_check(s1=';T${', s2='N+_4@') == False
|
||||
|
||||
def test_anagram_check_69(self):
|
||||
assert anagram_check(s1='B/mqTkzy]', s2='_=\Q') == False
|
||||
|
||||
def test_anagram_check_70(self):
|
||||
assert anagram_check(s1='^Y', s2=' m%\fDZ)h') == False
|
||||
|
||||
def test_anagram_check_71(self):
|
||||
assert anagram_check(s1='N9', s2='&|A[we~ic') == False
|
||||
|
||||
def test_anagram_check_72(self):
|
||||
assert anagram_check(s1='gd0l', s2=''>') == False
|
||||
|
||||
def test_anagram_check_73(self):
|
||||
assert anagram_check(s1=' z{'wm04', s2='GDQQe'kK') == False
|
||||
|
||||
def test_anagram_check_74(self):
|
||||
assert anagram_check(s1='BnET', s2='xYmH}Dm') == False
|
||||
|
||||
def test_anagram_check_75(self):
|
||||
assert anagram_check(s1='Z)R"Qb8', s2=']{C,E') == False
|
||||
|
||||
def test_anagram_check_76(self):
|
||||
assert anagram_check(s1='Rn1]', s2=']') == False
|
||||
|
||||
def test_anagram_check_77(self):
|
||||
assert anagram_check(s1='FN', s2='qQ7h'.n') == False
|
||||
|
||||
def test_anagram_check_78(self):
|
||||
assert anagram_check(s1='', s2='7') == False
|
||||
|
||||
def test_anagram_check_79(self):
|
||||
assert anagram_check(s1=''Cc';sX', s2='PA%') == False
|
||||
|
||||
def test_anagram_check_80(self):
|
||||
assert anagram_check(s1='Q#9KVEZ', s2='-/^S0;]/') == False
|
||||
|
||||
def test_anagram_check_81(self):
|
||||
assert anagram_check(s1='', s2=',') == False
|
||||
|
||||
def test_anagram_check_82(self):
|
||||
assert anagram_check(s1='#7(,v{\{J', s2='6S$~h?') == False
|
||||
|
||||
def test_anagram_check_83(self):
|
||||
assert anagram_check(s1='_D,x4b', s2='ALY') == False
|
||||
|
||||
def test_anagram_check_84(self):
|
||||
assert anagram_check(s1='_8^4amA', s2=']f4') == False
|
||||
|
||||
def test_anagram_check_85(self):
|
||||
assert anagram_check(s1='tC@H{=G', s2='u1;)') == False
|
||||
|
||||
def test_anagram_check_86(self):
|
||||
assert anagram_check(s1='j#', s2='q)7(') == False
|
||||
|
||||
def test_anagram_check_87(self):
|
||||
assert anagram_check(s1='zy!ob:llU', s2='Pjf') == False
|
||||
|
||||
def test_anagram_check_88(self):
|
||||
assert anagram_check(s1='L]c1clT?', s2='') == False
|
||||
|
||||
def test_anagram_check_89(self):
|
||||
assert anagram_check(s1='Mg:sk(*', s2=';') == False
|
||||
|
||||
def test_anagram_check_90(self):
|
||||
assert anagram_check(s1='rME', s2='^m') == False
|
||||
|
||||
def test_anagram_check_91(self):
|
||||
assert anagram_check(s1='0e:JCRNB', s2='mh:?3rb') == False
|
||||
|
||||
def test_anagram_check_92(self):
|
||||
assert anagram_check(s1='~.njBt/Pr', s2='%w5PP/@oY') == False
|
||||
|
||||
def test_anagram_check_93(self):
|
||||
assert anagram_check(s1=' z;(6@09', s2='.=') == False
|
||||
|
||||
def test_anagram_check_94(self):
|
||||
assert anagram_check(s1='', s2='}*%C^hI') == False
|
||||
|
||||
def test_anagram_check_95(self):
|
||||
assert anagram_check(s1='+_prg', s2='at<y&46') == False
|
||||
|
||||
def test_anagram_check_96(self):
|
||||
assert anagram_check(s1='1G~GM-', s2='p') == False
|
||||
|
||||
def test_anagram_check_97(self):
|
||||
assert anagram_check(s1=')gwoXqTN,', s2='R49qTWTgv') == False
|
||||
|
||||
def test_anagram_check_98(self):
|
||||
assert anagram_check(s1='/6', s2='&Vp') == False
|
||||
|
||||
def test_anagram_check_99(self):
|
||||
assert anagram_check(s1='', s2='Rh') == False
|
||||
|
||||
def test_anagram_check_100(self):
|
||||
assert anagram_check(s1='WO(MMB"o', s2='>') == False
|
||||
|
||||
def test_anagram_check_101(self):
|
||||
assert anagram_check(s1='', s2='`i:1B') == False
|
|
@ -1,305 +0,0 @@
|
|||
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=-750, b=879) == 2
|
||||
|
||||
def test_cd_count_2(self):
|
||||
assert cd_count(a=-998, b=763) == 1
|
||||
|
||||
def test_cd_count_3(self):
|
||||
assert cd_count(a=-64, b=55) == 1
|
||||
|
||||
def test_cd_count_4(self):
|
||||
assert cd_count(a=-298, b=-790) == 2
|
||||
|
||||
def test_cd_count_5(self):
|
||||
assert cd_count(a=829, b=830) == 1
|
||||
|
||||
def test_cd_count_6(self):
|
||||
assert cd_count(a=-973, b=220) == 1
|
||||
|
||||
def test_cd_count_7(self):
|
||||
assert cd_count(a=872, b=55) == 1
|
||||
|
||||
def test_cd_count_8(self):
|
||||
assert cd_count(a=348, b=-251) == 1
|
||||
|
||||
def test_cd_count_9(self):
|
||||
assert cd_count(a=544, b=-783) == 1
|
||||
|
||||
def test_cd_count_10(self):
|
||||
assert cd_count(a=-685, b=-824) == 1
|
||||
|
||||
def test_cd_count_11(self):
|
||||
assert cd_count(a=875, b=735) == 4
|
||||
|
||||
def test_cd_count_12(self):
|
||||
assert cd_count(a=-546, b=700) == 4
|
||||
|
||||
def test_cd_count_13(self):
|
||||
assert cd_count(a=-482, b=843) == 1
|
||||
|
||||
def test_cd_count_14(self):
|
||||
assert cd_count(a=930, b=-853) == 1
|
||||
|
||||
def test_cd_count_15(self):
|
||||
assert cd_count(a=-1000, b=786) == 2
|
||||
|
||||
def test_cd_count_16(self):
|
||||
assert cd_count(a=701, b=-63) == 1
|
||||
|
||||
def test_cd_count_17(self):
|
||||
assert cd_count(a=-974, b=-9) == 1
|
||||
|
||||
def test_cd_count_18(self):
|
||||
assert cd_count(a=162, b=-399) == 2
|
||||
|
||||
def test_cd_count_19(self):
|
||||
assert cd_count(a=792, b=400) == 4
|
||||
|
||||
def test_cd_count_20(self):
|
||||
assert cd_count(a=656, b=-516) == 3
|
||||
|
||||
def test_cd_count_21(self):
|
||||
assert cd_count(a=-544, b=731) == 2
|
||||
|
||||
def test_cd_count_22(self):
|
||||
assert cd_count(a=512, b=788) == 3
|
||||
|
||||
def test_cd_count_23(self):
|
||||
assert cd_count(a=878, b=-899) == 1
|
||||
|
||||
def test_cd_count_24(self):
|
||||
assert cd_count(a=16, b=792) == 4
|
||||
|
||||
def test_cd_count_25(self):
|
||||
assert cd_count(a=117, b=-9) == 3
|
||||
|
||||
def test_cd_count_26(self):
|
||||
assert cd_count(a=-693, b=770) == 4
|
||||
|
||||
def test_cd_count_27(self):
|
||||
assert cd_count(a=-331, b=-615) == 1
|
||||
|
||||
def test_cd_count_28(self):
|
||||
assert cd_count(a=417, b=-884) == 1
|
||||
|
||||
def test_cd_count_29(self):
|
||||
assert cd_count(a=327, b=-159) == 2
|
||||
|
||||
def test_cd_count_30(self):
|
||||
assert cd_count(a=-618, b=-665) == 1
|
||||
|
||||
def test_cd_count_31(self):
|
||||
assert cd_count(a=409, b=-668) == 1
|
||||
|
||||
def test_cd_count_32(self):
|
||||
assert cd_count(a=-713, b=-192) == 1
|
||||
|
||||
def test_cd_count_33(self):
|
||||
assert cd_count(a=-582, b=-455) == 1
|
||||
|
||||
def test_cd_count_34(self):
|
||||
assert cd_count(a=930, b=-706) == 2
|
||||
|
||||
def test_cd_count_35(self):
|
||||
assert cd_count(a=-668, b=630) == 2
|
||||
|
||||
def test_cd_count_36(self):
|
||||
assert cd_count(a=-505, b=-14) == 1
|
||||
|
||||
def test_cd_count_37(self):
|
||||
assert cd_count(a=819, b=-291) == 2
|
||||
|
||||
def test_cd_count_38(self):
|
||||
assert cd_count(a=-834, b=-422) == 2
|
||||
|
||||
def test_cd_count_39(self):
|
||||
assert cd_count(a=466, b=722) == 2
|
||||
|
||||
def test_cd_count_40(self):
|
||||
assert cd_count(a=125, b=304) == 1
|
||||
|
||||
def test_cd_count_41(self):
|
||||
assert cd_count(a=-602, b=221) == 1
|
||||
|
||||
def test_cd_count_42(self):
|
||||
assert cd_count(a=22, b=259) == 1
|
||||
|
||||
def test_cd_count_43(self):
|
||||
assert cd_count(a=671, b=-530) == 1
|
||||
|
||||
def test_cd_count_44(self):
|
||||
assert cd_count(a=-67, b=557) == 1
|
||||
|
||||
def test_cd_count_45(self):
|
||||
assert cd_count(a=10, b=920) == 4
|
||||
|
||||
def test_cd_count_46(self):
|
||||
assert cd_count(a=459, b=-956) == 1
|
||||
|
||||
def test_cd_count_47(self):
|
||||
assert cd_count(a=845, b=-377) == 2
|
||||
|
||||
def test_cd_count_48(self):
|
||||
assert cd_count(a=-531, b=-413) == 2
|
||||
|
||||
def test_cd_count_49(self):
|
||||
assert cd_count(a=820, b=-58) == 2
|
||||
|
||||
def test_cd_count_50(self):
|
||||
assert cd_count(a=769, b=-410) == 1
|
||||
|
||||
def test_cd_count_51(self):
|
||||
assert cd_count(a=-262, b=394) == 2
|
||||
|
||||
def test_cd_count_52(self):
|
||||
assert cd_count(a=-961, b=-140) == 1
|
||||
|
||||
def test_cd_count_53(self):
|
||||
assert cd_count(a=960, b=-6) == 4
|
||||
|
||||
def test_cd_count_54(self):
|
||||
assert cd_count(a=-808, b=792) == 4
|
||||
|
||||
def test_cd_count_55(self):
|
||||
assert cd_count(a=-28, b=669) == 1
|
||||
|
||||
def test_cd_count_56(self):
|
||||
assert cd_count(a=277, b=228) == 1
|
||||
|
||||
def test_cd_count_57(self):
|
||||
assert cd_count(a=-693, b=-144) == 3
|
||||
|
||||
def test_cd_count_58(self):
|
||||
assert cd_count(a=125, b=994) == 1
|
||||
|
||||
def test_cd_count_59(self):
|
||||
assert cd_count(a=-532, b=-342) == 4
|
||||
|
||||
def test_cd_count_60(self):
|
||||
assert cd_count(a=-162, b=-266) == 2
|
||||
|
||||
def test_cd_count_61(self):
|
||||
assert cd_count(a=-561, b=219) == 2
|
||||
|
||||
def test_cd_count_62(self):
|
||||
assert cd_count(a=-96, b=819) == 2
|
||||
|
||||
def test_cd_count_63(self):
|
||||
assert cd_count(a=380, b=372) == 3
|
||||
|
||||
def test_cd_count_64(self):
|
||||
assert cd_count(a=439, b=-276) == 1
|
||||
|
||||
def test_cd_count_65(self):
|
||||
assert cd_count(a=377, b=-874) == 1
|
||||
|
||||
def test_cd_count_66(self):
|
||||
assert cd_count(a=-532, b=-501) == 1
|
||||
|
||||
def test_cd_count_67(self):
|
||||
assert cd_count(a=329, b=-487) == 1
|
||||
|
||||
def test_cd_count_68(self):
|
||||
assert cd_count(a=203, b=-883) == 1
|
||||
|
||||
def test_cd_count_69(self):
|
||||
assert cd_count(a=757, b=-958) == 1
|
||||
|
||||
def test_cd_count_70(self):
|
||||
assert cd_count(a=-86, b=-929) == 1
|
||||
|
||||
def test_cd_count_71(self):
|
||||
assert cd_count(a=-181, b=-231) == 1
|
||||
|
||||
def test_cd_count_72(self):
|
||||
assert cd_count(a=712, b=-241) == 1
|
||||
|
||||
def test_cd_count_73(self):
|
||||
assert cd_count(a=-583, b=542) == 1
|
||||
|
||||
def test_cd_count_74(self):
|
||||
assert cd_count(a=151, b=-334) == 1
|
||||
|
||||
def test_cd_count_75(self):
|
||||
assert cd_count(a=987, b=879) == 2
|
||||
|
||||
def test_cd_count_76(self):
|
||||
assert cd_count(a=328, b=546) == 2
|
||||
|
||||
def test_cd_count_77(self):
|
||||
assert cd_count(a=347, b=-337) == 1
|
||||
|
||||
def test_cd_count_78(self):
|
||||
assert cd_count(a=10, b=-46) == 2
|
||||
|
||||
def test_cd_count_79(self):
|
||||
assert cd_count(a=-959, b=702) == 1
|
||||
|
||||
def test_cd_count_80(self):
|
||||
assert cd_count(a=96, b=321) == 2
|
||||
|
||||
def test_cd_count_81(self):
|
||||
assert cd_count(a=-1000, b=-865) == 2
|
||||
|
||||
def test_cd_count_82(self):
|
||||
assert cd_count(a=-781, b=-808) == 1
|
||||
|
||||
def test_cd_count_83(self):
|
||||
assert cd_count(a=-593, b=-963) == 1
|
||||
|
||||
def test_cd_count_84(self):
|
||||
assert cd_count(a=376, b=230) == 2
|
||||
|
||||
def test_cd_count_85(self):
|
||||
assert cd_count(a=791, b=587) == 1
|
||||
|
||||
def test_cd_count_86(self):
|
||||
assert cd_count(a=-737, b=327) == 1
|
||||
|
||||
def test_cd_count_87(self):
|
||||
assert cd_count(a=923, b=-475) == 1
|
||||
|
||||
def test_cd_count_88(self):
|
||||
assert cd_count(a=446, b=-611) == 1
|
||||
|
||||
def test_cd_count_89(self):
|
||||
assert cd_count(a=505, b=24) == 1
|
||||
|
||||
def test_cd_count_90(self):
|
||||
assert cd_count(a=466, b=736) == 2
|
||||
|
||||
def test_cd_count_91(self):
|
||||
assert cd_count(a=-555, b=451) == 1
|
||||
|
||||
def test_cd_count_92(self):
|
||||
assert cd_count(a=-512, b=-495) == 1
|
||||
|
||||
def test_cd_count_93(self):
|
||||
assert cd_count(a=-783, b=590) == 1
|
||||
|
||||
def test_cd_count_94(self):
|
||||
assert cd_count(a=327, b=321) == 2
|
||||
|
||||
def test_cd_count_95(self):
|
||||
assert cd_count(a=-67, b=-419) == 1
|
||||
|
||||
def test_cd_count_96(self):
|
||||
assert cd_count(a=-477, b=-58) == 1
|
||||
|
||||
def test_cd_count_97(self):
|
||||
assert cd_count(a=-320, b=-895) == 2
|
||||
|
||||
def test_cd_count_98(self):
|
||||
assert cd_count(a=-211, b=-192) == 1
|
||||
|
||||
def test_cd_count_99(self):
|
||||
assert cd_count(a=-473, b=925) == 1
|
||||
|
||||
def test_cd_count_100(self):
|
||||
assert cd_count(a=898, b=-9) == 1
|
|
@ -1,305 +0,0 @@
|
|||
from unittest import TestCase
|
||||
|
||||
from benchmark.check_armstrong import check_armstrong
|
||||
|
||||
|
||||
class Test_check_armstrong(TestCase):
|
||||
def test_check_armstrong_1(self):
|
||||
assert check_armstrong(n=810) == False
|
||||
|
||||
def test_check_armstrong_2(self):
|
||||
assert check_armstrong(n=416) == False
|
||||
|
||||
def test_check_armstrong_3(self):
|
||||
assert check_armstrong(n=440) == False
|
||||
|
||||
def test_check_armstrong_4(self):
|
||||
assert check_armstrong(n=472) == False
|
||||
|
||||
def test_check_armstrong_5(self):
|
||||
assert check_armstrong(n=913) == False
|
||||
|
||||
def test_check_armstrong_6(self):
|
||||
assert check_armstrong(n=394) == False
|
||||
|
||||
def test_check_armstrong_7(self):
|
||||
assert check_armstrong(n=825) == False
|
||||
|
||||
def test_check_armstrong_8(self):
|
||||
assert check_armstrong(n=150) == False
|
||||
|
||||
def test_check_armstrong_9(self):
|
||||
assert check_armstrong(n=624) == False
|
||||
|
||||
def test_check_armstrong_10(self):
|
||||
assert check_armstrong(n=141) == False
|
||||
|
||||
def test_check_armstrong_11(self):
|
||||
assert check_armstrong(n=619) == False
|
||||
|
||||
def test_check_armstrong_12(self):
|
||||
assert check_armstrong(n=390) == False
|
||||
|
||||
def test_check_armstrong_13(self):
|
||||
assert check_armstrong(n=501) == False
|
||||
|
||||
def test_check_armstrong_14(self):
|
||||
assert check_armstrong(n=849) == False
|
||||
|
||||
def test_check_armstrong_15(self):
|
||||
assert check_armstrong(n=229) == False
|
||||
|
||||
def test_check_armstrong_16(self):
|
||||
assert check_armstrong(n=724) == False
|
||||
|
||||
def test_check_armstrong_17(self):
|
||||
assert check_armstrong(n=307) == False
|
||||
|
||||
def test_check_armstrong_18(self):
|
||||
assert check_armstrong(n=885) == False
|
||||
|
||||
def test_check_armstrong_19(self):
|
||||
assert check_armstrong(n=758) == False
|
||||
|
||||
def test_check_armstrong_20(self):
|
||||
assert check_armstrong(n=469) == False
|
||||
|
||||
def test_check_armstrong_21(self):
|
||||
assert check_armstrong(n=431) == False
|
||||
|
||||
def test_check_armstrong_22(self):
|
||||
assert check_armstrong(n=974) == False
|
||||
|
||||
def test_check_armstrong_23(self):
|
||||
assert check_armstrong(n=305) == False
|
||||
|
||||
def test_check_armstrong_24(self):
|
||||
assert check_armstrong(n=222) == False
|
||||
|
||||
def test_check_armstrong_25(self):
|
||||
assert check_armstrong(n=873) == False
|
||||
|
||||
def test_check_armstrong_26(self):
|
||||
assert check_armstrong(n=197) == False
|
||||
|
||||
def test_check_armstrong_27(self):
|
||||
assert check_armstrong(n=361) == False
|
||||
|
||||
def test_check_armstrong_28(self):
|
||||
assert check_armstrong(n=541) == False
|
||||
|
||||
def test_check_armstrong_29(self):
|
||||
assert check_armstrong(n=911) == False
|
||||
|
||||
def test_check_armstrong_30(self):
|
||||
assert check_armstrong(n=526) == False
|
||||
|
||||
def test_check_armstrong_31(self):
|
||||
assert check_armstrong(n=874) == False
|
||||
|
||||
def test_check_armstrong_32(self):
|
||||
assert check_armstrong(n=452) == False
|
||||
|
||||
def test_check_armstrong_33(self):
|
||||
assert check_armstrong(n=817) == False
|
||||
|
||||
def test_check_armstrong_34(self):
|
||||
assert check_armstrong(n=75) == False
|
||||
|
||||
def test_check_armstrong_35(self):
|
||||
assert check_armstrong(n=834) == False
|
||||
|
||||
def test_check_armstrong_36(self):
|
||||
assert check_armstrong(n=466) == False
|
||||
|
||||
def test_check_armstrong_37(self):
|
||||
assert check_armstrong(n=683) == False
|
||||
|
||||
def test_check_armstrong_38(self):
|
||||
assert check_armstrong(n=569) == False
|
||||
|
||||
def test_check_armstrong_39(self):
|
||||
assert check_armstrong(n=617) == False
|
||||
|
||||
def test_check_armstrong_40(self):
|
||||
assert check_armstrong(n=446) == False
|
||||
|
||||
def test_check_armstrong_41(self):
|
||||
assert check_armstrong(n=806) == False
|
||||
|
||||
def test_check_armstrong_42(self):
|
||||
assert check_armstrong(n=44) == False
|
||||
|
||||
def test_check_armstrong_43(self):
|
||||
assert check_armstrong(n=623) == False
|
||||
|
||||
def test_check_armstrong_44(self):
|
||||
assert check_armstrong(n=953) == False
|
||||
|
||||
def test_check_armstrong_45(self):
|
||||
assert check_armstrong(n=240) == False
|
||||
|
||||
def test_check_armstrong_46(self):
|
||||
assert check_armstrong(n=698) == False
|
||||
|
||||
def test_check_armstrong_47(self):
|
||||
assert check_armstrong(n=83) == False
|
||||
|
||||
def test_check_armstrong_48(self):
|
||||
assert check_armstrong(n=697) == False
|
||||
|
||||
def test_check_armstrong_49(self):
|
||||
assert check_armstrong(n=225) == False
|
||||
|
||||
def test_check_armstrong_50(self):
|
||||
assert check_armstrong(n=286) == False
|
||||
|
||||
def test_check_armstrong_51(self):
|
||||
assert check_armstrong(n=384) == False
|
||||
|
||||
def test_check_armstrong_52(self):
|
||||
assert check_armstrong(n=235) == False
|
||||
|
||||
def test_check_armstrong_53(self):
|
||||
assert check_armstrong(n=223) == False
|
||||
|
||||
def test_check_armstrong_54(self):
|
||||
assert check_armstrong(n=554) == False
|
||||
|
||||
def test_check_armstrong_55(self):
|
||||
assert check_armstrong(n=194) == False
|
||||
|
||||
def test_check_armstrong_56(self):
|
||||
assert check_armstrong(n=606) == False
|
||||
|
||||
def test_check_armstrong_57(self):
|
||||
assert check_armstrong(n=607) == False
|
||||
|
||||
def test_check_armstrong_58(self):
|
||||
assert check_armstrong(n=167) == False
|
||||
|
||||
def test_check_armstrong_59(self):
|
||||
assert check_armstrong(n=684) == False
|
||||
|
||||
def test_check_armstrong_60(self):
|
||||
assert check_armstrong(n=497) == False
|
||||
|
||||
def test_check_armstrong_61(self):
|
||||
assert check_armstrong(n=938) == False
|
||||
|
||||
def test_check_armstrong_62(self):
|
||||
assert check_armstrong(n=771) == False
|
||||
|
||||
def test_check_armstrong_63(self):
|
||||
assert check_armstrong(n=278) == False
|
||||
|
||||
def test_check_armstrong_64(self):
|
||||
assert check_armstrong(n=489) == False
|
||||
|
||||
def test_check_armstrong_65(self):
|
||||
assert check_armstrong(n=112) == False
|
||||
|
||||
def test_check_armstrong_66(self):
|
||||
assert check_armstrong(n=822) == False
|
||||
|
||||
def test_check_armstrong_67(self):
|
||||
assert check_armstrong(n=299) == False
|
||||
|
||||
def test_check_armstrong_68(self):
|
||||
assert check_armstrong(n=251) == False
|
||||
|
||||
def test_check_armstrong_69(self):
|
||||
assert check_armstrong(n=143) == False
|
||||
|
||||
def test_check_armstrong_70(self):
|
||||
assert check_armstrong(n=339) == False
|
||||
|
||||
def test_check_armstrong_71(self):
|
||||
assert check_armstrong(n=192) == False
|
||||
|
||||
def test_check_armstrong_72(self):
|
||||
assert check_armstrong(n=877) == False
|
||||
|
||||
def test_check_armstrong_73(self):
|
||||
assert check_armstrong(n=830) == False
|
||||
|
||||
def test_check_armstrong_74(self):
|
||||
assert check_armstrong(n=515) == False
|
||||
|
||||
def test_check_armstrong_75(self):
|
||||
assert check_armstrong(n=161) == False
|
||||
|
||||
def test_check_armstrong_76(self):
|
||||
assert check_armstrong(n=375) == False
|
||||
|
||||
def test_check_armstrong_77(self):
|
||||
assert check_armstrong(n=740) == False
|
||||
|
||||
def test_check_armstrong_78(self):
|
||||
assert check_armstrong(n=491) == False
|
||||
|
||||
def test_check_armstrong_79(self):
|
||||
assert check_armstrong(n=89) == False
|
||||
|
||||
def test_check_armstrong_80(self):
|
||||
assert check_armstrong(n=321) == False
|
||||
|
||||
def test_check_armstrong_81(self):
|
||||
assert check_armstrong(n=418) == False
|
||||
|
||||
def test_check_armstrong_82(self):
|
||||
assert check_armstrong(n=840) == False
|
||||
|
||||
def test_check_armstrong_83(self):
|
||||
assert check_armstrong(n=746) == False
|
||||
|
||||
def test_check_armstrong_84(self):
|
||||
assert check_armstrong(n=875) == False
|
||||
|
||||
def test_check_armstrong_85(self):
|
||||
assert check_armstrong(n=290) == False
|
||||
|
||||
def test_check_armstrong_86(self):
|
||||
assert check_armstrong(n=779) == False
|
||||
|
||||
def test_check_armstrong_87(self):
|
||||
assert check_armstrong(n=33) == False
|
||||
|
||||
def test_check_armstrong_88(self):
|
||||
assert check_armstrong(n=801) == False
|
||||
|
||||
def test_check_armstrong_89(self):
|
||||
assert check_armstrong(n=236) == False
|
||||
|
||||
def test_check_armstrong_90(self):
|
||||
assert check_armstrong(n=275) == False
|
||||
|
||||
def test_check_armstrong_91(self):
|
||||
assert check_armstrong(n=914) == False
|
||||
|
||||
def test_check_armstrong_92(self):
|
||||
assert check_armstrong(n=992) == False
|
||||
|
||||
def test_check_armstrong_93(self):
|
||||
assert check_armstrong(n=295) == False
|
||||
|
||||
def test_check_armstrong_94(self):
|
||||
assert check_armstrong(n=380) == False
|
||||
|
||||
def test_check_armstrong_95(self):
|
||||
assert check_armstrong(n=695) == False
|
||||
|
||||
def test_check_armstrong_96(self):
|
||||
assert check_armstrong(n=630) == False
|
||||
|
||||
def test_check_armstrong_97(self):
|
||||
assert check_armstrong(n=411) == False
|
||||
|
||||
def test_check_armstrong_98(self):
|
||||
assert check_armstrong(n=443) == False
|
||||
|
||||
def test_check_armstrong_99(self):
|
||||
assert check_armstrong(n=317) == False
|
||||
|
||||
def test_check_armstrong_100(self):
|
||||
assert check_armstrong(n=130) == False
|
|
@ -1,305 +0,0 @@
|
|||
from unittest import TestCase
|
||||
|
||||
from benchmark.caesar_cipher import decrypt
|
||||
|
||||
|
||||
class Test_decrypt(TestCase):
|
||||
def test_decrypt_1(self):
|
||||
assert decrypt(strng='&'m`mq', key=82) == 'ÔÕzmz~'
|
||||
|
||||
def test_decrypt_2(self):
|
||||
assert decrypt(strng='}Bx&KQ[i{', key=51) == 'JnEów}(6H'
|
||||
|
||||
def test_decrypt_3(self):
|
||||
assert decrypt(strng='g_IZE@C%', key=67) == '${evaý_â'
|
||||
|
||||
def test_decrypt_4(self):
|
||||
assert decrypt(strng='e?&L$', key=67) == '"üãhá'
|
||||
|
||||
def test_decrypt_5(self):
|
||||
assert decrypt(strng='<Q7lO[Hu', key=89) == 'ãøÞröaï{'
|
||||
|
||||
def test_decrypt_6(self):
|
||||
assert decrypt(strng='h`@nd', key=49) == '7/n=3'
|
||||
|
||||
def test_decrypt_7(self):
|
||||
assert decrypt(strng=':]K*', key=82) == 'èjùØ'
|
||||
|
||||
def test_decrypt_8(self):
|
||||
assert decrypt(strng='#$k', key=67) == 'àá('
|
||||
|
||||
def test_decrypt_9(self):
|
||||
assert decrypt(strng='yJmc', key=8) == 'qBe['
|
||||
|
||||
def test_decrypt_10(self):
|
||||
assert decrypt(strng='x]C!6jsK_', key=56) == '@%jéþ2;r''
|
||||
|
||||
def test_decrypt_11(self):
|
||||
assert decrypt(strng='VG', key=58) == '{l'
|
||||
|
||||
def test_decrypt_12(self):
|
||||
assert decrypt(strng='g_=f.B1U', key=51) == '4,i3ûnþ"'
|
||||
|
||||
def test_decrypt_13(self):
|
||||
assert decrypt(strng='!3V0a', key=65) == 'àòtï '
|
||||
|
||||
def test_decrypt_14(self):
|
||||
assert decrypt(strng=''Td=3', key=51) == 'ô!1i_'
|
||||
|
||||
def test_decrypt_15(self):
|
||||
assert decrypt(strng='<~7', key=89) == 'ã%Þ'
|
||||
|
||||
def test_decrypt_16(self):
|
||||
assert decrypt(strng='nO^F', key=32) == 'N/>&'
|
||||
|
||||
def test_decrypt_17(self):
|
||||
assert decrypt(strng='l;6gVf)', key=67) == ')øó$r#æ'
|
||||
|
||||
def test_decrypt_18(self):
|
||||
assert decrypt(strng='^$*=', key=32) == '>ci|'
|
||||
|
||||
def test_decrypt_19(self):
|
||||
assert decrypt(strng='#$', key=67) == 'àá'
|
||||
|
||||
def test_decrypt_20(self):
|
||||
assert decrypt(strng='QS7#[5h#', key=14) == 'CE)tM'Zt'
|
||||
|
||||
def test_decrypt_21(self):
|
||||
assert decrypt(strng='}#F/', key=51) == 'Jðrü'
|
||||
|
||||
def test_decrypt_22(self):
|
||||
assert decrypt(strng='P', key=49) == '~'
|
||||
|
||||
def test_decrypt_23(self):
|
||||
assert decrypt(strng='X00j)Y[', key=38) == '2iiDb35'
|
||||
|
||||
def test_decrypt_24(self):
|
||||
assert decrypt(strng='gZ13', key=56) == '/"ùû'
|
||||
|
||||
def test_decrypt_25(self):
|
||||
assert decrypt(strng='`(xr_Ts', key=89) == 'fÏ~xeûy'
|
||||
|
||||
def test_decrypt_26(self):
|
||||
assert decrypt(strng='|', key=67) == '9'
|
||||
|
||||
def test_decrypt_27(self):
|
||||
assert decrypt(strng='sQ!wW', key=37) == 'N,üR2'
|
||||
|
||||
def test_decrypt_28(self):
|
||||
assert decrypt(strng='j}pSGPO]?', key=90) == 'o#uùíöõbå'
|
||||
|
||||
def test_decrypt_29(self):
|
||||
assert decrypt(strng='Z~', key=88) == 'a&'
|
||||
|
||||
def test_decrypt_30(self):
|
||||
assert decrypt(strng='FW?8hL7', key=3) == 'CT<5eI4'
|
||||
|
||||
def test_decrypt_31(self):
|
||||
assert decrypt(strng='rNWF[', key=67) == '/jsbw'
|
||||
|
||||
def test_decrypt_32(self):
|
||||
assert decrypt(strng='WP{@$5~cy', key=39) == '0)TxýmW<R'
|
||||
|
||||
def test_decrypt_33(self):
|
||||
assert decrypt(strng='CkYk?K0N', key=14) == '5]K]1="@'
|
||||
|
||||
def test_decrypt_34(self):
|
||||
assert decrypt(strng='#MLml;', key=55) == 'ìut65c'
|
||||
|
||||
def test_decrypt_35(self):
|
||||
assert decrypt(strng='wVjy`', key=51) == 'D#7F-'
|
||||
|
||||
def test_decrypt_36(self):
|
||||
assert decrypt(strng='4$&=(', key=21) == '~np(r'
|
||||
|
||||
def test_decrypt_37(self):
|
||||
assert decrypt(strng='FF?8hL@', key=3) == 'CC<5eI='
|
||||
|
||||
def test_decrypt_38(self):
|
||||
assert decrypt(strng='g_=f.t[', key=51) == '4,i3ûA('
|
||||
|
||||
def test_decrypt_39(self):
|
||||
assert decrypt(strng='CC]', key=59) == 'gg"'
|
||||
|
||||
def test_decrypt_40(self):
|
||||
assert decrypt(strng='', key=14) == ''
|
||||
|
||||
def test_decrypt_41(self):
|
||||
assert decrypt(strng='x]q`4;~', key=56) == '@%9(übF'
|
||||
|
||||
def test_decrypt_42(self):
|
||||
assert decrypt(strng='}#s"Cv}\', key=51) == 'Jð@ïoCJ)'
|
||||
|
||||
def test_decrypt_43(self):
|
||||
assert decrypt(strng='n4:j', key=62) == '0öü,'
|
||||
|
||||
def test_decrypt_44(self):
|
||||
assert decrypt(strng='V:<R6', key=58) == '{_awü'
|
||||
|
||||
def test_decrypt_45(self):
|
||||
assert decrypt(strng='<- s', key=92) == 'àÑÄv'
|
||||
|
||||
def test_decrypt_46(self):
|
||||
assert decrypt(strng='X2Jz>2)L', key=49) == ''`xIl`øz'
|
||||
|
||||
def test_decrypt_47(self):
|
||||
assert decrypt(strng='SM'S"Hr', key=64) == 'rlçrâg2'
|
||||
|
||||
def test_decrypt_48(self):
|
||||
assert decrypt(strng='!o&+u', key=3) == '}l#(r'
|
||||
|
||||
def test_decrypt_49(self):
|
||||
assert decrypt(strng='E]q`4;"', key=56) == 'l%9(übê'
|
||||
|
||||
def test_decrypt_50(self):
|
||||
assert decrypt(strng='dRVR', key=20) == 'P>B>'
|
||||
|
||||
def test_decrypt_51(self):
|
||||
assert decrypt(strng='', key=57) == ''
|
||||
|
||||
def test_decrypt_52(self):
|
||||
assert decrypt(strng='X~d|~"%(', key=38) == '2X>VXüÿa'
|
||||
|
||||
def test_decrypt_53(self):
|
||||
assert decrypt(strng=' z', key=59) == 'å?'
|
||||
|
||||
def test_decrypt_54(self):
|
||||
assert decrypt(strng=' yNxW', key=59) == 'å>r={'
|
||||
|
||||
def test_decrypt_55(self):
|
||||
assert decrypt(strng='CkV', key=14) == '5]H'
|
||||
|
||||
def test_decrypt_56(self):
|
||||
assert decrypt(strng='wVjL~[%4', key=51) == 'D#7xK(ò`'
|
||||
|
||||
def test_decrypt_57(self):
|
||||
assert decrypt(strng=' zHK', key=59) == 'å?lo'
|
||||
|
||||
def test_decrypt_58(self):
|
||||
assert decrypt(strng='mq', key=71) == '&*'
|
||||
|
||||
def test_decrypt_59(self):
|
||||
assert decrypt(strng='Kd*', key=62) == 'l&ì'
|
||||
|
||||
def test_decrypt_60(self):
|
||||
assert decrypt(strng='g_=f.B1U', key=67) == '${ú#ëÿîq'
|
||||
|
||||
def test_decrypt_61(self):
|
||||
assert decrypt(strng='}#F', key=51) == 'Jðr'
|
||||
|
||||
def test_decrypt_62(self):
|
||||
assert decrypt(strng='&'m`m#u<', key=82) == 'ÔÕzmzÑ#ê'
|
||||
|
||||
def test_decrypt_63(self):
|
||||
assert decrypt(strng='}#4', key=51) == 'Jð`'
|
||||
|
||||
def test_decrypt_64(self):
|
||||
assert decrypt(strng='QOZQ.g+-', key=64) == 'pnypî'ëí'
|
||||
|
||||
def test_decrypt_65(self):
|
||||
assert decrypt(strng='', key=3) == ''
|
||||
|
||||
def test_decrypt_66(self):
|
||||
assert decrypt(strng='yJmc', key=56) == 'Aq5+'
|
||||
|
||||
def test_decrypt_67(self):
|
||||
assert decrypt(strng=' yNxW kXb', key=59) == 'å>r={å0|''
|
||||
|
||||
def test_decrypt_68(self):
|
||||
assert decrypt(strng='6HpHP', key=38) == 'o"J"*'
|
||||
|
||||
def test_decrypt_69(self):
|
||||
assert decrypt(strng='IH!=Y`l*', key=70) == 'baÛ÷ry&ä'
|
||||
|
||||
def test_decrypt_70(self):
|
||||
assert decrypt(strng='MKJZ+oW', key=32) == '-+*:jO7'
|
||||
|
||||
def test_decrypt_71(self):
|
||||
assert decrypt(strng='X00j)w', key=38) == '2iiDbQ'
|
||||
|
||||
def test_decrypt_72(self):
|
||||
assert decrypt(strng='Ckm{', key=14) == '5]_m'
|
||||
|
||||
def test_decrypt_73(self):
|
||||
assert decrypt(strng='l;6gVf)~b', key=67) == ')øó$r#æ;~'
|
||||
|
||||
def test_decrypt_74(self):
|
||||
assert decrypt(strng='L-', key=8) == 'D%'
|
||||
|
||||
def test_decrypt_75(self):
|
||||
assert decrypt(strng='4$&=0', key=49) == 'bóõkÿ'
|
||||
|
||||
def test_decrypt_76(self):
|
||||
assert decrypt(strng='zjX4v(P', key=49) == 'I9'bE÷~'
|
||||
|
||||
def test_decrypt_77(self):
|
||||
assert decrypt(strng='', key=88) == ''
|
||||
|
||||
def test_decrypt_78(self):
|
||||
assert decrypt(strng='x]q`4;"', key=67) == '5y.|ñøß'
|
||||
|
||||
def test_decrypt_79(self):
|
||||
assert decrypt(strng='Wfi|*', key=92) == 'ûil Î'
|
||||
|
||||
def test_decrypt_80(self):
|
||||
assert decrypt(strng='Jr)%k/bt', key=51) == 'v?öò8ü/A'
|
||||
|
||||
def test_decrypt_81(self):
|
||||
assert decrypt(strng='tYyJ/34', key=51) == 'A&Fvü_`'
|
||||
|
||||
def test_decrypt_82(self):
|
||||
assert decrypt(strng='/-a>DJ!', key=30) == 'pnC &,b'
|
||||
|
||||
def test_decrypt_83(self):
|
||||
assert decrypt(strng='aV)WLl}CF', key=70) == 'zoãpe&7ý_'
|
||||
|
||||
def test_decrypt_84(self):
|
||||
assert decrypt(strng='Eo', key=8) == '=g'
|
||||
|
||||
def test_decrypt_85(self):
|
||||
assert decrypt(strng='l;BCV', key=67) == ')øÿ_r'
|
||||
|
||||
def test_decrypt_86(self):
|
||||
assert decrypt(strng='d(e!3sY', key=49) == '3÷4ðaB('
|
||||
|
||||
def test_decrypt_87(self):
|
||||
assert decrypt(strng='rRA&', key=67) == '/nþã'
|
||||
|
||||
def test_decrypt_88(self):
|
||||
assert decrypt(strng='3m', key=8) == '+e'
|
||||
|
||||
def test_decrypt_89(self):
|
||||
assert decrypt(strng='Kd|;(j', key=62) == 'l&>ýê,'
|
||||
|
||||
def test_decrypt_90(self):
|
||||
assert decrypt(strng='ne[', key=94) == 'ofý'
|
||||
|
||||
def test_decrypt_91(self):
|
||||
assert decrypt(strng='j^}sc?P\R', key=16) == 'ZNmcS/@LB'
|
||||
|
||||
def test_decrypt_92(self):
|
||||
assert decrypt(strng='DLM4i{:t', key=71) == 'ýdeí"4ó-'
|
||||
|
||||
def test_decrypt_93(self):
|
||||
assert decrypt(strng='^', key=38) == '8'
|
||||
|
||||
def test_decrypt_94(self):
|
||||
assert decrypt(strng='^', key=49) == '-'
|
||||
|
||||
def test_decrypt_95(self):
|
||||
assert decrypt(strng='', key=1) == ''
|
||||
|
||||
def test_decrypt_96(self):
|
||||
assert decrypt(strng='!P'm4', key=5) == '{K"h/'
|
||||
|
||||
def test_decrypt_97(self):
|
||||
assert decrypt(strng='H', key=51) == 't'
|
||||
|
||||
def test_decrypt_98(self):
|
||||
assert decrypt(strng='', key=56) == ''
|
||||
|
||||
def test_decrypt_99(self):
|
||||
assert decrypt(strng='`;|_', key=21) == 'K&gJ'
|
||||
|
||||
def test_decrypt_100(self):
|
||||
assert decrypt(strng='~a=^=Kk]W', key=49) == 'M0k-ky:,&'
|
|
@ -1,305 +0,0 @@
|
|||
from unittest import TestCase
|
||||
|
||||
from benchmark.caesar_cipher import encrypt
|
||||
|
||||
|
||||
class Test_encrypt(TestCase):
|
||||
def test_encrypt_1(self):
|
||||
assert encrypt(strng='.1zZ`MJ$', key=55) == 'ehR28%"['
|
||||
|
||||
def test_encrypt_2(self):
|
||||
assert encrypt(strng='Fs;g{w', key=4) == 'Jw?k {'
|
||||
|
||||
def test_encrypt_3(self):
|
||||
assert encrypt(strng='X"N{', key=49) == '*S M'
|
||||
|
||||
def test_encrypt_4(self):
|
||||
assert encrypt(strng=',u', key=45) == 'YC'
|
||||
|
||||
def test_encrypt_5(self):
|
||||
assert encrypt(strng='XR&lKm.', key=64) == '93fM,Nn'
|
||||
|
||||
def test_encrypt_6(self):
|
||||
assert encrypt(strng='Ocj=e', key=49) == '!5<n7'
|
||||
|
||||
def test_encrypt_7(self):
|
||||
assert encrypt(strng=':]K*', key=82) == '-P>|'
|
||||
|
||||
def test_encrypt_8(self):
|
||||
assert encrypt(strng='x]q`4;"', key=50) == 'K0D3fmT'
|
||||
|
||||
def test_encrypt_9(self):
|
||||
assert encrypt(strng='/Pd6-hfD', key=36) == 'St)ZQ-+h'
|
||||
|
||||
def test_encrypt_10(self):
|
||||
assert encrypt(strng='FKglwI<', key=61) == '$)EJU'y'
|
||||
|
||||
def test_encrypt_11(self):
|
||||
assert encrypt(strng='nO^F', key=32) == '/o~f'
|
||||
|
||||
def test_encrypt_12(self):
|
||||
assert encrypt(strng='!g&KCiEEC', key=5) == '&l+PHnJJH'
|
||||
|
||||
def test_encrypt_13(self):
|
||||
assert encrypt(strng='!GDeE"', key=5) == '&LIjJ''
|
||||
|
||||
def test_encrypt_14(self):
|
||||
assert encrypt(strng='xjE? 0]fY', key=50) == 'K=wqRb09,'
|
||||
|
||||
def test_encrypt_15(self):
|
||||
assert encrypt(strng='', key=38) == ''
|
||||
|
||||
def test_encrypt_16(self):
|
||||
assert encrypt(strng='lE+W~', key=67) == 'P)n;b'
|
||||
|
||||
def test_encrypt_17(self):
|
||||
assert encrypt(strng='FbYUT**E', key=52) == 'z7.*)^^y'
|
||||
|
||||
def test_encrypt_18(self):
|
||||
assert encrypt(strng='!RbeE"', key=5) == '&WgjJ''
|
||||
|
||||
def test_encrypt_19(self):
|
||||
assert encrypt(strng='Cl6$awL', key=28) == '_)R@}4h'
|
||||
|
||||
def test_encrypt_20(self):
|
||||
assert encrypt(strng='zHvsl:"y', key=70) == 'a/]ZS!h`'
|
||||
|
||||
def test_encrypt_21(self):
|
||||
assert encrypt(strng='b]', key=5) == 'gb'
|
||||
|
||||
def test_encrypt_22(self):
|
||||
assert encrypt(strng='&', key=62) == 'd'
|
||||
|
||||
def test_encrypt_23(self):
|
||||
assert encrypt(strng='Wr{@$5~cy', key=39) == '~:CgK\F+A'
|
||||
|
||||
def test_encrypt_24(self):
|
||||
assert encrypt(strng='Cl6b[', key=28) == '_)R~w'
|
||||
|
||||
def test_encrypt_25(self):
|
||||
assert encrypt(strng='DQ^f"\'', key=5) == 'IVck'a,'
|
||||
|
||||
def test_encrypt_26(self):
|
||||
assert encrypt(strng='LD'', key=8) == 'TL/'
|
||||
|
||||
def test_encrypt_27(self):
|
||||
assert encrypt(strng='nBx&KQ[i{', key=21) == '$W.;`fp~1'
|
||||
|
||||
def test_encrypt_28(self):
|
||||
assert encrypt(strng='XL~X', key=70) == '?3e?'
|
||||
|
||||
def test_encrypt_29(self):
|
||||
assert encrypt(strng='bspHP', key=5) == 'gxuMU'
|
||||
|
||||
def test_encrypt_30(self):
|
||||
assert encrypt(strng='WALy^^!_+', key=83) == 'K5@mRRtS~'
|
||||
|
||||
def test_encrypt_31(self):
|
||||
assert encrypt(strng='^VD,k;h', key=32) == '~vdL,[)'
|
||||
|
||||
def test_encrypt_32(self):
|
||||
assert encrypt(strng='2A/L~[%4', key=57) == 'kzh&X5^m'
|
||||
|
||||
def test_encrypt_33(self):
|
||||
assert encrypt(strng='{3hA', key=51) == 'Of<t'
|
||||
|
||||
def test_encrypt_34(self):
|
||||
assert encrypt(strng='nD '5f', key=6) == 'tJ&-;l'
|
||||
|
||||
def test_encrypt_35(self):
|
||||
assert encrypt(strng='(p;'k', key=89) == '"j5!e'
|
||||
|
||||
def test_encrypt_36(self):
|
||||
assert encrypt(strng='XLLT+$^HQ', key=70) == '?33;qjE/8'
|
||||
|
||||
def test_encrypt_37(self):
|
||||
assert encrypt(strng='=~7+4', key=89) == '7x1%.'
|
||||
|
||||
def test_encrypt_38(self):
|
||||
assert encrypt(strng='XL~Xv ~', key=14) == 'fZ-f%.-'
|
||||
|
||||
def test_encrypt_39(self):
|
||||
assert encrypt(strng=']Q^f"S2', key=3) == '`Tai%V5'
|
||||
|
||||
def test_encrypt_40(self):
|
||||
assert encrypt(strng='if<yM"\_', key=49) == ';8mK~S.1'
|
||||
|
||||
def test_encrypt_41(self):
|
||||
assert encrypt(strng='_x$4n', key=49) == '1JUe@'
|
||||
|
||||
def test_encrypt_42(self):
|
||||
assert encrypt(strng='n4mc', key=62) == 'MrLB'
|
||||
|
||||
def test_encrypt_43(self):
|
||||
assert encrypt(strng='x', key=53) == 'N'
|
||||
|
||||
def test_encrypt_44(self):
|
||||
assert encrypt(strng='=.%2Tk', key=89) == '7(~,Ne'
|
||||
|
||||
def test_encrypt_45(self):
|
||||
assert encrypt(strng='', key=14) == ''
|
||||
|
||||
def test_encrypt_46(self):
|
||||
assert encrypt(strng='>y>', key=6) == 'D D'
|
||||
|
||||
def test_encrypt_47(self):
|
||||
assert encrypt(strng='EoqE!F', key=8) == 'MwyM)N'
|
||||
|
||||
def test_encrypt_48(self):
|
||||
assert encrypt(strng='X2Jz>2)L', key=38) == '~XpAdXOr'
|
||||
|
||||
def test_encrypt_49(self):
|
||||
assert encrypt(strng='bsj', key=5) == 'gxo'
|
||||
|
||||
def test_encrypt_50(self):
|
||||
assert encrypt(strng='FKglwI', key=61) == '$)EJU''
|
||||
|
||||
def test_encrypt_51(self):
|
||||
assert encrypt(strng='', key=57) == ''
|
||||
|
||||
def test_encrypt_52(self):
|
||||
assert encrypt(strng='LD,C', key=8) == 'TL4K'
|
||||
|
||||
def test_encrypt_53(self):
|
||||
assert encrypt(strng='L-Xf$', key=8) == 'T5`n,'
|
||||
|
||||
def test_encrypt_54(self):
|
||||
assert encrypt(strng='', key=77) == ''
|
||||
|
||||
def test_encrypt_55(self):
|
||||
assert encrypt(strng='Ckmi', key=14) == 'Qy{w'
|
||||
|
||||
def test_encrypt_56(self):
|
||||
assert encrypt(strng='L-( W{ue', key=8) == 'T50(_$}m'
|
||||
|
||||
def test_encrypt_57(self):
|
||||
assert encrypt(strng='/Pd6-Q[i{', key=36) == 'St)ZQu .@'
|
||||
|
||||
def test_encrypt_58(self):
|
||||
assert encrypt(strng='XLRT+$^Yg', key=70) == '?39;qjE@N'
|
||||
|
||||
def test_encrypt_59(self):
|
||||
assert encrypt(strng='^HG+B', key=51) == '2{z^u'
|
||||
|
||||
def test_encrypt_60(self):
|
||||
assert encrypt(strng='1a'7Je', key=30) == 'O EUh$'
|
||||
|
||||
def test_encrypt_61(self):
|
||||
assert encrypt(strng='vJaiN.cB', key=20) == '+^u}bBwV'
|
||||
|
||||
def test_encrypt_62(self):
|
||||
assert encrypt(strng='ns(ob!Pb', key=61) == 'LQeM@^.@'
|
||||
|
||||
def test_encrypt_63(self):
|
||||
assert encrypt(strng='nO15X', key=32) == '/oQUx'
|
||||
|
||||
def test_encrypt_64(self):
|
||||
assert encrypt(strng='>9', key=45) == 'kf'
|
||||
|
||||
def test_encrypt_65(self):
|
||||
assert encrypt(strng=']Q^f"o28Q', key=3) == '`Tai%r5;T'
|
||||
|
||||
def test_encrypt_66(self):
|
||||
assert encrypt(strng='5H>Eac', key=3) == '8KAHdf'
|
||||
|
||||
def test_encrypt_67(self):
|
||||
assert encrypt(strng='L-X', key=8) == 'T5`'
|
||||
|
||||
def test_encrypt_68(self):
|
||||
assert encrypt(strng='\CIXRTgh', key=38) == '#io~xz./'
|
||||
|
||||
def test_encrypt_69(self):
|
||||
assert encrypt(strng='kK$q)[!E5', key=72) == 'T4lZqDi.}'
|
||||
|
||||
def test_encrypt_70(self):
|
||||
assert encrypt(strng='G c#@\zf$', key=49) == 'xQ5Tq.L8U'
|
||||
|
||||
def test_encrypt_71(self):
|
||||
assert encrypt(strng='/Pd6-hfD', key=70) == 'u7K|sOM+'
|
||||
|
||||
def test_encrypt_72(self):
|
||||
assert encrypt(strng='L-', key=8) == 'T5'
|
||||
|
||||
def test_encrypt_73(self):
|
||||
assert encrypt(strng='x]q`)m2"U', key=50) == 'K0D3[@dT('
|
||||
|
||||
def test_encrypt_74(self):
|
||||
assert encrypt(strng='ou*i"', key=8) == 'w}2q*'
|
||||
|
||||
def test_encrypt_75(self):
|
||||
assert encrypt(strng='Wfi|*', key=92) == 'Tcfy''
|
||||
|
||||
def test_encrypt_76(self):
|
||||
assert encrypt(strng='j1}', key=63) == 'Jp]'
|
||||
|
||||
def test_encrypt_77(self):
|
||||
assert encrypt(strng='4[D@&k^', key=23) == 'Kr[W=#u'
|
||||
|
||||
def test_encrypt_78(self):
|
||||
assert encrypt(strng='', key=67) == ''
|
||||
|
||||
def test_encrypt_79(self):
|
||||
assert encrypt(strng='8D_.B|+', key=49) == 'iu1_sN\'
|
||||
|
||||
def test_encrypt_80(self):
|
||||
assert encrypt(strng='!g&3', key=5) == '&l+8'
|
||||
|
||||
def test_encrypt_81(self):
|
||||
assert encrypt(strng='nD', key=6) == 'tJ'
|
||||
|
||||
def test_encrypt_82(self):
|
||||
assert encrypt(strng='x/_7', key=50) == 'Ka2i'
|
||||
|
||||
def test_encrypt_83(self):
|
||||
assert encrypt(strng='?]', key=5) == 'Db'
|
||||
|
||||
def test_encrypt_84(self):
|
||||
assert encrypt(strng='FKglwI}', key=61) == '$)EJU'['
|
||||
|
||||
def test_encrypt_85(self):
|
||||
assert encrypt(strng='nD '5f', key=8) == 'vL(/=n'
|
||||
|
||||
def test_encrypt_86(self):
|
||||
assert encrypt(strng='XL~X', key=14) == 'fZ-f'
|
||||
|
||||
def test_encrypt_87(self):
|
||||
assert encrypt(strng='!3V0]Ef', key=65) == 'bt8q?'H'
|
||||
|
||||
def test_encrypt_88(self):
|
||||
assert encrypt(strng='C m/', key=51) == 'vSAb'
|
||||
|
||||
def test_encrypt_89(self):
|
||||
assert encrypt(strng='^', key=49) == '0'
|
||||
|
||||
def test_encrypt_90(self):
|
||||
assert encrypt(strng='=o71', key=64) == '}Pwq'
|
||||
|
||||
def test_encrypt_91(self):
|
||||
assert encrypt(strng='cn', key=49) == '5@'
|
||||
|
||||
def test_encrypt_92(self):
|
||||
assert encrypt(strng='xyC}Q', key=55) == 'PQzU)'
|
||||
|
||||
def test_encrypt_93(self):
|
||||
assert encrypt(strng='', key=1) == ''
|
||||
|
||||
def test_encrypt_94(self):
|
||||
assert encrypt(strng='l;BCVf)~b', key=67) == 'P~&':JlbF'
|
||||
|
||||
def test_encrypt_95(self):
|
||||
assert encrypt(strng='0$K', key=38) == 'VJq'
|
||||
|
||||
def test_encrypt_96(self):
|
||||
assert encrypt(strng='5H>Eac ', key=3) == '8KAHdf#'
|
||||
|
||||
def test_encrypt_97(self):
|
||||
assert encrypt(strng='L-ShQ', key=8) == 'T5[pY'
|
||||
|
||||
def test_encrypt_98(self):
|
||||
assert encrypt(strng='c!1bQ`GY', key=49) == '5Rb4#2x+'
|
||||
|
||||
def test_encrypt_99(self):
|
||||
assert encrypt(strng=',m%l', key=76) == 'xZqY'
|
||||
|
||||
def test_encrypt_100(self):
|
||||
assert encrypt(strng='XL~X', key=67) == '<0b<'
|
|
@ -1,305 +0,0 @@
|
|||
from unittest import TestCase
|
||||
|
||||
from benchmark.exponentiation import exponentiation
|
||||
|
||||
|
||||
class Test_exponentiation(TestCase):
|
||||
def test_exponentiation_1(self):
|
||||
assert exponentiation(baseNumber=-959, power=740) == 35137374406181567991837301279390743414917954133091506790675974945811096922750827186322716538281369577043556714817042320339522770071248634042085555962529064177032874137632871541885156858958475100815621020979690403314989295382529315456844083212228109250037671997968505746450905391721210124164581400744221041288601328863294094500938004416290885285666911748777744975908388158311007827671642259994671949742833782261805576562403640955299123838237481616971142149827705078531046267286841549742560449058049221573263466822627370107960595482803274785875643301677314970052314622956797235036913166574524997848053027607628118810372180234911281770370604823174898325609249465921413648622597691152888431064296729031362684862924853443348590093343462772759078947470824683865647881942777580815000415088414833019253657878912971954712034996537760337439433076834846620844146515337573862538216662245269187546515546120205866957743402559681865957718104117582736056061292917712533034002371908966106674397713460577772539412591629297260665673771864646954482162589049033387737657138006665511056285969514426327353871536144231002693674351418206498758800247101389027462538673809218127121535617942211257850469558662925495216100443227706025567105995469486129891565753500976466055128863121426046735056164406707825394272775827303760122876244943207116609408471512518838752118829181541832475885294253720562375204002479242873425532228611936465155790129258384122553567709369007594047666565677144009304296944070333996828960652556625623320725800047806399735139087539289190722290734679616503366459928048038205320910396254337063369366314323387471127522678325957053024843066762046767845364247795748843695864479619437191306180060215447492239760681539981336594121919274575543920315217514837211857051230582797376235942635409194431548166945836043359361163482494736678728376895388140019099606038510988499836870197713842709950249602425865016709937565473798443591385112135226335731042346852496951320713327745450255523543499979742336357040553280750161212925337926538496073992067886941894019402425301510022745043224429667848821545320370343531211996848404838268005809477867265628091865248979836299623151728533350013115100243726983213130913993778629892663875897601
|
||||
|
||||
def test_exponentiation_2(self):
|
||||
assert exponentiation(baseNumber=-620, power=505) == -1438146724987134819551489168795081550517040096837835292959479483022107624279010271502004981587935096240617773931082665548753708042352267147277621829299225300560891974731365278361385199807163308036630305345316660377163436494472003642045632247731081216431007976289812233480463873515144298312013461273681386096486219364251526677242283757031476971108324766950870609016874145021962647633222960817960531629294898761290176263673306484180436634386239314353394223040143567613319656060908946315121522465307726941409855225450949951582745885752241233177194144733070026666347726220673483433459722359305212780992097277199477847744900871646246461382183411168902264213154209019686663202510549262998334562280914255869176709928434259268478404424312853063563917454102222666955831138597530267977081518994331735508024104803337269650155160155054117622260204114813900810787786250254288380007059875192118591956571244681635372728320000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
|
||||
|
||||
def test_exponentiation_3(self):
|
||||
assert exponentiation(baseNumber=745, power=984) == 1591374461978145187320845163687317709389888358074555073291997204900215871083131108348863593122880913578137108016105279350832344371622004886187131879124591473003535193474066780397034733452083365910904301904185384186122737463068329615194551419858514634665840547955980545804773427218921825146837163006042007117784056666592337906425897530065217026789525093754904924225836304700765298708665111075081945241998560689275568253788986866733860956157167187908233908014369758556780063917878947747052502215015682831292219865371770676204883213525461985752600973713653561547915387594758886188298499777917139589388944431007631990006870120206743422804512826836199255975055481951843606894537047119358749240113078859962255219114197044342792654454849095319608820154195344682300138718014352939902486188918072080351753955834121284248198580437002860025516505154359586188084438121491605731487730794698151510455205559076821983718493262417714464321500100304680033445658790085629453880513518058951720722286723282657525989843507428568849844785548530899421108870671760511466710862407502536273638491483401233100450551165445254107793012419664494722487804815905378249999959906912468623810596922787321477388831148786672761359742933155622422119133158509128072713098843906996583418170428166574253729746690590767997579827334364817625965615587207283186457092810934640472729789278872713594918721411297997558132499509846942457850837159192301370921191157687085845392495989088525314885514451141211906979367214685114791099772543629193627784261497098212015384308762944064768438473663266671908750956144401620436815176770107774338305027632212917698475037825023654910006832250308411405819150685249539382890229484289562494940527638467133101381563541115884595987241336097406684915132026529732927709741102761759890553412839558022354963812029149975363542145098010588724384958601102094967359998453711920899559460910277252833248513134249589701243318077992656902528528822739954275303154872457872792678217090696102773444357936976146824163317411428290114511917216935772338457545053549146989348935759451076488061937170421397670849374146650470148897410458145889755550005532582763593289091783476685909100866707567150120814211828938065846399886777512268774884650552341609067681383369340755314937019202982302483378395805523508474150834906282609833643178501625442813914967254107523727799691508567644700257681186977947204284540634071822442391157938126098324884121084853967424986349438529140831009073513910321826891669073126913833273695948988293464001405683203678629954261579877693846064065863600788740918972272094576994527392232600812334841743038437754022640401980214673297369877307366446929618314621982269922481815414134298346198572310524673980241306936354770551207489264439536329640924653739208005617431967142762171905237165476977339005306943107466433051655485542141832411289215087890625
|
||||
|
||||
def test_exponentiation_4(self):
|
||||
assert exponentiation(baseNumber=380, power=685) == 1418285564188302798231204939604572624941108767475180484986991453680434041127833370990479870256755153787387620944422456019844536005557391262068058169380600017177498289857862142841122524468260582476852796867721994704077325502987906880503039888569552654415215201614382717842548376235530471275857581003476912202587281218797789796075823365869184994406650233852548744237336876305932907969041746946875126146590708309377087652694694385907991576960251256675445430365663875472491630015980850272321830400645987987959937373421727298601638663198094468473094997379588762600727386858918384159054623657602147616965235007524028121942970311922136054546592453923071147034468503209896330275874476785553951910841474151565342430440368466439125142353244202997390837963339263376458461928479654850075715143929268894617290357342303333931656421405480393188816782545604611736160483068480294989713170488180621701636116086468890289865232744226524065109651357018793647929807532259756015074744523220328993398963124575669685490468037427411044157638369375545033679930286427069305560304419776224792216841429788057927680000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
|
||||
|
||||
def test_exponentiation_5(self):
|
||||
assert exponentiation(baseNumber=959, power=220) == 100021549347782415303139310938857157533547337188379425031509648470203579688379019867411134888861037008852590636499150833790126084963461541430768034627904819477474328443584010794114716868703714841211735015875854277337153564107461494703951088770568483483231659374226076811106988735804409002443376588684650912843306659331918843496122988402502995984509827029157738909900427287888593062627471125405264455564839724926221143589949517810088958472797856902020790890486388651278271788814692443553397084237140377933705297747025742621977647380516595879894619884919909107370289783045337034196384001106306346378369761641386773570604767714033147251012006283336800584492801
|
||||
|
||||
def test_exponentiation_6(self):
|
||||
assert exponentiation(baseNumber=438, power=119) == 216480683262259155956140588504959538539447415381425986016095853439336066991602199750342667924637357594247027084227414870888404071964817514889626227462528775888196092275846121518167156466145761815474299775802875121904774612702460298636101625692470136566175794119366560626367577409181890088676955612257848039258980352
|
||||
|
||||
def test_exponentiation_7(self):
|
||||
assert exponentiation(baseNumber=-477, power=323) == -14502284809450400556133302622482445664933900532279790709894998870042370399206204133291945503208506525049863301185551810896225862751846102048545231892566708896091767585832590307139299051512090725372723682473344640825542127004931353894578837241956124155161384348776366433175419245171686820515043086240393026206283095048102403396340596680082689611199847102831354118039880927361268824080682134563397900190845137292039814056287538075753135175874427854579621872043030718694080597820290739895777821703856484166302712534640626705628168489316976494985709846617382547553199284627532944120709902624289567357561080337468902651998959028583311695206815492717159018096630565829557698162707377619467725592400894513870341682666965205471079817310205302064047074273198470538058622995515594340695141400896768398639166931839473741899093130094720684249544546896849345181101312473492396933
|
||||
|
||||
def test_exponentiation_8(self):
|
||||
assert exponentiation(baseNumber=-954, power=667) == -22843672625661824782206155383350188852445075735725530665779692932581070477561107391823034557958627231755088562993817941705285057436172652759145751221179416096739793122000754131941820414540767415003728831623491786653261064933534110816630162789350161691297454853255515591774169520162232471831987233334218218327295882998032733970207845784555653053038342681860810103292044542756235832072792687158885842784650961146645859210231351931193484847084742932640700913934086640368972560220350233860142205087046807543147322462241401373383734569318087836804606445362775590100502655603153628624203019377897443920558591031478707962787849500321382627919436756822445679732809488972753512137141164268371622672643792622015540315770513397749787025959949030629968555727343921199531545348921852288194338366477486226465697786805228756932131970482501214848126795466462402381877504610673426470056479115938993578574143328766185346805760362815654333674993683865668933924502178968864543797469695234550007918464031195054193505959917606915525192648251918169954209592264606787822496128493412643289686305432890037238692691546132557166607133071282235280301830348565380492364745268139097321128779673194941942519201753003328065101376894359395461138657557430795524866359614990404707213396718066526762999370395366856857897403785198374086934776131899036258030654986405711178926230279970386843985501912912282906689157741539211955582967028419417367073514862484699076394562924718183570723883442582104042388724143273470270730872427597924062390378770749451964248364153847315549989117497372098399134452219732823195182999876237990858708179226714729830924438277636193045321682432670778766693950156957179718495942065070465252749569127602746044606370387821489450549308405774470813097801972816773613107099291346259482661219800462844734620682665514408787818184668198287447123549363865101839609631578569382357531108436780484994884235660037854428867263547927061006146765920002350358919752671201549467377007831865095269503006567780989045571584
|
||||
|
||||
def test_exponentiation_9(self):
|
||||
assert exponentiation(baseNumber=701, power=669) == 61003397019431195514518319859931931662036116008930785994378372102479657104462951695258260982103831262593297855705175006681802068096721957233696765102854441598190751533769145580636153324972723089804522881371518129955827619001079460278764428177769395290486692506843629324471258590949756287555665349120103801618136916127931721229820284982471873465560918816517884726069033561792294625321529354869426660921876903857929318695695219787033409694615070563704852246912598625851519908366653836676769733208309239503760492352565739494422621394757710615276292391660903434207557209343362335110797291094072323827353979253253021975097003828327012992392522682440219369259997525012502546433437629897107752473650899070101580786663065234907166440900708789125678946553556535214639664815653719062101959523473572857202474373211435630425193966270373648407215823975886964561469338402975906855621048817319893442692896734488878467138883515154774681632012317904172755545488893684616279092440127554690361733591529599541198503720687412864979514290694649166404434209438432749958772006660461381875283719333637100534892201228924535901430936408040024681239477678436822836920715559943302557120325354993495491771500000549764060951248553317123179892428167263530051768408177895775875553957776615345602060938654487020054888692780782460955598367591363660706208821645024115814840878547887781661468940800749045195035751916580644235301766072521685476582147528383953415549166397442347895945053250513648754353709340441752199512900276768152388912726439379445280045659580208466612733465602789543014391008208949244168527620288677017221536798582401186401721263614930792438802935697896874680511658683727860468567042023542288610512499089791981515800706247766491887836610899027264173673498326077354666903955704683694604855914906478538424114434119095382055987144751134163298927620927389177176795011230645021881595605656994213047500921991722809117801031008301
|
||||
|
||||
def test_exponentiation_10(self):
|
||||
assert exponentiation(baseNumber=-721, power=204) == 10442247985895420593622244548717601945525101578318689757313535824098738879236497223329109630264857833241417404775243641325924225929687253261537769702877338389272637576934157194932817829745227553215911398607414569354022686927156584829837461466621483729124487604491866995688920593692511307439884489935315853184014100117681051828531715554142168264291392039061057171795961600587716348504688837344000275074997483331929221411108965323011865921342093269700124716889711048105298358244970562918264924289139476036709264922193508590651591130490455338197407787029023876404350914691310840095289281
|
||||
|
||||
def test_exponentiation_11(self):
|
||||
assert exponentiation(baseNumber=-159, power=551) == -9328579146448128986789422942087402952479708406809326421801325499344183269746477002396151591230937070160807380475056406529159414174083645437567478925930313465629344410614608012476165507824561468917001633413264572033336324485585942517364114291656832445341757716157042246980188489048827714508468401801769202253820629899919097151102356249842022933950622721788944069927893993671667888325605061124997543172373972031252842126933795930079031187957832758274956459144632516427554086232045133368995211038939972511083707977840729414933779499594561640437439958936277793867246988971312521172078440366009336265460671505209452715002462975217503103487162712904020028795569303961138732470179164807716976693786806949181438968701122503174259604531221140350048602791793840822274720269897761540310542281548256719954536420494463984112554323610182044546958833790582786637436877039199291089241109394873290839349488300578792035188707206452783263442724676758668086957352557827308922488779699710453410296963609147912613966013333240662438072532601823302206015623259214971307645917107351603382350850459132620042231152149611300469532021079368462003939307137042893097810810253299528544371245938939106024439009299886557041818544950345482764248159
|
||||
|
||||
def test_exponentiation_12(self):
|
||||
assert exponentiation(baseNumber=-919, power=876) == 7317925338019645096758512227198302086612007577371172597377417386088130346433532452105846301112219204467907610889116595775418746304580420322349507352544898987866445092421643643964040090115214675009779379235342636036299028343231291120172200457494600434837568438264579491709180898249848819814925558605593236103116047686779011178716048966170473097671851131239263918406337919992411179772180955945637544382373592978179402510490263873110542317646875185283907532209995385600751808560789789223210925433444984677759391620863326240114766739005925588593628570704282200251805494659972830611796473327995566511527409243827924792668124147385180837489225891491150979192781471750280310820807198084260853629753150341574743692432920358212512096192716053000744189701869134170649935026231167008250383950969040003319042559282918964582914396391317257224172375082270843274461614347522153228118889854313261278689995647048269834130113463905102180815116998176242683725401745963267267756060072409734756635309141541314409918328696056574562367229334711870462798201379019357954607649171203307724790451460403676576805219702842335498494564021518149767448849581019112831471248629715426552463979160676086646494655491366654408378275078680165380998767318695462657913797794669048608843191859377555546373701921793872995090541195410488900871147386233224963340612861425000683057625119779413995129969766057828270784988983112478530927974843269033380705358377526066066110592338292182229587377129870281644295588031532798341267936335740534486735813477749466391715817802020987557042665459488145678539497015409920867962029781015178750107753985067133111118874777558827011697198819524018257144936293634809664092364627768023068446438146007558520546823844553084753830534836152159983898107368980964265832571599120774734643559625464016091869648804717898207040704270704569123276636258967080594773989983894389917609315618508000266968461619788072540136385171525707234488744246160702521245615729348128610134553119930249969983296204669387014737391253672380715827499607587472462991012777013253967174300779733331335547630283172754835721740949484661987695968148121692034738202559343761592634227220435178428872347019338485198504942372798036169037633186368588001247662718305888748556754027726246535564599702315020977313620492206710484211288000411360946093369879967962508313827611440174664433515000237701778786027039763252795401120383024685514594588244748733154464074759971397442733239195631182136038895063675780835620648705060915228872969815803695001659253624454445387418020904516176460385676229869307553016555029484698123880332021703967106340812199279933994081
|
||||
|
||||
def test_exponentiation_13(self):
|
||||
assert exponentiation(baseNumber=867, power=541) == 293989442468449025299513046108729334527204143768426769839084158234137065277900172247513459586526406487938228361061388643782002871937169315621794726881760617309589775644697799139494498931211192431156345300521669684371143497361699063183127283328697051336594377257295741244900480126698861379170854914286718453359517609555169535202610041050129529087335512435661563729465814008478846638743438394177356116079494516553995554879452116024117482836714473289765015994754092716602829408273893020146767660295640920664467821177717984191783065567984766262444385447859325905369329295462114401315537345158584389339325812842246872245380589932555475482803390684092147238197824885061507801730232723555422962458919665118525010133837532065184970853127946686492519715990701657582663468489235950137479099161283945329381443173003175267258749658826677035163559691512398379372410417638873100191738927911905988413697061296887839250842044206945447574629460587461723599341055121347450096024631912842742502527154448941556138532314194280276277511595792191964471503561734607203633776748599307379425125290596369146123505630575970824986999451112636008589671512103704432838956453121673924858263506561063389915433078774959363805982772323103987960154860482280001126580336714347084682646894047643477118500792705995274812588111167184142236847247793467805427555972586971321583743389949977818247123190160535529255554796662450836177178988305387947137585533713820532522709343753721422680045610215633267752163921902380757335202220677602954110901797698982251113052880498402952927296637550755366879020200514613129195611549725149497809267
|
||||
|
||||
def test_exponentiation_14(self):
|
||||
assert exponentiation(baseNumber=-658, power=123) == -43831356806593543763213193287845578673752171376568142890296619711225500883786600620240616509148126298345155017723307012989649439933483482685662321883857550645126315919078065189826245832214466374923880563560000232702534487008052525884539123720841515045173662521995810797774562220337718075967516818256800007699642094680977608214893667264552356544512
|
||||
|
||||
def test_exponentiation_15(self):
|
||||
assert exponentiation(baseNumber=892, power=401) == 12482644576012426783365323255528975318430995455642484197478763216053091486393105381993158745326574733872271735860450866589216893991571729195652165833117584799013380877715207226519082112842426915320412488050473298009638688318499384914335849414262412478479881998333072191978205276167674055983195337014169608094287409427070125510936756375401158840810066518179304237319324994270543338888876625259417184557251233845976179497569566249104774620721903410777612877098016833505841385123378419356153430098180780344852231309168959275030069090480188601563351544856107278394555799454676675693342952037740033954415856961761376475533754093710944643346566972687786174235881311067909453144896740979241344506806600193770203860490255940680988352614592498731841412505196835448246088859786588467863270583320063118133737553176176301706035076784298039871173201353256786483041016703603312863549823693127643537467836652375937495354190563188599041375180944191226999149988033775363242585686279917224101563873571131683473016162989114766665542306728230843963633983839225877138276732678922484527951694674616163422339761415381680448884030421741710860836585512755230119012084772742229566730857749902254307877576507392
|
||||
|
||||
def test_exponentiation_16(self):
|
||||
assert exponentiation(baseNumber=-228, power=21) == -32857293489784097721377835414693810935866670972928
|
||||
|
||||
def test_exponentiation_17(self):
|
||||
assert exponentiation(baseNumber=-727, power=370) == 585776598516799230818584525300008169021219285151442650178561476023628214875096983550006079835230169458620648875887172507547112524172417106401825113525206389857651709337042962615636015415629504045783295653109808444489194340995673012257942826735982670990541008401847441656635861807463526155578550936430642881800871170344382561131824821183160216044380280905469013580521110869045450959951609516714948195452456313459786315932051627507291603356379540501764727938733775681911337603882707544554758531382665877175781026458559217513419664561190459488263622495102717501501057638289847305118068973952210927463199673178182831781770302598646406757577842484361408026336713194692340054115482413297029385415374228419075639098155634306030539429870439772618224843946006158638565905257260048781571244493110831685264781088221740858302164513612181257925009313612917637371752581864106411820959377219061444938898673768007267963902800977455545598378448754687549740443663172083890775518934069271358226328476465893442240986252253770360210611371151999293794013962838368495576895462700049
|
||||
|
||||
def test_exponentiation_18(self):
|
||||
assert exponentiation(baseNumber=-965, power=580) == 1061308736798839918717206747375787047513875465274438938107250204407259965843663933708644999714260518685899797616500747096493896130464651576092679491584659875629962660012433894706721878540629308535014580244475612375609862023478925694705690503875345506013537942326312002483087169327932242126531003277554329537552603031906471173108585005319974944072163382494094532931240096158466408145741373732286598552392127514601320173451990370119244687919041296569234963390092713965876126875056396231266429082825303764795754042417911608341326791727342273931083738132496151461263353921254387744355083970130788673400884876056524488496263827257091225032320195567394722973203083915671905951819283114582054657977458757219025367909972759496142982776078381429530919596609949503493026955762039238489398519312920268752221570429824833632868201788796705631617033210952802654304185833053155397556070601427210636133037928617449237669159132567002975889129589688329332921376213048580556595242007504110262549813243402651060909216791927855310747461249128936950788404736801178726892795161106061725766284594036219597894124865048053004979216286923950231631584527203277205156967441440270718500243433502569539122361497132821617880565627459494959463046358097894675995535609809557756924973826500483840977114472740632208006919182551005192775293422616477114193428052011460249614779585417325382226698275427013877769779407816703788756935576215808909130018153182807121625759975285005355570628721204938517094411006267384858048575611361886745807661878122156489582339868298956699100053092256470741013677339500413979927723888379576658599717448835173301724288219134268103968308235929681258992931946448204398636996431859424974638096261436910096309649276236086734570562839508056640625
|
||||
|
||||
def test_exponentiation_19(self):
|
||||
assert exponentiation(baseNumber=-222, power=281) == -211439352725316814827005239046647240868547388948949514593932923934709168609605829154387424485468489947802263316895725331985435405405950955074678514635652998984032245784068633491773253992538177004141232249498289842504076395714643453345854824924436035484085067443963933813732893612067864567255971927750487106843539644307915803499616464155081265478499871918911492161248609845114695764684285671158505756204359188906126132308863304111880705016645676478357080144308039849514486921667452735925442333171322274595507682679797116018548108716546078115587066349598899575902260290471952008275417270705631680472479643017055235420046628301769060332066068584837948366936604672
|
||||
|
||||
def test_exponentiation_20(self):
|
||||
assert exponentiation(baseNumber=10, power=55) == 10000000000000000000000000000000000000000000000000000000
|
||||
|
||||
def test_exponentiation_21(self):
|
||||
assert exponentiation(baseNumber=605, power=484) == 234207787693132699708306327280394278922057597157307363999148377055308347860403999839401515640360256702147264916817858942779882530786267395026635744695664779786650365016870742958697002445335161047417556213169172700486241588517367386053272140107799373693415837393073785949542895691637219762794972217378302101966676632238834755118824449850957668507777245482481591443281172368327497541645810841083305016740482807324298297590991863297698767333335515995860313028070166467691877931093489834957277159336243241965831989170996861677699874188254777961087006438649210624025891779593499295130228426486587226559107287438231241823880222785812815987876402603440173822850687634963604816893541109391588025201074709332248491109439595892019042704189566423353452796121449360919407459124954339434709002255796748016165458132215343493470533500889430247821704191072049598028684398982471456015030681972735546171317858642442976833035900451530204391507143119897216625095081068350189258321288108635167907187219040434501496845309326931389640520817825752166550517092215207489381702068114097728490604830386585257242647311643636733915983154449205925936606740181060231585882661240213985106084442883269903244359323478532254989924539350838853703322149052016559089889285305974125497968994607526484284762082788850983526955072065294657403843937328036250988816391327418386936187744140625
|
||||
|
||||
def test_exponentiation_22(self):
|
||||
assert exponentiation(baseNumber=-878, power=543) == -207740961333983616051710371456319425543990160748507758870919851921992745459166857502959664843422494098740316418868649886717243785521408727844219026505538057768598777334985700298045839388623441187183153902875136027214281014394672685041961216905075964661301550738015480105455747923706240751773521870076940513590239451778543991555459032744412583802943862880119482020420671561466700641944555181562410007540214754944657565072347939574692252078307860320552054938559323718981532848189815859800939318516831457234239097486911527155650978283709798828825792200245843851328722920747292706855580516177830356754219326358547953754510289586340476949110145076946509295133957257796679429174518636841276423754962049405915856991070369733645544767611811878848451325787389916122151570203311922609735414812617263014786436528619524659374163124612994608646218622983903884648699670195113612504107644639546702988912446474346474128251580766090656518503218888026510337367463436432519500338977823828259362959854212103731297738752913277451782545898561865872074253894335356182315801808612906016397848317433907645862994881964661894475999831497254433649793119751956137005517831284719839669422255886163411918206732138059454827086246676835962527477406104671238226597520544231180998849498928150531575193230637080939555827507460370343161371563454786264250849780631048475880000861959067429150809416059188036939015389105103496118668700830928404699918153085478368176267131699880352632089789737024317432629830535398921090385278878809173029609838458064180883476849414618732306491889417333434126823305283056523541541927398955615586353521098752
|
||||
|
||||
def test_exponentiation_23(self):
|
||||
assert exponentiation(baseNumber=820, power=580) == 10280976881239586598533983984540447692800800465568456911858052389649078161046679853896692355443026929692270291970074850941740821537265873298335001937304781377001739251728472687503634479215054450394339915207814709590458206673341112491200414661938438023750778825629015087497656258073846392183852725118197596180427744874282448709254775060896798749822845922945890950745600511891955563766596606679567747758327302601381029170582197865344073552376980752682906704892878930242517543997315358994794393026113070851498091721879902300432884763701718596279766416348307898741888899707923643505793026877188701261220881405720012424978412573013817930210903180703242225774300975069939778057968130388977978045624827136719765426371488622924159014391649505302314659180237829951419711684137651869674933307621815147637889915969925037547258872118708772789945494004323311837305541704944073983754578719514328840863777007146509447241161557255742051491155083272610595426679723197677594827386809328103468515565459831583415782438366571781670780242140168847518001664262668793980806829799371418954449289349891952380483923667740325680158353653760000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
|
||||
|
||||
def test_exponentiation_24(self):
|
||||
assert exponentiation(baseNumber=526, power=227) == 461066876185123021387318353587135383600309438479073920443535824843165576323315665570631260694330229096608188270973431845528489684572215533296910009258879626933916285198719308417160519216517135212879850264142334506717277632191899574405586556716181223095879991892524417575748379660344369106616115574600788692107097136282471200595701575066711635609922275706145212932232459321424065703594793965720330315019106563437703393884098434102713278319488815551012476181370271663642619289875583647559277946710977108940582749222575874470372121666154045474698153545435828396355665255446579557143800702238536907252990821251987512754176
|
||||
|
||||
def test_exponentiation_25(self):
|
||||
assert exponentiation(baseNumber=-159, power=472) == 11466811656916799154231898606857733347537743175683774997206854578086533175383293516547767722505230061780728021798433486205650839130497695804521934551043339360787822451014848848220445191156583165633034576594740515787875223576138935310866603264525779697305071264377593320245299610223035745403760341564117414096274117882632886411479423465423250333649718356784867375112134688297849058806861740813391956915575599717489086541220278908806738211441103844851617810056493899387654722934540636432772280686643498404638280617621010447910095707503630846263442119244442401937768848227208550670302982430896292311002503567010463820969190495423289072151417888783598267540438203299954478166355185522832564129582833883353050424253060296777877013896680197077223796732451998057642608704362334504657646731700017972021077499381618866964107864529870401606026603763921994711158162749250793878021229409908006945323803197665806106512374531790971495034086753128821127314125664908463545642171440981339221784040444618480275304392736824715575561195989087106901746707278081
|
||||
|
||||
def test_exponentiation_26(self):
|
||||
assert exponentiation(baseNumber=674, power=357) == 67855188783880566882295361162364282409178142723760310845526616841193019587268312164585018841343402391009364208025669889335391632636003973154204193074673217596750308943152924014733670041651148156894953666592071279724192699239948659873245770481807595381445207372697939380154953485349645192645252352513862030357383986393546450015318432739725504172391236296564721517569255144739103366954591067226348171178077591915307084231265575841943173775570667796524935210765667927870154895149299612512093459716653294750284587800600973769013087669406572232859920861889195803313119588279283159129552836957508897078930497157227556106337231675277088435611527694314427008431553264301438788203514136245112401247367658656625067486742171808680386815185483251209350041042507675962476270202319838181505854061756158985167417167188955433202175053919703872147649928273979072206168860790763199030270989537684316671337165445922370507548624851941817153549673209550170747314711977442369760061411368765457825216099925991036368302615152740532224
|
||||
|
||||
def test_exponentiation_27(self):
|
||||
assert exponentiation(baseNumber=-213, power=318) == 265897279256649626038931849101770932559845725831425786194784282239164724902652158760885270309345138931180406089252669982717788526604816644247058012164878750558773669819964714876933767788214921829529006319407896526041953925533687428233933672403782249924478472769104729312662893365218168580352242996368111434566697328137392906502770466567599463783260986102093412713296391905263488458800921076119126102322851180920734471166575819671451636868542354256261880975149657793020421511187287480272673165839145894274758071043508075563164348623875412992042860246859508868048053630268697063382810151704868584583106750820744081269284253150982987694998752992633323378805601595173962968721740556535246187958197189407489952532954678370579548324766036229329929
|
||||
|
||||
def test_exponentiation_28(self):
|
||||
assert exponentiation(baseNumber=597, power=531) == 11024777406499400962868506008994403940623606115166730786392164202920048081455768817177547730613117811991344652004961428357760004114553879632867458512519114676171249749415712406219757667119694529219268922596019426979912317172547540096217000526717397706626130372646336983417373679503696083820608605853061660297486336262898233499597020000454540656244913676577731959071600355388435769559258985410443037902730511083946563134569734586500531259994455989974601809484355254611856001100982365930763175937116046421318036446795211245876022985336485428875602336408582979192491354735399158446630392804465836875635874582698722245604342210403520020383935900897953571354434802659255762923372257439753474053565366004072157422571525415221824341382430609507643024650027098547797003290633433048929794366027431906543604041486107151441037656537342143566000566747181471146780589828087305749921451263812780601722204792162032810914115175646213692434606370895795507905672289915400875806424723551861710225387975521836069777932379074753356975834448581541559596916710482604662573115304925293747958813164037768773409081382283327715822136986503750738349973969517345784674169677607315608168349370356393699009544342553820736389674458041759891150644297774122351315023539807889924048203897199871389432913034847136678755106241274410650229240808190398884075631452245303981368098780227234739503843989205166846451230994367172104133869059632838829580480599552108541757776320222364736171682021222044121427160122017453
|
||||
|
||||
def test_exponentiation_29(self):
|
||||
assert exponentiation(baseNumber=-997, power=257) == -462014585424062933823688287933399658757628877854129917563554992080771117961531199190376428446189193203581407668423720506636648211920755835659451877870465529841202850787753148116482263698417717090725914647963179670885015461432241444322900442860978896980586044477445573007311145149686020546124408552723836735205516349474256961491371950853893738511232105390547442916310810642727632686461980440880377934260463468432615003867569110630224176004241596953040052454195656056830549337470067625978482651748494126944311570732972861773867111264953040322926518740922520226947050343259614038085863774081052217745572940400343155536151278104493015132446900949621797186573735987094105662515079744021012380655442374247331154194587410131648872515221961628377284203017329768592199581958590437
|
||||
|
||||
def test_exponentiation_30(self):
|
||||
assert exponentiation(baseNumber=-667, power=228) == 79559149714928638662021287093671533508903620065777433545464204725304577268981365300280556246243659894171260801907355157487467211383715290691398517661292008272325043792041647925891861617796993484500918298539704718345764401495066831865497555373886470438128955573760438551673445553821137387326037222912086550626023513500889026980576364908874950348435071260598773287913249555027353689099856241903147350778267955079078823648726072591987522998824930535666821628190850628608566821765093879216525139348611837409370505562576756032365700574859079969317476138899900262717732399134821557219292276230855304781682766302828607651850506581021535750927602262641
|
||||
|
||||
def test_exponentiation_31(self):
|
||||
assert exponentiation(baseNumber=287, power=58) == 36070321276276417318488441198611070256923388842318481460527116200315745855282841071835229437140665752021561242522996735438004541031144042779329
|
||||
|
||||
def test_exponentiation_32(self):
|
||||
assert exponentiation(baseNumber=-632, power=877) == -169386055089629722921317435718876968634973068564109451279669756183001687234504877496816147961871156192686864246698308414191090435413429378832060317819408495218047410673624623168484216070507907570935540018958632522342094590990298137639211165978176415096959927250486122085265949224588569152211902444441252925541516538029789838934578829719585754247670150581672824321640254784089141475628815566767682116859265412077880622429672161528124042505895627405153702317892496589711589068359244590249523464294669859835441815520473481362688921661183463713177009760831907567588034890595989594249325425449728938670529894465906393053433772679763898630038290488550168489028001400309767630193158673025225654567056973967755196086622991646928384969728318971182829630896207317456951823836428659376117723259246650606709764255539915260943699359970958873132445433750776394297255806828462857880870451896040175766398152253396489606983917454197337792406315631261193458231727693808129660962371653551906938271370973310468379553708198279694830422344057335150067990139838651872810898900828159683296841521099180170079877261652024411741988188784850869467733055831252847040760772540821318980805210226394194192048056351421471488091120195682569735424585646124253926761939648121603611876225393714048535400417528745677812039232585186474902164310224775580287845162107118468831588289687871343976263053892126704654754977388922714515164590126272581511607822411911002697446331816603026309539304536414961468076695551996399474068385029607102429078515941361202811126969717081201442508247962684477831636634435332367539419055067787326813291450908024273128477767523847648317663171543955881854869273548392755765822860638415801438707547474650324490744965564925557078008412063433860510667463336240991590061479543893548763436161632131137286873815216693616999909436626232068802704166494714048769569774743091253102372023792565046075218144840176383164389374789129448226824229979048587365193234968696254515719089018202237610867278105575528352542843437873263157116165211796204961997838167331115508841085025708738761330887915263955882366317775854166500979073137115793142615625813142679620629155627198606186159158811856208576160717345296544557155669931467458183576794475598602945945301827374546997937164288525070539093428862064961432040923699803641893895550739423477389515138198382652341036265422538303941931361143868408230945370419127979281541129932526527603334806204100812395182669119335127066467331680662874155384832
|
||||
|
||||
def test_exponentiation_33(self):
|
||||
assert exponentiation(baseNumber=-952, power=630) == 34775828243081607223314047752725951164335775231912970035185599074273670242694597490786015690810704840301108078536544356911756889054134258476063270373496238880246637171410178131529177010969343830151354888189214857738372949781993480420626594614987255600474798724442746757944561580167921479268050678987078473161170422056503659281478000890184183077932089783256739640010712329555637098342390689561440591111520976444231744255616400299071268442477846450156097102466702274145982522963000383722979686005194607983931908142077501782675206649675192219731816930770557673120411686951923228970756789565170280518729222368632041136733019438583267901863902064307416091964576755271348744271582907071201130471428147976032819240938947074948359400987551581779186245875059815511666249229061141691839171142620098628432475127755018485101375542404383846148549667520702075181327020425877260940770655391520803781881784070545725855947766862906599680274516950853526007750917202542256518368571176639551766075017187336667776020350529177350573786358114952614614946594792742502446802391782110340792545431407087355174616176633001706232442330672718082399408917488215440200550904052115976879595313868187204738346193174171579035945037472079501731846469552197371657995135445390697783102411414057649575560895682208816893822086863355399589870785012813333522428877248424019156244909787346564192817546937297065356842858170394070930417489347651159641125341347723613217553240770867998837555616963488565509067136738725466574259812271134885790392681710391996104199297534064602788994994726991832314136557688241396151404958451270722099698665169184411308118071189485792234830185767339960666141515572995440771916757934295676271145589390011503103656896868989102679855390022660025575030790060616465492646043047531955230046920766545057895214673936836185534287076530244971608999870655254424713994850533092359744214507289477931597824
|
||||
|
||||
def test_exponentiation_34(self):
|
||||
assert exponentiation(baseNumber=377, power=333) == 834967590461088746983613320697571099936695366081270054766894895561090776908701871808222929630945277292812639655393697988086010912959831805175350641330493578622101131233786511599353806015836558489210423417570837211810328957165230107240260590920594170463105672325815682295855850604256454586272039334773405917070705067960519746347545931594393981738832824643108016788312999497945737998085526002292051127830006403118456351997538764733517932389087579277592942090011104297182218260059001336501858811879013252542085080550873658525634679673033024886101753336967629098092555536705518677506347733028122203338726693730431266959299270547043745272345227179054180906720194291367115696357300907273849582554218343752328028226055914447222439216624649618282599196234296455931386615599225174019870216388726822601285711308366913316679635350081299136987472922638791548903005784217
|
||||
|
||||
def test_exponentiation_35(self):
|
||||
assert exponentiation(baseNumber=380, power=400) == 819291872708683428321257283833789514742343391927810628720452219863656092884236954130126825166129540192599829401855447559739643046667341950124607794474853466218024040146647242651676376463367737483173232054022670795173244212050005310204961585937192392554906526630293032858389570974927534180469556068260604210005589681746177995906782498390756207280708228992555505587579962960591548157720631370302530178380987617683724996041524934580775381605999912052665219730659974790040399271516406223083508425355894227623898499447278315094646914614518531385580853229556371553166858297886261460301080821144264649663903029078587986969973830515960053760000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
|
||||
|
||||
def test_exponentiation_36(self):
|
||||
assert exponentiation(baseNumber=706, power=41) == 632401284131495255118418768069134686543560661205425335153005247170269128322783983682121853609828675530881358056390656
|
||||
|
||||
def test_exponentiation_37(self):
|
||||
assert exponentiation(baseNumber=-882, power=786) == 137501651247919606539879386690550566492443880688698203080264838041913069252705549678660563338027754768619276066989859894299661448092403356389393501247986446476701840016697640269055379020957863937111114069129192017218776673743738668721935910551698244766292243334901819252323661610163950729118832292609317191240806582739652596507717059308513640277336180421562009414172713271793505381633651567193053256891337669712507103126494702894276371820266786879716805720835266607596167291394204004104743470454442589117401398913250460146799601932189690457831266060272572046858554814034766352334705443355026185634344635169240359664195718690763709565897760027997069222973247214518438348004113918680688109054806105498825458419399162962234498399419911952304216171308170752765283811976196369005764824425277035503493829996432902583437290608949654879993639404096525656105554148307308835069245197648887626649113573773540761912809926812027404779411075245367461540654617470446147498099902157855815837777570001987190419718263958860190149763746732376233296244354543257618197753324412698031334008383485371856165139456356759912266765091127112651820326854365580527120277592961330625934129146968029194521144532201664769130753600564126797374288525532125733075843904826894702684781841258446771740307095583565265855980742474200792442314482855066733795424543147501536635399096550931142778672650589154988995955362238811536049093354304708369270553544327186265100176938036932375338518498573347207613417925353952788441893734670998360861302766723003844368822456644707347051434200098398904207272183153055688348706780284584780602093359460848211137724823809662023472814190234808230441530743249284811216012381690093317098680668606714268872003683413467035215933434374951454087120920714046086108076541080593697754914812781903648198605120968508147925724354803891039777224562993083924225691338863480215568939677861397213812059842720414207224549833825679198175872842805329553424873887828722447085558616846168197832113993080357166893186361694078007741255452996805808282671700406392512368492033723623429744634884041810740452416492017469339465350013290712958098720726936753840370119503138045966552409601479882261338819273533005316739268561269826408876206523262043157761223606232462094040962501158630207022673497939344490259289852308143866718409189737307780768044417024
|
||||
|
||||
def test_exponentiation_38(self):
|
||||
assert exponentiation(baseNumber=-799, power=43) == -64492841276585426650666953695622875437920431667967901408119440650215516022645070487072902754853843098632440788994222014114399
|
||||
|
||||
def test_exponentiation_39(self):
|
||||
assert exponentiation(baseNumber=-28, power=153) == -260123024721362537786721509237238163107797773745152215162383907875782771467000529963837577286848770295376050999263776659260938335287644157509770113669735646569713191179551895215718720381684024289545597112147880821861122048
|
||||
|
||||
def test_exponentiation_40(self):
|
||||
assert exponentiation(baseNumber=-494, power=467) == -9342974152005568492085191565051798868585013124573891423157105775484907940101926453381157838535313699510746992814257970887626015977599844308807504412641992136133965446005279545819482206885064882744487635193479351518759240289639701499548198682690824099432108703349118880300867170412916080456791805805138279347744627028356288462265580297203769935396004265944617726773788777464128679550705189541667627916009690190243922079285303764394226200264108731652973620095978423739754169768904755505581808399154017156168871698862524142367218469076532457900863556734408245785068082306781593631893905184335152570743733566052742165692517604202875749072043912699622828569843521976493501363610414642558885116662149411808974740513119486555549828516719473939352305735102210278913604723936688359093393226204479600501005042410166522334454050253653222301554401283290879221996858255296773951056430878922044926229046355884287695512309541033461985510975836016342159137569783394799870709541142390753807708334258183389833130447178545119249749802003115289485660296030120246766469289259050343418359174979809893785149934556302398849425761458018164547692239203419136507838428573203135468169278384476615269338559056157500911822146238218154478340470151240712669506638674061168471380303768715264
|
||||
|
||||
def test_exponentiation_41(self):
|
||||
assert exponentiation(baseNumber=-359, power=119) == -11382545128088511029243506274223343400353027263094376954107770857715982020783960268506165755557060343726087290054925675184969816377793819421000167685880301205649267694992676147667329215059495551158833369822135812322786689186120498949230359245360739453769585828761495900460440528018001949115505967526025239
|
||||
|
||||
def test_exponentiation_42(self):
|
||||
assert exponentiation(baseNumber=-765, power=497) == -151263195685785548946812710013471343774917915492243816490818814997428634727581228017139701955280960928140962762399682465449629244952204470562609428785565678888315322659569928188271406832082718440162801175588649053571670137685538704119723492467177931536115181779416612270299012649225408258942424521086145990446196580224032289764443613840862281231820863993244634584913705333084954463296612397956159135804059958404390220681521742389303850257008518078243040671991415019985575091755031694315082807361484187799511156009975120121469440399391409844848620625580617472673021754041260155064930533685507536415922382686652369579999254086267389400187836033836977421844813582734333883251919057587775809766643847340362927319112745221928140858653805123916610909035035510582107918502309356827362663032660089706615476376111564302227666954993756072936210198607525626927965001410051703889265978086783009902238060987073749821832106462525149321198431930178173103324212195506217536773676751297271299527348135008261909365687100113457888317233864009932631583806304134021896460793471322944589820323093870486194959120992013181089138603064512455684108191236440336678085455873510094663261485237897599973778455917826208824800145307048865630684134914757013036719472557351135263363161107800496717681531454696938210554454132271173108565673033948826086085462448081943035527905541817677408691004196374478535249857529777603689963468014401115624423255212604999542236328125
|
||||
|
||||
def test_exponentiation_43(self):
|
||||
assert exponentiation(baseNumber=813, power=712) == 96486924366034146456403994870130160341296448340167405847424571568410167755918363201881803590090355380247774871361365019929804560408437970571908034664652990904900373484577217044393209042698086241415064470040814128417263968339746226561936003276849387577881951579002495746577711440446933991236822087677500670332063762928240674932824562081533455175317046311955931336180018270038625948068484231556914378990811383418778017622046982173139622407645528272913046700595229125917918820081119653813893453882444164074124488882698638930077647170172546543318551517873828462917106419530643176611710378873302353586379257023874972632072716538427488189688175649567328979025388014784024538903615316673946415637652891917313309988811370858450463669946922495126487304504250287073371988507213372238515893288820394695951494294190614338710624476618135769046321180556723310280054520221041189952246248147072813076901546620546386051550025112103794106659949940088970620560246066252032402692663431413899315692132470439851960775385020872435658125885851302512840957816400929138658850745604679289623863280525429575344336472848999031843911605813351555818763192342707081051247225697269132645921127712519435367160530462689713493654414657342075808094283594057517017934819607724642232515385670366762809435150139196606755486469543274215351065601062886534821367932948668722502181162719130235201583506515718780979828645271608259288347650353191924507165428223233270850444006100306554637002009470286949288367984681497051222082317499887463659157947681702623378929462663347580189259536176974531645913075513077593700398370922856368893370086354414506649520146760304801133168303823201313376246542356694981674125510044428662028449682189197693565064481092229264018149770092350038402579490135606212093418461230151466470919833523100428316433929893342005214727930955562845314446155597298686330703295060499121930778538973908293879872213146627570014034729251998642105093173123581661658224481044705252398194243042867985031478092028133793818537592328805414871541158992395123488546546068927684301123292850819545452250821983628955681
|
||||
|
||||
def test_exponentiation_44(self):
|
||||
assert exponentiation(baseNumber=-889, power=919) == -10982932933639272551094665312667721278272461626807352881210332048435119873837196409884543172585945673154665498043797118764343994715219175490597105471717950299112119344085384998083209271206642660890813230190070452257904967714370624909769365660002880679544432810188887111275593813445312409266714530410852208877274985300434326543594207495993510721590045684886727372958909907876527107175201939776128571890440351422524083871811464073913786612541274296431808822383235467359529926986374561822025737490888950805023137995527623981441787421400821789896847964852510713840680718352856469781367751135024457338840246608750748515244817285725106568180015389294487777668874102403539051054742270679509043485751927366115010934210416242313602077448403596355558373405938485580215692702095808065832797840910832583511923920781594814493932173458286687965753378208109892368118099434987747520207176661873587686391877861800475479342461615410341934528345055262238944648758081836149022039324924243273170691221614433330214372145201091487066397780654876351596936913418219106793989051964407240189535309415274885972592725171457002602646564694125779326854949645351587495482238207842205091856950540008881108183547595791413792708631664199012163694978716097055656813259040755149783588382182503964353364905792163841581228554622828371744905225099500683717017340487212860752381173095179488113679774246145948305169543009260543491064696901184929951516184801762841885613531475210256650230934532557781053946004217465993720740313566244824333245096853564827089198912369756737252704854230984675488375709131729086485555177038149648915490203959580161218884042125243017169199544947569784081123901762150155522814707615639774656035069738537211976212120176234370719726510974345690540451559745068271426967269550154134606089572810982826806716038266079250515506033071407881077741807636421790036191035014584548113043711031228649518899152749518642280725888227288504100352682837289869902471381051171821335292255737412095402990283100587226295348120404922200842380569867555051043304491102220901408034161465302944578657228533729857659321408549953515004118747694852538075617748553783538314856216898805461474277445478213163433550450360423649963136117707051046692251565524165659478684346141109740535045870725008787643673753846539384870205049705705881057273303612351501728541127896304000534624035563100216365498482426534561265894154633626072424020619153500973674035734893067706840972777820644524993503364963576459764895545515494269928627865851564611446161660357374810725020248618792409725726989678554543262287701707656052706824495841169410181247564096337833269352459027610873198246792086334561913327797008110948007220899356971026469251290149724662638772453292421745168321004809
|
||||
|
||||
def test_exponentiation_45(self):
|
||||
assert exponentiation(baseNumber=-955, power=423) == -3478773714696514916608700715026859549640624056543492158378205650761011220480914132360789975139057248181009695141650998357118556827421764966414433434471723983489022834955040630246943140941517531935492921975193607071616910888705256064525219574095119335286466683365415765091543403394054443171267512071127977559158025911904251390348325153398049757976112879217435285957042772628836600799278645541847804984661527291082568308801989081662368113844178229962587657974787333653136132065390194056268069245891157078334707201619667298774384837333360972238320066608756687911793317667424691400186310271421356433849558357610946628177491022266041016135078231295064380731478805375867473827748402889364413135219342096780583667671617389779106140538279971758788729661676002819483371372790097012487014679405248546900356334106723776923564194930028106133801758993793724463107986121271399940850465126081723526041441193097661179900841843371737021661071300398605765314453268979708139179997281913622579186464585654941726929540609614460451864047126546009686498732051672682749012730389259797219398278784954253641463226361243313487735172225747813372502284065844635144421925677076573222481918134663305840462952104608626992119842590711814688005728914729601519706392309672082774341106414794921875
|
||||
|
||||
def test_exponentiation_46(self):
|
||||
assert exponentiation(baseNumber=-532, power=165) == -596237556887436320230976727655192124114013405137885015594650933142563209831694612505876947365498326225601732488001822411286698296297731746361432001535207986733129761380359103657270545903552241268121385599064200546622753027968374457468717040224223427423021096503819780557983097672510269883629035923325444260671836277970157155507389202314417847822347865415925225204215989494230651698237464150077102467988902572994268595061629027062170468103063896850432
|
||||
|
||||
def test_exponentiation_47(self):
|
||||
assert exponentiation(baseNumber=-277, power=5) == -1630793025157
|
||||
|
||||
def test_exponentiation_48(self):
|
||||
assert exponentiation(baseNumber=464, power=363) == 88313468390533718539470553912808996028148909751612978289053116902044707982219898812234661018411658076584284364476738627861283179262907178188078156705069819267398872358033706385546745816925429742278604926538212626398923724850378089453910811645196188785745803421020428204541898387470093729669087968192467840756506960175510935250627807735241750240547294745006151742009117378145198885462374460092970163991716073419261428696309602931168281685527003480637015991600920633096270434191476232457832027961813646993126166018392864200493559127218652351899616369429435268662264440875868938529266557844036477774680872128653420250436760892535698893276563543841590749152912005110800803919135074307751033297674060245453144496333935814281522045032854051661251908169464683724202640566194159792970387959444900431663781841998051738552844752212237182588886623822605446327354968007145339256929104095832797799960109554345637578197827198149533480357991438990697571386776410143233540677900959744
|
||||
|
||||
def test_exponentiation_49(self):
|
||||
assert exponentiation(baseNumber=-211, power=270) == 3599672003856062878157593704170184206516586862472399925913984719668921957679112756362262182568762844663752075515465707957030584545457793941909730895713235586129527418333261696090619608114461105553001404011937023649278081479961153951871718272826994120592864207847395317870156422289630330465578410750389228289986985390825476917297701055860007775865818014857411488538446048905660777441053143294574124321590052500158355218004460760925939300111762682617843791792225993389148109358227838763894211658985155343579096920440198879038576817298289562449591890412539255883011993292715839190415981857439251854768799752202682841919246031938201
|
||||
|
||||
def test_exponentiation_50(self):
|
||||
assert exponentiation(baseNumber=-782, power=73) == -15999004972034647077304138276481728207018677733745239892573283246627600558660495277854506283141360779446158938394707380719403404738803312703795403573668098819880849559170837452891137876185896242740998901157855232
|
||||
|
||||
def test_exponentiation_51(self):
|
||||
assert exponentiation(baseNumber=-667, power=643) == -8182974698267676254882675135425123067768509496126625363125912745044846085065224414877267969453772382399043821264750122970955828136322604259488769366808890375779463805512014306832690624831833708027756360858862700015294854599371483523846215002284007636466947371523358013845882140392165877571802749414504499850213205644327567530126435781848690218464821608792651269067498906941146810710491454289109345344821236132505930991315759664533258817998334930986870465492014843386550851595756723618643060027176341548824534070245134538457650005311434626135643028645805000506086285678607073252839313396347362756553412490682184461101904468504543995747623779263529502180140096722225176812042498922642607443557670223080235359660900314863683838402694811418202854845874370251253253852863412544375759392366115704355126669083911872178738636235787180290103788837489449071138648365719314726969016219747964581950428737973916769720702392525542936059584966624699387386208377297859745178227209589848416714757275772833544235232426568243716107061867143278127502877341779037406956725176516962267906584937448013759317957894110579382492155556740016159400965402053666216148767197994337630473789516412093046464071278498351926599724224091408311095836274643265683623602956133085177466544309291837130511397215978499925197997588790921367814483046510099508390166918993048601410995995084614354128882096884006067145076841748101195733820383701049643088341033612236737329709256023713344651389671798807694876705765299770668987118310889829061087781728247407340620947861811954159153340329854117587623384806872148834339247471886996139569652995727968153163381970087885818814254763608985317493166170177107151593438233447622140347465780662807928360689303488517504248136502591866611472482945260821298957122999688844503234209154746098540993491453670873581351421668350563
|
||||
|
||||
def test_exponentiation_52(self):
|
||||
assert exponentiation(baseNumber=826, power=657) == 285687401891268676775266138666449246412827350713138180653168641115219343060382630163786009494845150756987565776218862650027560728959228508901680483511669548913306447614500189294292170444206419339142190634387586836153082557895445776109614989134918407795643336060857233773265733087758783031184158187671138658816184242692427776734949805345477207041412127613253552627339521615212483610725406512640102509923345571844569930502670661315782281175030167045678184475505056544409583933318384144688612677302837164038617478523293599391952976976196857597089741958514223974818609870072135181948433998625591272539170476643648085679851328931520746160726146672887273337897698148674238752301313400059713582796274673175440536563797431565855074284228273906766570060806025423514799559447295248045592376728720613135251963691241882917672381346043466011770316921029959809498536595981747005861805407254988522545313897359559094905430477338189708087673969983899905242354077708955874735681241448129154806213441900414849973529485974944758875137126489263265481708130003228961484639923067385927258100235202836059050979004936402388980503330604301531314352542868831055723739398550730885215093128114969442054885398934402975491130725187005999719999234259775686595295604128791161008798727928816022499567783803826405239079644969842342558791451830612235362373715949586458637477791460049797458824986683073913184614302671643658332097418245055503576794806027432784067516808669850399616671490801202143982031239699332689559356880836608766599868875846870191421728524518728322533062827455118314098847243494483188074286416058395196464902374280056248455778817660411652023441904503568859799898011452660844433383162399020677853825713441167348953911522916687279088325185584629895533227773018337388056914294104817855519474994643083755841877951226801132588413654671964906008449173721630634299160467132733056467467153939041770681494985864495979668853140832584515270475776
|
||||
|
||||
def test_exponentiation_53(self):
|
||||
assert exponentiation(baseNumber=-532, power=281) == -9575659065052009013888921435408233725816237080635903025478496815130416722509513342906174715391630315002360779139339486865700060588422845015370746825342797554976097596182642093150070414751570984214317356138087048170360811518947126693861377145486878686004232470622580991792478957058628254450289300932679108568935382885332947862413224220491000002176304771157707373290838327731345603403177869197209260696546162631653168375604655737499981477070892099717080448378825225795652325871873025934611298969719273057815458439086991501346833393071625093043223789067362092783313703555333720471758811711119322124662828426123077879377757978659306540865082582729580505511147669375028467083918057374248033019946372702167612672170104691013411039967078141987010332618516245794323569836032
|
||||
|
||||
def test_exponentiation_54(self):
|
||||
assert exponentiation(baseNumber=-855, power=716) == 193971598760925704896131009284863961326616910109366982386781358134900929400206868172500499237918515011393415688946533028526070891769022091448152250589505156770314057592876573096485992747492147607184856275600132362310418878670230942585841301885856793253199373300993357314694470311565911482839588103101163306994956652723306468444611056335033358151191602612796911750197172759187529115155288860984902173958893802232673712733943663355059262206344763165386840941430206704900760266304859196173031941565127446820162447289642415698169014788423426113330043024855350740536173952295423393107145310377155999954670996703851020050299552043995108442270026741799781950283424911206592706799329137101948001745863184141798449097627330696566895662470234860963832291921617178738506507591346852334286668588251264674010489499849400500846219857202320501155489580335942758667358053379260028196356253384456970202942840477453043135693402973040936791876216454245915975700867882895844260441832987003409271824985669928065805875314404261685594455934007324508797342852378553336946458888796107761837796086145482005684889049166798017280647283188929044046428083063774283947779806360052254115231867519421402574529981053700762288000884325636443847541688837832759352221577115246151100391395922598524698451042625104445252190917965636190433696866434624073681460591604110601909921057831694251934986333850508021870561991368521363858399511040433012605224919546063946851559256909758206713984851542642111619489012125061971473455056082587252951190136084908166822870183176478340218263555761780162531900879695208442893002495795331658369647955488717885179415955806878388292060364674631833010979456080363529264447246917525089180101514195360673819508144488384776990247485989147213453539312322395317382619380253213935774593279308553755913273297494835379632538366205415538250649366485721040701521876400389838411963410601797476260656329298042321614457625605081919475603744953060271846348345055487191466519541082462700670491174295557354872571493469399549477913203788043481406717810133017295380076133376332637084219802370288476822679513134062290191650390625
|
||||
|
||||
def test_exponentiation_55(self):
|
||||
assert exponentiation(baseNumber=-775, power=442) == 117856219979427528686690599884896860027612644324694900269399189078458452129697124010444825403827465037983414337338966867964996779486770057871181798804947225262272650891342019563470084547078392891922723597209706145987113421545278622267804288069530157531430109842996496911013113330009565356194236885747350105780707177885734294901684574141264561981829800942755755030852462596620294889723648686800661982622110727773068737917457361492980850332055655882224680085350539748963182904065179489276050015160318011425534127983398473081324148122697318496063259934359053029887205354809944828012312852963919076220100869298747898900213247363799735414399441925054585430738418829379335679383555800444222498125448557092536194777980134623814510241492830397852796831967647904832317569720385753226202663431083588901129175473000641755233393073105755453025640338457127529631437668412249570689862853305542944823392361193152730244220618546369757796031490600699093743532851230100552708907713204784359722914137611328844302486552759174429966523395580510585066768031985141491015848004880006100498391046913823877207539159512288949227246095038582021563823464703757233503313683216535021856168483696383971073450536565337328838104493088535710808958392217744286156744576627743159580319343149312771856784820556640625
|
||||
|
||||
def test_exponentiation_56(self):
|
||||
assert exponentiation(baseNumber=624, power=393) == 3217686624385031805096213962380017135496000890793915831263858584452043786732782084355536678123928266526550050361008041793908000999768273265690243305628355537064354703765156229989926672858433512675053629476234251759821213785053172698518996214773258238004152899163992047977783006286557192273386136509753130764857996088725105019691218736742583539419478301051171312345520915189098501091343386832880759812796389242315384953673902286411201424801328291638128950641547454720980151910702887435186634696945248785225160856711894062750018569506307476856465820094768525464969909184106519533549124094654873345095140576912753021867158001567810080681656189348490065040245798252205806587104344166796870323540740130074376969708182042844328109040592268107683348189492182740044494804529026505369377402163750966850771913324199276175812953163361984726087171654506565514705066115694750699201944106476760302229141679489089572715443976387927744995531076423705535388601792603704539152055536405506393542800460492983610732791128769691478691262090182563809595781571883710991300422888952630140222613347483011007348099168153370624
|
||||
|
||||
def test_exponentiation_57(self):
|
||||
assert exponentiation(baseNumber=-632, power=543) == -615706172340360503298628436199043773152318925794332207199340550290720744860132116730520813411482744589716965390624381050069574767918051330506382202883339273032276764664559794598310330933465235045917898561746833996535242635824820240013827397548254992838462644810691291715555619891812405819804271399071541412426082645602456311570522412173223482721524020663880320459866514476596155283702317178153950649760014898192841786587035626252486742104710683440916618445559372515867184418728247363548037576008683034803507550506588773802269523109652409071629960979642215440255679924553713170230386687830331139503210108477963600172981377923113206945082523436717030289349449551950410955322146365209137153097604916387321418374251020209817191412240268752960557506441061868109603639942166601481141880061463499394860365106268311629517763392172148241838694146634520311609211106215659110591678205993194516958622888191208974981674901523575263923020185047014541291232068467422374575691314473130621652444329854862480024172138280627817737189441872289979936291765642670567477289230106278104653040682341371813459709145967005722197895618447635690619205434934584749367665978729900543545573210740665281899574140127516427017898446461616796616850364700294462433075233104284709873749474333242700875429960577098357769049338214781557172656833852012902953559609316156111419772290792792173489599271739274952238271014932248815438432422557102334151659025438331102306690868367292391996861527879016344744625924768751489561276535009507197470299842306492326077267968
|
||||
|
||||
def test_exponentiation_58(self):
|
||||
assert exponentiation(baseNumber=219, power=203) == 12887103383353510061631987313781142115868002105522197399439675581084682669039928586047564678404070345567561065357840456090909720769573194420754362236503009478987252647047645928979737430742803586666723489484227928342852994564829725986327872579480204105832230014691975732277136338751179822477369411986819225738499249101670860224628898908292003501425443357634411942601336376642712365791748471384887262437241972697744829453856003936778673407231692785648520245130607828015735947459
|
||||
|
||||
def test_exponentiation_59(self):
|
||||
assert exponentiation(baseNumber=283, power=481) == 2038334649987857650034097007068017350156634391237182527051693838810978054809785190904072201928883515819391335988524453220638523119724975813427135615909974356843136171882630009939064145634319022627389210401606915774354670292991824066010482087925726978202808209488914839942132951491803349759788801318451002654912231324323659902847753969983859800096722709139210597289415024433224987206275970209492644794825743075950118896439810848927088395907481938019636333708809599157915360796901543186571725424623333758080821700476655081061703314942373345188575113917564800659195250434059263201726397499118047409778230432787710267990103509314992742009301236656306474255178944366725437097388661340031787308361965646367048167139568884386802005970838379666966368472426956961294322723761762320644483097491384867797974227591274567725883301568681002452702531038517627084680801319718383394504378426456995802600270035767284782987386840735109910802589225664666984535420146750539638162899781328384571953838251536183447006792959158122400761729761337981148830632642202868209111444855970325832259119681479135311655735300294567594802075363334398031913853433673733727055653676198366719690662659449659950861091483
|
||||
|
||||
def test_exponentiation_60(self):
|
||||
assert exponentiation(baseNumber=335, power=387) == 155718540032792629487465966459811364932391880607092226838673622292721848445847583930441472295366576606095755288790258398229401994997105571320852285080469472334509107930033881860464098707141858180035311321772415731064267036248694566313631398894239175779469532986671041606560210787080285415846596940141362886739135554935185556545749837072586118597166451715310281065078749255420460375242654008960372394939064805419038029390812558919450833764608098906663345171405634877002523761192959605016955227768707529658568136838180407698198690987842895800240480739734943460339040951829154651515397002948310655747732586979610656801833133122060534878395739541362172072348856878038996188160417548906617269636367380570455139587569347798956123528459786208874061924594500019731269257756676297333948280901816514882415777719727150255269798175611135149059206020031325000035056276793516108186087266198571484185614913900565889703863511560562371851185171249811411108010528181466725072823464870452880859375
|
||||
|
||||
def test_exponentiation_61(self):
|
||||
assert exponentiation(baseNumber=-501, power=832) == 184072080725118364185409567555689926927194397984288483877344843537424129005379854592546869693005563275605640838355495773391312998074856162872558395231375802302235379843638855574032098493671563413039106195218462389956332532121688975279382754057563822618989750015056976652213010814302793733721770094469676077987804083954562708113637178807503978677933854507182210880567053156494872025328469839883725662090572519434228133142966215452640925810808610377651234448602521336667421623501852826498789341748594398555182373898065801935027003667733950219104944193654632900318639640462787479148135227260608172784590086499398434999452293472330720035260810523290611021516501695460726229309200320665099042813066266640036731323744214606221439283725557237249087997432526667277767761705427677621382718075769565444009211828394515563690722777582685555970245324200103156845502992556277061297432143121672048009372124149463404931065837376670011259971156957710150141508880457047559002707954099649215877517630616469541451536424761289614940824963821026288983638093226157082307303519952697932830933606927703320746216257019590398414873747600960719930878519940983695671547125153076326266887207482690666480441970348002301152248294583661803234758235326264898423109395736909281158178362825555095967522867382521360949062611448232382796351457979687648005852414401146580268916689079693992285349977930739724649351463271054236656821667162938681427821735736174927182396858630525081465932929430387862791231656829859626519274961303069628608140364056193619099755550776789910870811421407792104895561285301603736480661504186715848644468628450752457767703923704468494600298915375474807178161941287237872419678595060717305623405614591994517138846447557682738202670424546502904414698782627895759003786075375397162403918096295429350675221233868006365040126218770993249803261897162294611679328248635804643245533395593909743424406176340832820048266885110320572013075402449485743790594536456965615533700741923645897290493254161477700488360246956161950773287307077969375347849463865634269749390501364233905563104158684250537672221236129567609779920881817838206813315753841539098847747154269042588576036961373892554011355093544555601795076542026261828342726767386760802547801500263648279990406424416001
|
||||
|
||||
def test_exponentiation_62(self):
|
||||
assert exponentiation(baseNumber=315, power=680) == 7098663291650874813925368114236367387142758341019962019622413947150830872075478804845890414966745363509961924145533483142793297952696414715598599158295424258565974521295875858914994383154466952349670898092236123332583683068017971883082048701603981201400118430973260885359108460952460935301076844233582705488889793957274699911232041866409704014922395644242872493534631861300366590628358888064088630585120586034813754952523787609756608859651401172408322732277885199642150856484548933128276476226845926182319802226202439306683524182521742088313290895227382983206233184830291839650918347172994435328275014493053842609964258998835377639701662927085460446149542575801091634922213554272930201076107736646177004164670695277149742228907936852236137790940803743984028974933512629979327273304046638739518728587368399654805705636327795526929293188123747746953710120578569492444801133594210859706385560296715833880455680236878159382494724623979112245779004911742511925712016834739450177980177008615612111279650750616695689780287144120179659440376010397611616238432743913276308811457793422261675864546253708363367512066584292567858332957196227313261582942050715896623197972628688973455140839608282778811701916074379910537852718894044486765635141362224412043802174149296674056712078256072118944957889820863783589065145237932841876095623630113797502014613168562642312590986622361090308375783032678827725448090786441600571795217393171140121256831266057775695622953598088384363109382562862578998505680342255325342333052623788754638506033134755383523117370601966769332173691955602227988706098042845107624972498434908540814396289791458217306827231235322970448795515554288090690794599257884556209319271147251129150390625
|
||||
|
||||
def test_exponentiation_63(self):
|
||||
assert exponentiation(baseNumber=667, power=310) == 301306509326954430914572072686231351898473562862374270809361366818074167513655767546026986009566896145795920180764177932491196116392491749710094901967974968875178495431893781328912851534116599812719037169061616887400952288435309449871502781516341788900550166856471145541106972790934421015847864910180171524341358049080955520560354078610339471406024571988386129391734746675368869267219164742867786539038092970072095532447327232996744065780012557471815094055066353089207587502421674800642294239184328318167189310088196174679201564614159656319290028602800969274697582699988740368551869641258488163817739509836153778734065843462440018405579807569301013994221397338179961113413007243974573814614017978647567257422798832279900138134453909227942936743434355742876314294218411600945994172055650145279868088556857753414009656974326466188039978322370794937045799736937338565209460909449
|
||||
|
||||
def test_exponentiation_64(self):
|
||||
assert exponentiation(baseNumber=-139, power=461) == -8507910588092590767505578598318322986230259217254632192707505136985232460927180601744055330266852317150951320806468871728811794915686061239602403060667011310286008707711177618163874029014695674980551032657592193849031288679171321536673779521595938936643574595640142123812706645395115331843940832861537419938596390670619600558422740876907319135593195933268512225209000928696356755177785823211141765762264978697244214666797619778791664645430232033818429855639040223465390808414917179225144690062368529443875170373054980681967279793266795732254701442870035926918976984844185663857577759618440314548892024915894903264232718176742364807743954414620531312918277263844561377923434869584702115850304503311840094002385853286126028821326401667326196384434289543860637526117877826192982065540365828069898908464959717540006537561082028047025553825571191296374077777851938888390021083613280714153782990338794083526733577695284468163992101665096886143743517922964125109619959256452631127973292232836539
|
||||
|
||||
def test_exponentiation_65(self):
|
||||
assert exponentiation(baseNumber=561, power=154) == 2189175773847623949875737768121449502366992231170559347171982728078246231346658187593470143280905721477943542491538330913028755459157690977305529673383840236597294079496371202584251099218306687823265874322770435836408299386127752893692268349182041833122776869677107016135631239050984386293487736927675393125437863473920108254583081827318681251581192984906141798216951705773995927869265851358766298538290971452618491580431841
|
||||
|
||||
def test_exponentiation_66(self):
|
||||
assert exponentiation(baseNumber=-262, power=731) == -6001280894634927558604214678741694557180555548729684627643582198963232581741798985644184773356904754157086936889478157184348636299657731061454633724923838681182497550839072212921411293361019287231053045823979491020339403337673062532392972943781214642837712489179897465893339441440274938476325919411522745993569810664566709861968897125274775932031276868747866879902372224581867672279478586059907888450111768732785343912014795550060265816348349272720327177644211788781333878686609376220627461024926832206116965937064075884214446284605030544692507033828325920047165329070301000861020111526358360474460802829099469739066171610178267723694137723818367291842585530664398959125837591671135451442147127197749911693491285513797982664276179777716432238755262304308208817966645431644742727850835650071035579930591666640400370845518421913979199893104359312706108096695752621173710691015379085817901568929662692223075585262150545529679087087640778477058199051349397512291423128805955518178061598849733838752220954372612304856038589185337985371596316304582317482949360633870573485214044485911448792516094499290147960826618666135845972516523375224336836039910480367629538491050754081390808084622506043331128361761258416975094590685569006219461996764292326559797551784178409812953098896456656254731653920180056747331685621604698535100467345545349872693724410139430419402146208619553175710216956150159923931140092458916150834499456259828027164423761688201244731111185863681013696455853281357792643644038668841389258295169032881222802158869199582476900746632088951601548866399621697778735327924366586479579662507295852010340650105821640934111365116786428990789111201895015386654572769742138327564410990749702242025381275059298187251577795408670855080488909266144524746978050973355737088
|
||||
|
||||
def test_exponentiation_67(self):
|
||||
assert exponentiation(baseNumber=414, power=598) == 92513261133166175207470232776125396422351749678997580741691788686951894639398353285801700693881573870468304654256429699066138930139481910661473452147969988998229777745841895192334814732307120266364129704389436677528919743101401738272053937783621785820740561224531170841255636188693524816917299683390380701298739420225074515502344738644895134456364692605919499496338727079751173769451429823979950431438498465703165067246535069908788200893112331669051030162821422024973581532640471858131707743088644963779999552680127685876256861955329625244392071443233910446626660601894520370929861223767780802146952203317193179330596280165804776123044076411602755842562511629637148132922431893214624570708724893402032759724379092925391578248616555709104135273749655252106330373488283624776690180118392954118011634811456235193236726952424013054349092121537645665430811809415572568624192692056651619733478681639318962500804535251599839233241834139085739613954424188075542480965475507927071508432927074298604329229057977362630808819379966615340812526488683206141887847538180862601530833645335380990318422564202399875209237817889808281237157888840138044511523254013586232870029625864057928089420481102628579971119135982908463913174539496558232903175066682601384565133895850454145113948461003103644446574895472710480561162290408973622082291182201361171845494402547062606014100757355862154846405550551776208190364916868095906408035438904005684988782280884263290184625054448142275901685498775016176530051967845067908013570229595658756441881530436395235561809150874999224073138757231968256
|
||||
|
||||
def test_exponentiation_68(self):
|
||||
assert exponentiation(baseNumber=668, power=29) == 8289291491421172112314437114710960258570903414997531890462845960612862698578771968
|
||||
|
||||
def test_exponentiation_69(self):
|
||||
assert exponentiation(baseNumber=343, power=399) == 3822556357095429459070273228318371440503984988952291646638377825889783784376748132964142123225653468334620699769940528317061420214155249764360829407965140605710662049234446463143086344360612245079141639650835287556139388958371677303213987039725703281168535329679637111458278710498742920124801575593220571937696604304933155938021602558538783092909976588120052309592589637798240369507175589110558235783943840671638810901924373872213799542182070560294996978531650889223845117586120067286637332372525566405332075353047804112060791941753230758833716710443855440150994636738264746609230701453808816356796572149229351278755379892805007425614424994222086129854511014548720588700898285406525232953114788702581548818780736368843202108507668226646798450098033407340811126094023728537384449747299373496346261847096112852064726364130405339961571261470974929300732763318453143222991069696635374849167946261582751878115788757415081724424309260945340088842429849387586563558270956121049291529332318265180870779438751165133343207
|
||||
|
||||
def test_exponentiation_70(self):
|
||||
assert exponentiation(baseNumber=-85, power=101) == -743552258559232021944926717909798145321919711344312716953403081986203388074302079356321004847770849617670503709319511193717556367675405331220356900705161125320064030574940261431038379669189453125
|
||||
|
||||
def test_exponentiation_71(self):
|
||||
assert exponentiation(baseNumber=193, power=310) == 3332466500743490733497328972108508002286854497919213607702462036762830747382138631726265644953310781911634260858570110992799999409044013145486363585295374992157518206629345715124351220882333112328701302087888339750029951494904747512512793202204469076991584953725412334894968817788176720042275937446881440649895119549750057874090779487068188813221779951972490550162541097911091531889637520027609707521595843679470350305471048289645982874351017078773513341112256871934736919506870430871225217545264267405746874677160647284908537800043206698902709830969150229047509022467204523399712458513788826288055479200715817710888703777023668025720030326428099950974902067542771530606289372338318727840118827550698275461249
|
||||
|
||||
def test_exponentiation_72(self):
|
||||
assert exponentiation(baseNumber=-971, power=829) == -25394612703607086378396355743513262454589765643952304404956636839276019133717454118741231303802338304852076795244975997664600331717988884627638224763140721912286871917281934560980927627647469141176606508816674172818534633674416509124491181143892084742468246978989740589128338635112038779685919941486192852143124222200015897068830067615087839705508437524931794403423291651123710934816196620383601806827770948171672505533427861443304508865283669232003865823535060481472038449461332791756432939720000709545652924799199758997921140477468452636145810425207917610872584529383776113161185237936397582349145515140573307068100166181381798261943832282682227479232678979056305440599289889209906300662229353949515106609978675096543191726888177201612218491646468716207378200400143358973616779989861475477924400838852407286801188750468064076503813913147615349316405391045010536947490166109076897307594470210623809284705653891970491440971091416328402835854300937371527869424134833863361091312988387691098228023665791507478167629693378589510868879228567396844355032859538785528758140648597900172887233949662015731019096461642957565550261727854541050657804440828221901895638454849022763113138858541492057280574391681544210498435673934247319254679752132740483605381815116043258989606519586017135379521083045519252735040353925670405252677090557841806498678995325683232984725058677636352901264765524436502397188954646241947545850448602110130526905018997660027633991305819983930611520743535986250712201801126843462572874083670072409769629053104263087867154607069261327771510661400161366794264307210220913784796559424415114257245459964436924727151166495848382786460366984065981446194384422891105972383809750124283337676977087133702181833696424375078015799715124004581351806555622094586716493186683396213256086021764446830235155835799446429953194620887778924953816044633989180585383609596199627922224414592345686303821399136269273116841165708725944463122964435664500364405382983419455411711425520095480133345385621709041091133463865974488557900566411362377353117709050908966002105941320602618698774375805364366420513718849328178245690856365387764501525895538714112458232346487738338306109109924860098063979536031285938991388818390310235690575334882725215410841890780881066244043853288442065123052384971389215709283946495743346808243758466125226489641524350385426381307146111737469694414645797843870412672779490518968254713451734120029681688020980128401525925751383055495695749944973312676587142681531
|
||||
|
||||
def test_exponentiation_73(self):
|
||||
assert exponentiation(baseNumber=512, power=242) == 43987629270976192804720956764739207515480105439817004655235147967295953568162886779827098162454047482691660747870697989382781530581720447296335201422282145634202992949289982226562383591803617067913023681201976824253305774576152308243471438715414292541854758304065748758072747197735554301604120843502707380978626335644536313575505687510559646628190172281581859951368681851197375070101572860766439096292761143226936069561083241030790818984022045538361433128972674821990114701459308805992311954855629210784283116085139654341603026891007574573225990517514572825293242232756992287326871233439822121795945927546997264701425697502911494388693865110911441430380544
|
||||
|
||||
def test_exponentiation_74(self):
|
||||
assert exponentiation(baseNumber=620, power=521) == 685599083869393607340519790994861228026276197437250423016498934752428285796203277924369723048898717019098041380668015016782986779999969510716649625516448120831581397620122229974568436961031866569871613203717371175606361002396849100199561626817837076020302201156066167207702534880240100929712869346263988020879804780788389636165671968642632024306352875308457700270159500123537535927469027909309710049494720208434640089674021023680832285110608617104248348105937920407044250537761613009490820733665687207566178656246699024555567023504637603563323079792724680669594821311467662782835858073049376458079568544866061458192431911619776564652478926028753543717680129215962320386363125036294990576434256720151004515324243183362705320100089843960067454339571981526395854405352565418519870856877581388374824152007984459171613169553946100362757436634913692548947210915971322453180468243291480684509248768824096736826156645150830599852190126519091200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
|
||||
|
||||
def test_exponentiation_75(self):
|
||||
assert exponentiation(baseNumber=-667, power=731) == -2728880971487508425610351132284894687506962757271897610469508797630067941448807421842714709751421437286205081337656100029752870829166277140880147402579394998577142793128743201663332125231357406873077449714161918932082214200691178519564542873186715302923312699222066756228546233539633440765757282384009081908482720401358998557158765057181897323757486847894360487640939965158227228255372048826228802935910860500741887815317675434796468586465740110444644976155707982116854312811577393697217698647035259779860736979996674769431958156927820618800288890781565331766196041688105506599025526686898056777061074957944177636064883021129800432638522449954693248052905261051276634761387098396210654892559507694638887857965479113597270359181646796729225993843615990280879070159552127577247810835192193403060582842890601623007037524694104769194633696402283686181619027105999940492240818976028025194620547169679064619650742309205374232705708421927119925069900916821000084703952649966967080294547775461109251230707159163954362674397873174187323262298779223885901703976163210893835131991703622249584628138684945555543302708915938469498588793278710925332730434771665238303175029011245998169744834349868499689018884191339425929918604973950376550454530520762583785445810827877344851879585858442316430245984211745456635386047658351411151084156920297397265675878650064240989179652831945914684362656510357820461583286528811344603060132263603292822136438569318476720215264343832642319014426687975000508909249139103278449344787857470346866828104914466565721067282189592834161915454915888900523142028208497597388771274918103210466081188934081858885497801274519483010374691260937239139610273267291833743262969418639728565471857502962581858920757753556525192370538912445366762062485376495933087021916577047133904472744792237898079460946388353186603514732772610555365013155606838184273043364095434705285685000003745954518910485398479470532444132451785250816512339535093304008528677037212706892237329042558959950742291611690112942978882469646946527461551696805736021983176065447391529678358633283
|
||||
|
||||
def test_exponentiation_76(self):
|
||||
assert exponentiation(baseNumber=464, power=765) == 769582395495704755449785058069084037525126599162379272994478602054996391977145653499232563885803774784930792321446106536621300273351852562354642418407846232490825130041950067308875043558363404563624785195028876807370725355564489825655492317092313732563656428161715062402678177643677047772954347739673326874444866666866013552680014321253980561740408397324767172762254570336558922107003401523327397319790213573492151914537685437250512646486302931017438659302701755499796606158763888005538517703675022436768144593098474236398485501575185317453322484557680090836628463827216205333121078594086951434790128488487709577596893391106057639248680655433095676453439104482502150369555410422408631927830738441736312780180428930360430394107984960191687813966891006375754199502569087896863659648015491105769702681834429808356487454955636155167960447725992840473598421760342674852643191739843403358225325497599950483422911393137091000466804715998656351498775952763599690523515367034533655461780383348591912295749347005142038214938183383328048140898112498419932835586629343536674427529803686120887066522732074590955013454080492537574529686113217318735509786307658769674628118454565514351377982776182177422020835232529479560948820476258120179220885257579605061557305564789815948606730239772834990066763229657092735639664585742303636704217599866603152429014576521999484583471059208034775949028064727802328074245723538192634341828697046370287632350665517152078419085153419034478360027383234078799126687191863061085096655828896212023671814992909552383959580345088517134739666396078738972588455487982701600830866123720126276220820168217723242144351152206344130748167220777920263825475408163693440303594122835610441568497314313823261407943152026264046500675791510726349447471824479004792681588577274889224472412918492672653103598503935019068952710870592668234021795366827697639999877123407903919432955104535524001709637974037935156109726772205180663084025459512489764808896663183995519403790017804737533138585906841383569539139663252243667038368726292029163700224
|
||||
|
||||
def test_exponentiation_77(self):
|
||||
assert exponentiation(baseNumber=-228, power=165) == -114617189513482501831307797108327834853983979142214669840709897942609567975614029732090075550419784532108347969307017944765315336135197241834110675329256622501296253057089864200383401104964910670824086580921695984767755278176437375544880471358288338904275686233565123269170549317665798617111109563719630740970989581617820949760917569406324188591511471143708664397740960996494251361952595968
|
||||
|
||||
def test_exponentiation_78(self):
|
||||
assert exponentiation(baseNumber=-340, power=263) == -601111701359150293039287200248650729119366388267718032869923625237419542028703760330307116584980809264160197647552343899087163168822021657082265578430866553324797360530757723851697684692200297136915963155838285510510191597282264496115744402313406867492092856395811580495096993365431461418792120592414893273965554685756611509057618674005198927798501688103100063461307790440839809974525685024790843647590400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
|
||||
|
||||
def test_exponentiation_79(self):
|
||||
assert exponentiation(baseNumber=-889, power=209) == -20915489964163985191957969278323409103528088187075171158939032424182948080933157750181650351367484338439682370027000567821607950890416735649143863029654447846696149520912881015939651938860598978078424278340027175041380075010759249701611026703323880157743028979214630356711798533701856037890323433726344577392713461016559727775942762383000359595631383687624178547286852244572407473008495708116142860990081563137127198730842895582774007206957479499761152289438396184772084392361270383569423059392306706019739123449864769443909346476274695094642854914700222018693154245933832048381253128826707421987399033487531883036409
|
||||
|
||||
def test_exponentiation_80(self):
|
||||
assert exponentiation(baseNumber=-623, power=62) == 181242019576065543112896560801818294857629330278104288646492994127003056413451733902280488791183657993261761372541479551887776574295872241139256597773327618765416066787138529
|
||||
|
||||
def test_exponentiation_81(self):
|
||||
assert exponentiation(baseNumber=712, power=557) == 67819792350568441134597116016535567923448806935762080158602125785572908764421725501297941680823206294876359326052665384255991581016811831404047042459904014607684081055550686421365093989332921390868638506891527165989274665467600848514834561846538957017342107987341048944818020660451217732278229180239640466763482376124516310144785936509438730338988469243924493642290420255883763753556858052522171324088669600890640801271943949375365406145800765387874175177373418756394747426919814187712437386015769153982245091236376698363119202389579603236022364526731974024508077445873021462753504507770210936845039821826244233512368219043499077845629980465036262651754381125030625821675899355712110191300543872630974629172355263813180601890327485442964247561626860315532938460880323819425569343964741678006838078310502471026151778888961132185490422055647442457849916254540311214506937758796478083635986886728437985780690329794899086106979236517859626929012801123258059903656293573902598630436303368079150521730354436936823909815609266683500320249946557013498032899215126766491271098282179544358278814968867377225257496055513720084810213339375500285788610522133367549476565950514811092301660674725511888882852230765215502690788480227213160189791466710286932297856815207381628867652791879249185579826557848330857621696227622900991999799256077537646599159559602698837189052104128877085700948603630679078786286406248217633764795560812552543579315787568454881407461511441803440749479455259787030014327959282007039959173314906618378987672685854888068027863140729728893767527688651580442158912072874075558510592
|
||||
|
||||
def test_exponentiation_82(self):
|
||||
assert exponentiation(baseNumber=687, power=263) == 131710939213783671080843269624861811048516337094671852687549993880064764991235747475659885888191796303103337175662948796352619637895958771104333216752758928331911839358293217781376814927321101927659237460878309197218921299187524484436324272174886013547808706472456083968294160406586615202076093033624265846635752044793583156841417605457579860253895394190131139651854522092313479095825310572097904987383014715880808055555833196344312428799554274141509643240464667099998688476320508980109846244337194441700182988173401534884575855225005124705401095050858804200159811300916656361920542629877496015010941756463883463208037474255646285153571394799427755740958017162795579930500471132592538386274230252847883631227966457474845085254699484272330942653903
|
||||
|
||||
def test_exponentiation_83(self):
|
||||
assert exponentiation(baseNumber=-328, power=5) == -3796375994368
|
||||
|
||||
def test_exponentiation_84(self):
|
||||
assert exponentiation(baseNumber=982, power=927) == 48679844077037293532021260477278304651521204461084163393121531933414746717551790415723275926912444202374629426099329956056560093854615929805935274281893646584381100845593845500150514017545272216896840601128610388186477351460869514526744197940573889867792007582190516646012638585319820096886988256945213667063900868676563095816357642791024031383839984614213481421529391169485013813886556043277928198401508480456815918395357113598826902569370584499475775098839811800005402407139922703641751300379183730843734745859505317645801467122092124984060372006201173699579684091096728325639994185835242644964863550837579181858238040224176905335873611823438573435563330721261290125074658282830258649427718042434002111825809233276189703686117270064442848767518909514583855165953976493319124636660170185052237445701429173257083272341122602645165759855563801802808488962138331901841887474978492384736723820990053188470656324056238405983649201730297250917816171406346060736690096146275252875981673392202548945172156757464232751481923096840855580907628472895998304481389059282800439510399972376768030358429004283672406109559476933458656921588225622294956738759800874904089648424648389351369604655905367590590885656209604951915647118109275731313473196121549098712382594909296070218322369501181515371423965379219422353372827197787070628846960826177958864112577737537691180186165671536354575953050271146747454043983114633852845417006529481155732261984186638972012449917875192448575703030571835495849707822822803350733294475119333756594378354637777565000321432680996616957023094512256072625822217001280653134781453892867178705007210350885921142899360859876838106222824736597096559846501343762989286301174473577922728693260682443112606040097909391649099237094298558131437779453442281466541741735766063363587322976479582419267744013338516151142470378713763481769093272954246881769022003359356299972172826940074859761161337786357342217535135438882969884493951722964948600390887131568946459518748010340922863711261746273769861123018060646610052088080188100062760580355005167371096794695205250858521569219872122324995063589051571189448192987526727678823858097528729707263596300697683592343206248022860648878480068088794817300159065137431301315284052513131084364747872956386567821140314328351527070625692453675541006125164152867966512919766612069250742777405853729635293783239125331866902739766069458215837543523169315779012811393578312107395065518613990174102197533128665124134217866382642627392243902179915920892696180049120139625714632636192690924109115208178516620026673464525756962351697236750687779032233641905915421690951616469636582074642606247877128820080449678142695445368872626931889871430692182198079240708939213950208837799954041998769259983458948893291825194446478804682576649557238611968
|
||||
|
||||
def test_exponentiation_85(self):
|
||||
assert exponentiation(baseNumber=-802, power=494) == 4593438777630275803684817569240566401729885415707187627939132302444503631348477031856828227788263343814145074552447786347910824698615666343977997329662945506550836157930696147556881811029928819070176008096867578292284116475973189197262703725166756141601519934380821706750118842360104497316643139014959316164854450944525038245240843727314300803727732951694225297386693385126292224286997433681322730348825821980325424312000966308234257682396858100681973402372679622043931870009745758151724527630283395990573268769664284203593454880151199823820084247401927534091898406172868811512839073908314103806778021210216876948012142962801610335667696768958871598534276398877711586413324616926006386779710677650404692272447879014202332964269524153102071768841935960241124311417546347455712802313103993460532969348643409534021984475461621898219341754348545594463069216854167897128188101074253043771326297616180574922097396293205252871364661749195443497409933246029489862373585903612714369612072128163140667532712976391660234452034462006751282368625194649979038011719239278918280783974426482631006177829407956678829295591482153318742611104365807736393542316090322143166045870883034618294424322524413178542128866416044328077149352306908784322140838213927573011326986825459601317261773224919242278783050833434118368639607327975405602050641991285973503530762470751585542718483922622217869857784609299828422351966507182612485399223454243774767635296681984
|
||||
|
||||
def test_exponentiation_86(self):
|
||||
assert exponentiation(baseNumber=440, power=633) == 202089717015539299228629374806290623874726290850110994176623004503488829203495331764111286810028396312461677491873724660983569265222216392532476591643911543678403687773151747369414985106333914755070255796402807736835145874952314407573381196383551956724941463158383245080608517229278360758642328759587412397735788441324120940010655280630298341342082286197341315464671069503653636733963850910429432060720212367969849687086656571684735506550217567446908189417806859029762921200620553477921877882954981110002620923515659361208828659407572864616260130000972653984178896030692020874932240968072705493550360591053917709465737802835864912411572618740450558990399942796158323191648140409204158755836197815411193837243928413153958983032519885350377465159567296484806948300261740147270623882253829327578156371500106139866798195600688125187257281691797560809906305298838583781858930989935071863011819254682454967236492725190644279472358562142808057857901311075460673641987891907490133077804451893054846650170982787885551460003861998635874131327827574784000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
|
||||
|
||||
def test_exponentiation_87(self):
|
||||
assert exponentiation(baseNumber=-784, power=41) == -46447096445677204636932178862077156290196347896695829450534699822902104607661940469642972702901289150901881219196125184
|
||||
|
||||
def test_exponentiation_88(self):
|
||||
assert exponentiation(baseNumber=-13, power=992) == 10759831948236152858622999010840476465702987922773005230792202784317837858108523156040153138973075579138837801680397477122491190681221551885274371896605800217066096807059353616610715815623849587853055475277221798693277469249239470670771039672840584806923090075424986604092363124151631794023834930290204117750026551424443117484182536193013624189367615898698877404146524908681624585326838119632767011526645255724979924345352097883785708657519654152355419959245781931273310544127444367438948131873680713628686974163090686651047256143627960221918467694291869680876613885888857103306706354970303255093432449489328555270867217500748713665332981591946426919413745980413256642384732569828131963759361345963821636122873538750939546692384622885293634222770103428233368410753414519714205070880477906828644506157827312606339195686054986263620967456737521168544517310938610662180416228682676132232963179718393134000224938685273303107231158594982634044148683880475830642500805213808639442035345064533445205660413335876711463752591153930070942595657686349929312775363843617006503061650957453689570648946957235386261239681
|
||||
|
||||
def test_exponentiation_89(self):
|
||||
assert exponentiation(baseNumber=442, power=832) == 98023024478949477550260710183271788163183980987434146522395132673857931851781712136760005478273024785495697058580712787877898745920505579075662899142917564632822665592035749920084710081668223160200748128885396088235428318618897589379949920382675284005501842339164384762298982114839240075484169890931707368800967662371047654711293583614298427332458431006711813911764114100672886136833624038242684804805178585227315156101597017060837027639177672968405294293668680061120759184236151916678235096663731409505400799856433905268942281990887687005517539503580704036010844713155542779832953901816105711624703209205315744139008714849126671972610700555623438903481263849074478225117782370877953774601542263466444200997038389620726497273673327301011361127298976997929892861414250308387040016038855808990804172370869820216751291730311424354723113526189839695844946123740938021676534099354242381676449660473934340219233806243803635917001856000563886653897332703601544260012140498031577197743348918891576841374077163313929279838669175443185320409512327288247159413636599666656349110524234666320226822304071570320231931028352329916836004521251442203382856498850458792049092962438316658407159712388916660598939110002217621241942569359847790013930260267179278416475625821947519930860114536303310800268967952969977345255689554349336800928040712669496706796116959906205721423632787653739994774114728215015823409444468961120728995437817059291292438737221362291540357954561358056027088762497683143992436921725952350362898507034677588137853153373884008568932068200630500273041866804560374754406700988319535121292305046561824238020329588377342782680657312782736118447526873576956033832585059241053703081252875587926163577422748985393956650775845277631090759452565942869501536058476026157527770726434585373458991344476684876754084467772844002005015300175104645528382613889877591119610802434067791237695891572176861980028355456568351360804635367013751339066076528806760202664495617540586005316407777138767508409330083406005042925453305896213327962631044856357624696633040987178599723878476197490889851522395923817714206532051117547368123136033812796398777777801788056126189036539463880135638346094631860952970964738043633729536
|
||||
|
||||
def test_exponentiation_90(self):
|
||||
assert exponentiation(baseNumber=986, power=846) == 6604957694658716186652079073543192791347626608693373249324438540124350903514915881791866926490268856366302977510383270961201658689779307543191205871011653013680899400609718026901085085263233519964753857090149394279817426096463892531297019757013973040767551811157855220106951785427646315061560118493041132768846940720383644994990177581554566435430018007831619499851535172701099277279478253788417955185104672265315164205169865968780813452558199771253539229049674387757853060153614368055987867455646637359768919306985078967545541217888156326554189405489103312942062534266576655632788245727214744132957665875430104855532239155374948795724176097452265816758238862545940616256938740584707802403079385506201438844025486865901177929857710600603115856278405095257430500922140825395017043972809460907121751693755063010743017565006552555975687803889147384505884366885056287853519254274847018337022172573786007024058899736214436031352081233673806056017780605114512792942050558802255626671311025636879224230815263058815658069023593893011343085958633536574264163782456775252034873181862727411464273667616308496107717824801699593041624265681180038202161042397309105860368468719374392856633572547920792359840068110964824952996199301212940425228723937221458062405207470359326516471751574868885511299252587839210649024582133288913360793227945718559271676679633630421538845425197665432687309635193017001168141094343782598775136451011173553955742473350626890616622545031445116712930181172843724116551129869807375837551989639841074801198100570207195576907723979986746254378915461704506647685962369629935428314542438929410196553653548059187299606163938257027625039220296822745674369406028492641505012872637220755635194838669202515218408846549722413740334133076218705535204179552684452132297071114704656088705064340800069089228036598804002551992400752206183299715255809573489301635233266621781139966440061097540005014814156623883045201789470745780305933930214232435637157484048269396079208847560558845097546791050252566977757769484580873336066650494539531186430867492931973531153000814181412468911279677438337121585681927196927372694610324366501329480738478719902991840378653198357712822365365844619575467677076374107532629297068643881831781434053282418229076971139251601113367806575070128470195004202275765264648043059105066271268265063474742108991335112063089339736370346246914538835684710932525346003114517444946960930340771200405267018226689988886606013462348192625374693584581212652543499847742577608844953443420163880290532264319783778560223463079936
|
||||
|
||||
def test_exponentiation_91(self):
|
||||
assert exponentiation(baseNumber=-742, power=531) == -1529233147471673196309507114675390321056153861297056354297792695127927496051162319411897032122203172971067134112167770501812867301871315118518582932448538702211581251082890887562367699732671568190161267893613316134597466734737320769540916599240058307777168010384596591980677848362375899432699841604334812615609427955665441121405000256821161258759716679505491971986083360329840522275719832688219349405849946219715613900864415105783176774256191480888033588594370903215221899502997676501500234923020228194685663711064969373831854454906791820556737762599142195187441034059130597933773984779926544991162783866451602719710911115733328127376833166507331769869194390083171181876733035924235914936203058307046551430580585211355852393250822818862714949991069825822627027422908330763021902863717183704109882664858705893120754914314084749460959471026056371751717176237012115840271431059774295561923659735623205946764950390318265315293600906852878650153801541413657126395248636333804353175611333824140922818508881753674013321261016844104847499370547196980159518783755546814294812422087718286587541789803736754423943198760598814119005387772567077158165303365308202672623703605934931150008610472317971646234570380481610032560607163772699792071745153345663541378307920328294601804162403992079996294159691063613885621338009382379539333139592912673820529831084910699175095455187721743492399467637771913823334755372758331655930287387767218934190670408170213031661992420827814511781825379946423182830480083635429276762218270924368777000368734208
|
||||
|
||||
def test_exponentiation_92(self):
|
||||
assert exponentiation(baseNumber=173, power=849) == 12622388886775437844585061265431522352844726358675634935595593517934235587500536948173511068778470390504583889891888830914489357584114203023475294027656920975508871721256137675336378552682209940040700219960965441008561283619317745025717677223151796434469862524345134588727518002457989672190181167616947113297301285288913872909019185253718685844615814015738807272913457327783526942261777681157008995812716567927015664809984535657307316873521202411220711762950718642916165302302273995133164382698565090496715157881885788400758336436516047243971797356446193370097420307876939001388903839437895795080140175716842360328402445938442736400017278887602857209201489121439099405962777306785512986109677314645208938672381411186400397165245116324779732051323284747714931557375147470492112019753500745767053732879322394680667043002562029006451117346346065025371188040399098868208329271646554560800761129348476928745626471272273043505299672717584735918684075299712858043755453711738830412267229575021696487602052997117929666068016329421162964921402724247245755867175805990561178234310181673387667779258922820758508267664562167058966171562904756047632060044074719390191644947364194664577762543965612543135211186848245324609274693600111882397399965308151344017809750700689575814812397442944720108126979471869797251156792719099974715549176532045071267952262826640381860064630291328379900047539134959598514210395356741211114791099489227115076533361609798540865279700769002119373356263512579688904106138176622886242537071450414460530299884690340352101478779085802272712675291049829813302791877532816311023082720902768305934571741551303179829504629498597517195303827337595394686747284319711459066889917096161658750903869479781660843884232396844616590685831814388501889092678337511082129928266452111713842194623642679374234886657519541564893326936557471493494084931031570100022168617154177606709662682193999012229719436013
|
||||
|
||||
def test_exponentiation_93(self):
|
||||
assert exponentiation(baseNumber=-97, power=399) == -5271351448749200976938805072521460043215790795445180043116540396103312175334730346122985461181832425779537968624418961952428925042294690037225760964686371632437681735374596257241843469294586633529668223701979370503616638459333959748306037510773200270218332321861857387233556566467181053150761268611322085338283684217543960106772375067126146271475172718966822073040026774842848650519092386500854733817843728470928035016174521478481770962260789822925463135145223900953402024799915433069467434740772834241649609620525944983644052828542261253372714918128729025963597329130195658544609672455981362575176096485540467105762233519518008249648415769064880011372619399396801536740183022213913316268668787751717307877174812839421101901786735304435590350948805154543533382726825153998477651948356699478433
|
||||
|
||||
def test_exponentiation_94(self):
|
||||
assert exponentiation(baseNumber=872, power=366) == 169446844366849340944648538810751875488115451951551930815300738697992145522401321736704469996676327842939279085470557400590934214834500802145376201149479927634467514864097970760550927650309308165524472135833458940180089540413558031930925278945675841130184875721000108618075164185457232878153563859878951589022146534170137390599493262817288934993665304278786760909324286023466005246099431170764011218647147166589110912987558405807121082390925238074794835794666568126907858611857564427304856764322844630404193340188642912017319394697700917138483857928445876953834365520956527296010779715757397792486591344493871495599713259014589063319440265382310475470784780838783534426342535085463603989761673689916753873648205678314909474502302405906070487690027618606480698419225939406176200115604810544583218425150030088628112350673306485335777830374877560241039971218499955404540999530277471285383109986532343448571035392672574559096671881260156748558059217042433743000205222248200422023991998147634478071706889309637326862429946378704781942480907438831119564569606470642217594045704699904
|
||||
|
||||
def test_exponentiation_95(self):
|
||||
assert exponentiation(baseNumber=-689, power=821) == -150654180068068748959441281889786715973896635118384278193844604424586047207398046929009085943531293301353630283097309939989636590189496600781379241363287030778802536136534892026183934844844988423412103090040478987669363598505355307814805437748016898529934384945107221479082277639309866483180391627987318877941142783686469859873046689273690180281166559131684863563811162777476730622204202436441305118274219791047762954515145656347938464972785850947194679904507820219041118270729116810501432513022942596284535419662769886717241956151923773757829571846744626769521122408099318608770501740294241739104386021531094258354413202335811584997672425854158742411554375888146624196108336619019840678679972474165713355940428468543654782404870912066916845779037724182967340521901170062389019588506634044766765259960558488331283546399115484912063684981428472641675427915151729649941539649602102881328544771926092199021515788360513647337452686888078206904248451002364991626286050593188224134390261829744115495825893409036485372660556483957609987783012940391348725167664107331370081808629873909095266924697679663291880995744286653131864711230741611750690835804045411547506851363812975329690882457980697081049298300765392114885205894401279654808772721412720032309899765522300178736948500372685081768950864568175640939011914166856015159687373042151882814748539850682632154150562131436991441754892836508173494747621852806543076319617253523923087918808648834913236328964064410968847775754459053548918715814572740578502651893565400434202088286053396161083182256093022772021339760004769249766953492948167272956031677776318677877950025172554909198766084157886410170455756209622657654134384931042592447818010198243231626060083313625511388298751969937218913907247575385502224782546212564173045064217950312371626615069962621596412864810669338555313102708586029056442165567762532344006442763229559938245916227342578368051275451923768385247668555331691870443387319325112138559481981619877371759462625032354647849958584923396605997522168328454425558017169607937464611532470409285259596016931665105090776363324135581082891936526988548398264075060713611059890087112590620136371183664909953218241762214817130732909624144051489579562238224580485203058840990207978557089463749400935854174779122956048395326787725366021161969329531967290861607372946038826348110565489
|
||||
|
||||
def test_exponentiation_96(self):
|
||||
assert exponentiation(baseNumber=372, power=250) == 4322499686765732339842448690512689937649734213982719899068553631382932805186118696120269973661591594484654282392304782373488147886669362767394975869675491278683136930946671467130822390502866729045478802072893851859929145273708709243196425336408771700422448147503247675963315251660051287672033061326622728639576482661004042701175552836559904984448096333624848848277244536086413869163164993983650793461645752722453659832469216080347701442661280305175415245016995140614708475103201399500276718757553578767718955661358815582900512715729007969760037457555059581790036006323834444879628578955048664147372428624739338119667318963891538814838845210624
|
||||
|
||||
def test_exponentiation_97(self):
|
||||
assert exponentiation(baseNumber=731, power=220) == 1152983071104430077858929356760442824508846283788255068171991812067556330303455363939463870941039181917213017005311588949701052635114533641859150327510568098194252206925448408503485267915543841688904061241168744763924052941262959815619776551079839426526255798466974338542883246799898953350391636074254226709404887479978090360729694386670803447807512797260976899125672330504654632414021494979454779145253425158351795774789047838501586330977771260864440296420725627365015306433000992439951222432851480562815705874484663318867713304580359880049614935077620470420907618051341744265156110302919837131327454570677913020331735203532051601
|
||||
|
||||
def test_exponentiation_98(self):
|
||||
assert exponentiation(baseNumber=875, power=259) == 955181126870238216266744937554384653090944561054548488227325073605230092246432456871093766560044621487174695087027599132406907067703290808564484140576511064777641568921457415953526010665026444073839086307112971103899418232885959118866997588191675744513266649659007736659223688888865296274877206902222673375045567929383349797148670378580013505450157603890501724286154180419299253725598838991234497479675201946653420380534421786838607617844217028369894771077309303611275487673380248385132329775467739187745364398184068647704072384971554382437635643627821727850188400723385111679548677555032690964509295787733168638042302979395443199108669599309373678503272460524206595991370979832073043252380301504945937917677320668958271081272481950463770772330462932586669921875
|
||||
|
||||
def test_exponentiation_99(self):
|
||||
assert exponentiation(baseNumber=-128, power=630) == 34856267361850538806343208752705567422627470537683458154205011792271044969555743881342110779484844145477845936999041784408984298957039970113494533826658787988061644101261149806431002443366578357493491974485972267545827939503054485387889203189209519517899489272958534837331162249584043724165267810568332903527345815377733247753696312084843210259837778037558248964896737583950998291780610304683930605630838446736179404099815866924369683204652290335465910948542402735938742709484385755786255295113569768765273550301958852731542620385667433996162146323274144301529898072793340630424636512314199781417696900937705282278380575497374089083270969605332135333027528450579201024205122883796662264973788548233322100736217819214010119859715120034743600927213308800513314582045859079631113810227293396106319437492176891512429359270180956220274679991299924595722202465919657140642537090569510637700653542668807529021680474592109882716470757272974416835289906383271815972539268759530041110057425513782912200983023346923931091350687454626109607266680906005174273344064242707974816265662201039694114524063804750829192947096227214522574225663377010088662911679219638142192273638980587855700600611709166967201102044220526526536507302376416231536984602795466310376237598687502590948936652196501709362270763761347015468959730899886634549689685377024
|
||||
|
||||
def test_exponentiation_100(self):
|
||||
assert exponentiation(baseNumber=-280, power=366) == 45691926682530063595374828556188400280808515737837262716454176103394463920604752016977675279505705927270292818959347242858012938031303122178144397733998799930989108407692626846418129953209769644904316001388376686380602653312153210571045121133793247984652891334555756602561534690631577817283751422083455910624257655093100071718035949607747911562619875867352681026775882467943667232640779001705554553281383209227555591383619962462587111859935369426615925724197958210814899338137606379859940357436306888092236153788392398695750959104000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
|
|
@ -1,305 +0,0 @@
|
|||
from unittest import TestCase
|
||||
|
||||
from benchmark.gcd import gcd
|
||||
|
||||
|
||||
class Test_gcd(TestCase):
|
||||
def test_gcd_1(self):
|
||||
assert gcd(a=829, b=830) == 1
|
||||
|
||||
def test_gcd_2(self):
|
||||
assert gcd(a=505, b=952) == 1
|
||||
|
||||
def test_gcd_3(self):
|
||||
assert gcd(a=30, b=553) == 1
|
||||
|
||||
def test_gcd_4(self):
|
||||
assert gcd(a=813, b=867) == 3
|
||||
|
||||
def test_gcd_5(self):
|
||||
assert gcd(a=250, b=967) == 1
|
||||
|
||||
def test_gcd_6(self):
|
||||
assert gcd(a=20, b=316) == 4
|
||||
|
||||
def test_gcd_7(self):
|
||||
assert gcd(a=724, b=730) == 2
|
||||
|
||||
def test_gcd_8(self):
|
||||
assert gcd(a=505, b=270) == 5
|
||||
|
||||
def test_gcd_9(self):
|
||||
assert gcd(a=67, b=461) == 1
|
||||
|
||||
def test_gcd_10(self):
|
||||
assert gcd(a=434, b=948) == 2
|
||||
|
||||
def test_gcd_11(self):
|
||||
assert gcd(a=262, b=926) == 2
|
||||
|
||||
def test_gcd_12(self):
|
||||
assert gcd(a=606, b=904) == 2
|
||||
|
||||
def test_gcd_13(self):
|
||||
assert gcd(a=672, b=971) == 1
|
||||
|
||||
def test_gcd_14(self):
|
||||
assert gcd(a=608, b=499) == 1
|
||||
|
||||
def test_gcd_15(self):
|
||||
assert gcd(a=375, b=876) == 3
|
||||
|
||||
def test_gcd_16(self):
|
||||
assert gcd(a=44, b=728) == 4
|
||||
|
||||
def test_gcd_17(self):
|
||||
assert gcd(a=499, b=663) == 1
|
||||
|
||||
def test_gcd_18(self):
|
||||
assert gcd(a=137, b=617) == 1
|
||||
|
||||
def test_gcd_19(self):
|
||||
assert gcd(a=910, b=867) == 1
|
||||
|
||||
def test_gcd_20(self):
|
||||
assert gcd(a=991, b=191) == 1
|
||||
|
||||
def test_gcd_21(self):
|
||||
assert gcd(a=180, b=535) == 5
|
||||
|
||||
def test_gcd_22(self):
|
||||
assert gcd(a=809, b=88) == 1
|
||||
|
||||
def test_gcd_23(self):
|
||||
assert gcd(a=708, b=429) == 3
|
||||
|
||||
def test_gcd_24(self):
|
||||
assert gcd(a=342, b=530) == 2
|
||||
|
||||
def test_gcd_25(self):
|
||||
assert gcd(a=17, b=726) == 1
|
||||
|
||||
def test_gcd_26(self):
|
||||
assert gcd(a=167, b=760) == 1
|
||||
|
||||
def test_gcd_27(self):
|
||||
assert gcd(a=929, b=345) == 1
|
||||
|
||||
def test_gcd_28(self):
|
||||
assert gcd(a=639, b=726) == 3
|
||||
|
||||
def test_gcd_29(self):
|
||||
assert gcd(a=99, b=658) == 1
|
||||
|
||||
def test_gcd_30(self):
|
||||
assert gcd(a=523, b=488) == 1
|
||||
|
||||
def test_gcd_31(self):
|
||||
assert gcd(a=364, b=503) == 1
|
||||
|
||||
def test_gcd_32(self):
|
||||
assert gcd(a=826, b=765) == 1
|
||||
|
||||
def test_gcd_33(self):
|
||||
assert gcd(a=53, b=492) == 1
|
||||
|
||||
def test_gcd_34(self):
|
||||
assert gcd(a=459, b=293) == 1
|
||||
|
||||
def test_gcd_35(self):
|
||||
assert gcd(a=64, b=209) == 1
|
||||
|
||||
def test_gcd_36(self):
|
||||
assert gcd(a=435, b=98) == 1
|
||||
|
||||
def test_gcd_37(self):
|
||||
assert gcd(a=810, b=131) == 1
|
||||
|
||||
def test_gcd_38(self):
|
||||
assert gcd(a=724, b=722) == 2
|
||||
|
||||
def test_gcd_39(self):
|
||||
assert gcd(a=294, b=596) == 2
|
||||
|
||||
def test_gcd_40(self):
|
||||
assert gcd(a=608, b=325) == 1
|
||||
|
||||
def test_gcd_41(self):
|
||||
assert gcd(a=348, b=221) == 1
|
||||
|
||||
def test_gcd_42(self):
|
||||
assert gcd(a=435, b=535) == 5
|
||||
|
||||
def test_gcd_43(self):
|
||||
assert gcd(a=945, b=301) == 7
|
||||
|
||||
def test_gcd_44(self):
|
||||
assert gcd(a=527, b=701) == 1
|
||||
|
||||
def test_gcd_45(self):
|
||||
assert gcd(a=30, b=464) == 2
|
||||
|
||||
def test_gcd_46(self):
|
||||
assert gcd(a=370, b=103) == 1
|
||||
|
||||
def test_gcd_47(self):
|
||||
assert gcd(a=831, b=710) == 1
|
||||
|
||||
def test_gcd_48(self):
|
||||
assert gcd(a=999, b=894) == 3
|
||||
|
||||
def test_gcd_49(self):
|
||||
assert gcd(a=100, b=504) == 4
|
||||
|
||||
def test_gcd_50(self):
|
||||
assert gcd(a=944, b=357) == 1
|
||||
|
||||
def test_gcd_51(self):
|
||||
assert gcd(a=380, b=166) == 2
|
||||
|
||||
def test_gcd_52(self):
|
||||
assert gcd(a=292, b=362) == 2
|
||||
|
||||
def test_gcd_53(self):
|
||||
assert gcd(a=805, b=209) == 1
|
||||
|
||||
def test_gcd_54(self):
|
||||
assert gcd(a=586, b=417) == 1
|
||||
|
||||
def test_gcd_55(self):
|
||||
assert gcd(a=121, b=726) == 121
|
||||
|
||||
def test_gcd_56(self):
|
||||
assert gcd(a=999, b=467) == 1
|
||||
|
||||
def test_gcd_57(self):
|
||||
assert gcd(a=570, b=393) == 3
|
||||
|
||||
def test_gcd_58(self):
|
||||
assert gcd(a=968, b=464) == 8
|
||||
|
||||
def test_gcd_59(self):
|
||||
assert gcd(a=542, b=901) == 1
|
||||
|
||||
def test_gcd_60(self):
|
||||
assert gcd(a=573, b=303) == 3
|
||||
|
||||
def test_gcd_61(self):
|
||||
assert gcd(a=898, b=88) == 2
|
||||
|
||||
def test_gcd_62(self):
|
||||
assert gcd(a=153, b=876) == 3
|
||||
|
||||
def test_gcd_63(self):
|
||||
assert gcd(a=144, b=329) == 1
|
||||
|
||||
def test_gcd_64(self):
|
||||
assert gcd(a=334, b=260) == 2
|
||||
|
||||
def test_gcd_65(self):
|
||||
assert gcd(a=722, b=108) == 2
|
||||
|
||||
def test_gcd_66(self):
|
||||
assert gcd(a=546, b=445) == 1
|
||||
|
||||
def test_gcd_67(self):
|
||||
assert gcd(a=561, b=154) == 11
|
||||
|
||||
def test_gcd_68(self):
|
||||
assert gcd(a=955, b=931) == 1
|
||||
|
||||
def test_gcd_69(self):
|
||||
assert gcd(a=982, b=450) == 2
|
||||
|
||||
def test_gcd_70(self):
|
||||
assert gcd(a=656, b=193) == 1
|
||||
|
||||
def test_gcd_71(self):
|
||||
assert gcd(a=578, b=901) == 17
|
||||
|
||||
def test_gcd_72(self):
|
||||
assert gcd(a=524, b=663) == 1
|
||||
|
||||
def test_gcd_73(self):
|
||||
assert gcd(a=272, b=314) == 2
|
||||
|
||||
def test_gcd_74(self):
|
||||
assert gcd(a=444, b=876) == 12
|
||||
|
||||
def test_gcd_75(self):
|
||||
assert gcd(a=624, b=707) == 1
|
||||
|
||||
def test_gcd_76(self):
|
||||
assert gcd(a=525, b=963) == 3
|
||||
|
||||
def test_gcd_77(self):
|
||||
assert gcd(a=929, b=892) == 1
|
||||
|
||||
def test_gcd_78(self):
|
||||
assert gcd(a=208, b=418) == 2
|
||||
|
||||
def test_gcd_79(self):
|
||||
assert gcd(a=434, b=846) == 2
|
||||
|
||||
def test_gcd_80(self):
|
||||
assert gcd(a=813, b=715) == 1
|
||||
|
||||
def test_gcd_81(self):
|
||||
assert gcd(a=180, b=352) == 4
|
||||
|
||||
def test_gcd_82(self):
|
||||
assert gcd(a=693, b=370) == 1
|
||||
|
||||
def test_gcd_83(self):
|
||||
assert gcd(a=908, b=263) == 1
|
||||
|
||||
def test_gcd_84(self):
|
||||
assert gcd(a=247, b=737) == 1
|
||||
|
||||
def test_gcd_85(self):
|
||||
assert gcd(a=304, b=102) == 2
|
||||
|
||||
def test_gcd_86(self):
|
||||
assert gcd(a=202, b=899) == 1
|
||||
|
||||
def test_gcd_87(self):
|
||||
assert gcd(a=417, b=230) == 1
|
||||
|
||||
def test_gcd_88(self):
|
||||
assert gcd(a=642, b=271) == 1
|
||||
|
||||
def test_gcd_89(self):
|
||||
assert gcd(a=355, b=120) == 5
|
||||
|
||||
def test_gcd_90(self):
|
||||
assert gcd(a=323, b=150) == 1
|
||||
|
||||
def test_gcd_91(self):
|
||||
assert gcd(a=414, b=598) == 46
|
||||
|
||||
def test_gcd_92(self):
|
||||
assert gcd(a=791, b=429) == 1
|
||||
|
||||
def test_gcd_93(self):
|
||||
assert gcd(a=968, b=93) == 1
|
||||
|
||||
def test_gcd_94(self):
|
||||
assert gcd(a=820, b=504) == 4
|
||||
|
||||
def test_gcd_95(self):
|
||||
assert gcd(a=24, b=195) == 3
|
||||
|
||||
def test_gcd_96(self):
|
||||
assert gcd(a=295, b=521) == 1
|
||||
|
||||
def test_gcd_97(self):
|
||||
assert gcd(a=758, b=190) == 2
|
||||
|
||||
def test_gcd_98(self):
|
||||
assert gcd(a=91, b=99) == 1
|
||||
|
||||
def test_gcd_99(self):
|
||||
assert gcd(a=89, b=765) == 1
|
||||
|
||||
def test_gcd_100(self):
|
||||
assert gcd(a=17, b=427) == 1
|
|
@ -1,305 +0,0 @@
|
|||
from unittest import TestCase
|
||||
|
||||
from benchmark.longest_substring import longest_sorted_substr
|
||||
|
||||
|
||||
class Test_longest_sorted_substr(TestCase):
|
||||
def test_longest_sorted_substr_1(self):
|
||||
assert longest_sorted_substr(s='mU') == 'm'
|
||||
|
||||
def test_longest_sorted_substr_2(self):
|
||||
assert longest_sorted_substr(s='3#') == '3'
|
||||
|
||||
def test_longest_sorted_substr_3(self):
|
||||
assert longest_sorted_substr(s='1JbKS;L') == '1Jb'
|
||||
|
||||
def test_longest_sorted_substr_4(self):
|
||||
assert longest_sorted_substr(s='fKE'3;') == ''3;'
|
||||
|
||||
def test_longest_sorted_substr_5(self):
|
||||
assert longest_sorted_substr(s='-",A') == '",A'
|
||||
|
||||
def test_longest_sorted_substr_6(self):
|
||||
assert longest_sorted_substr(s='\8U<J+n') == '8U'
|
||||
|
||||
def test_longest_sorted_substr_7(self):
|
||||
assert longest_sorted_substr(s='Q"Vv_mhE^') == '"Vv'
|
||||
|
||||
def test_longest_sorted_substr_8(self):
|
||||
assert longest_sorted_substr(s='a59bP?V9') == '59b'
|
||||
|
||||
def test_longest_sorted_substr_9(self):
|
||||
assert longest_sorted_substr(s='20Y\#mI') == '0Y\'
|
||||
|
||||
def test_longest_sorted_substr_10(self):
|
||||
assert longest_sorted_substr(s='j_Va6') == 'Va'
|
||||
|
||||
def test_longest_sorted_substr_11(self):
|
||||
assert longest_sorted_substr(s=']') == ']'
|
||||
|
||||
def test_longest_sorted_substr_12(self):
|
||||
assert longest_sorted_substr(s='{NB`{P') == 'B`{'
|
||||
|
||||
def test_longest_sorted_substr_13(self):
|
||||
assert longest_sorted_substr(s='lgoz}Pz1') == 'goz}'
|
||||
|
||||
def test_longest_sorted_substr_14(self):
|
||||
assert longest_sorted_substr(s='>D$i$') == '>D'
|
||||
|
||||
def test_longest_sorted_substr_15(self):
|
||||
assert longest_sorted_substr(s='s') == 's'
|
||||
|
||||
def test_longest_sorted_substr_16(self):
|
||||
assert longest_sorted_substr(s='{EX_?r*M$') == 'EX_'
|
||||
|
||||
def test_longest_sorted_substr_17(self):
|
||||
assert longest_sorted_substr(s='2@U+0&') == '2@U'
|
||||
|
||||
def test_longest_sorted_substr_18(self):
|
||||
assert longest_sorted_substr(s='Ze') == 'Ze'
|
||||
|
||||
def test_longest_sorted_substr_19(self):
|
||||
assert longest_sorted_substr(s='{-7R<])') == '-7R'
|
||||
|
||||
def test_longest_sorted_substr_20(self):
|
||||
assert longest_sorted_substr(s='Mh|') == 'Mh|'
|
||||
|
||||
def test_longest_sorted_substr_21(self):
|
||||
assert longest_sorted_substr(s='ZOk_Zq') == 'Ok'
|
||||
|
||||
def test_longest_sorted_substr_22(self):
|
||||
assert longest_sorted_substr(s='jpb') == 'jp'
|
||||
|
||||
def test_longest_sorted_substr_23(self):
|
||||
assert longest_sorted_substr(s='$') == '$'
|
||||
|
||||
def test_longest_sorted_substr_24(self):
|
||||
assert longest_sorted_substr(s='2v7Z') == '2v'
|
||||
|
||||
def test_longest_sorted_substr_25(self):
|
||||
assert longest_sorted_substr(s='3NyuK') == '3Ny'
|
||||
|
||||
def test_longest_sorted_substr_26(self):
|
||||
assert longest_sorted_substr(s='Aj3~Y') == 'Aj'
|
||||
|
||||
def test_longest_sorted_substr_27(self):
|
||||
assert longest_sorted_substr(s='lgoz}B4A~') == 'goz}'
|
||||
|
||||
def test_longest_sorted_substr_28(self):
|
||||
assert longest_sorted_substr(s='~<zI|Pz1') == '<z'
|
||||
|
||||
def test_longest_sorted_substr_29(self):
|
||||
assert longest_sorted_substr(s='rNBI{P') == 'BI{'
|
||||
|
||||
def test_longest_sorted_substr_30(self):
|
||||
assert longest_sorted_substr(s='gNB`{P') == 'B`{'
|
||||
|
||||
def test_longest_sorted_substr_31(self):
|
||||
assert longest_sorted_substr(s='>$cz^[IJ') == '$cz'
|
||||
|
||||
def test_longest_sorted_substr_32(self):
|
||||
assert longest_sorted_substr(s='C{oC') == 'C{'
|
||||
|
||||
def test_longest_sorted_substr_33(self):
|
||||
assert longest_sorted_substr(s='![Wg>"|WS') == '!['
|
||||
|
||||
def test_longest_sorted_substr_34(self):
|
||||
assert longest_sorted_substr(s='_PI`^+g') == 'I`'
|
||||
|
||||
def test_longest_sorted_substr_35(self):
|
||||
assert longest_sorted_substr(s=';oLU=(') == ';o'
|
||||
|
||||
def test_longest_sorted_substr_36(self):
|
||||
assert longest_sorted_substr(s='2XDPJ-w') == '2X'
|
||||
|
||||
def test_longest_sorted_substr_37(self):
|
||||
assert longest_sorted_substr(s='v') == 'v'
|
||||
|
||||
def test_longest_sorted_substr_38(self):
|
||||
assert longest_sorted_substr(s='{') == '{'
|
||||
|
||||
def test_longest_sorted_substr_39(self):
|
||||
assert longest_sorted_substr(s='G-H9~') == '-H'
|
||||
|
||||
def test_longest_sorted_substr_40(self):
|
||||
assert longest_sorted_substr(s='3-H9~') == '-H'
|
||||
|
||||
def test_longest_sorted_substr_41(self):
|
||||
assert longest_sorted_substr(s='_A=') == '_'
|
||||
|
||||
def test_longest_sorted_substr_42(self):
|
||||
assert longest_sorted_substr(s='Dnvj+Qq)~') == 'Dnv'
|
||||
|
||||
def test_longest_sorted_substr_43(self):
|
||||
assert longest_sorted_substr(s='|/qEawEd#') == 'Eaw'
|
||||
|
||||
def test_longest_sorted_substr_44(self):
|
||||
assert longest_sorted_substr(s='/q#[p') == '#[p'
|
||||
|
||||
def test_longest_sorted_substr_45(self):
|
||||
assert longest_sorted_substr(s='g-7RcIK') == '-7Rc'
|
||||
|
||||
def test_longest_sorted_substr_46(self):
|
||||
assert longest_sorted_substr(s='a5FGdQ') == '5FGd'
|
||||
|
||||
def test_longest_sorted_substr_47(self):
|
||||
assert longest_sorted_substr(s='-#') == '-'
|
||||
|
||||
def test_longest_sorted_substr_48(self):
|
||||
assert longest_sorted_substr(s='L@n0') == '@n'
|
||||
|
||||
def test_longest_sorted_substr_49(self):
|
||||
assert longest_sorted_substr(s='P') == 'P'
|
||||
|
||||
def test_longest_sorted_substr_50(self):
|
||||
assert longest_sorted_substr(s='') == ''
|
||||
|
||||
def test_longest_sorted_substr_51(self):
|
||||
assert longest_sorted_substr(s=':') == ':'
|
||||
|
||||
def test_longest_sorted_substr_52(self):
|
||||
assert longest_sorted_substr(s='ro') == 'r'
|
||||
|
||||
def test_longest_sorted_substr_53(self):
|
||||
assert longest_sorted_substr(s='qgL') == 'q'
|
||||
|
||||
def test_longest_sorted_substr_54(self):
|
||||
assert longest_sorted_substr(s='W"') == 'W'
|
||||
|
||||
def test_longest_sorted_substr_55(self):
|
||||
assert longest_sorted_substr(s='ocq!"') == 'cq'
|
||||
|
||||
def test_longest_sorted_substr_56(self):
|
||||
assert longest_sorted_substr(s='Aj6') == 'Aj'
|
||||
|
||||
def test_longest_sorted_substr_57(self):
|
||||
assert longest_sorted_substr(s='BF`=^p0') == 'BF`'
|
||||
|
||||
def test_longest_sorted_substr_58(self):
|
||||
assert longest_sorted_substr(s='0kA') == '0k'
|
||||
|
||||
def test_longest_sorted_substr_59(self):
|
||||
assert longest_sorted_substr(s='rWYD') == 'WY'
|
||||
|
||||
def test_longest_sorted_substr_60(self):
|
||||
assert longest_sorted_substr(s='us{<;') == 's{'
|
||||
|
||||
def test_longest_sorted_substr_61(self):
|
||||
assert longest_sorted_substr(s='q!/=cIK') == '!/=c'
|
||||
|
||||
def test_longest_sorted_substr_62(self):
|
||||
assert longest_sorted_substr(s='ol0D~') == '0D~'
|
||||
|
||||
def test_longest_sorted_substr_63(self):
|
||||
assert longest_sorted_substr(s='PJ\W%5Z') == '%5Z'
|
||||
|
||||
def test_longest_sorted_substr_64(self):
|
||||
assert longest_sorted_substr(s=')tNKf BT') == ' BT'
|
||||
|
||||
def test_longest_sorted_substr_65(self):
|
||||
assert longest_sorted_substr(s='D\TAy"') == 'D\'
|
||||
|
||||
def test_longest_sorted_substr_66(self):
|
||||
assert longest_sorted_substr(s='2J*ZJg!u') == '2J'
|
||||
|
||||
def test_longest_sorted_substr_67(self):
|
||||
assert longest_sorted_substr(s='c7z') == '7z'
|
||||
|
||||
def test_longest_sorted_substr_68(self):
|
||||
assert longest_sorted_substr(s='=') == '='
|
||||
|
||||
def test_longest_sorted_substr_69(self):
|
||||
assert longest_sorted_substr(s='4RS') == '4RS'
|
||||
|
||||
def test_longest_sorted_substr_70(self):
|
||||
assert longest_sorted_substr(s='tH%dBe`') == '%d'
|
||||
|
||||
def test_longest_sorted_substr_71(self):
|
||||
assert longest_sorted_substr(s='M`%K') == 'M`'
|
||||
|
||||
def test_longest_sorted_substr_72(self):
|
||||
assert longest_sorted_substr(s='*XU1YYd') == '1YYd'
|
||||
|
||||
def test_longest_sorted_substr_73(self):
|
||||
assert longest_sorted_substr(s='AI,Z,_r[*') == ',_r'
|
||||
|
||||
def test_longest_sorted_substr_74(self):
|
||||
assert longest_sorted_substr(s='#') == '#'
|
||||
|
||||
def test_longest_sorted_substr_75(self):
|
||||
assert longest_sorted_substr(s='!G$7Ok^') == '$7Ok'
|
||||
|
||||
def test_longest_sorted_substr_76(self):
|
||||
assert longest_sorted_substr(s='[thtyT') == 'hty'
|
||||
|
||||
def test_longest_sorted_substr_77(self):
|
||||
assert longest_sorted_substr(s='Cnq|fQE"') == 'Cnq|'
|
||||
|
||||
def test_longest_sorted_substr_78(self):
|
||||
assert longest_sorted_substr(s='~c') == '~'
|
||||
|
||||
def test_longest_sorted_substr_79(self):
|
||||
assert longest_sorted_substr(s=')^'') == ')^'
|
||||
|
||||
def test_longest_sorted_substr_80(self):
|
||||
assert longest_sorted_substr(s=' !G') == ' !G'
|
||||
|
||||
def test_longest_sorted_substr_81(self):
|
||||
assert longest_sorted_substr(s=' 3v`y`') == ' 3v'
|
||||
|
||||
def test_longest_sorted_substr_82(self):
|
||||
assert longest_sorted_substr(s='ui9') == 'u'
|
||||
|
||||
def test_longest_sorted_substr_83(self):
|
||||
assert longest_sorted_substr(s='2`b') == '2`b'
|
||||
|
||||
def test_longest_sorted_substr_84(self):
|
||||
assert longest_sorted_substr(s='F,~YHR') == ',~'
|
||||
|
||||
def test_longest_sorted_substr_85(self):
|
||||
assert longest_sorted_substr(s=',[b') == ',[b'
|
||||
|
||||
def test_longest_sorted_substr_86(self):
|
||||
assert longest_sorted_substr(s='}M\$WqjK') == '$Wq'
|
||||
|
||||
def test_longest_sorted_substr_87(self):
|
||||
assert longest_sorted_substr(s='GBRa/y%<H') == 'BRa'
|
||||
|
||||
def test_longest_sorted_substr_88(self):
|
||||
assert longest_sorted_substr(s='%ZbEQ-}jO') == '%Zb'
|
||||
|
||||
def test_longest_sorted_substr_89(self):
|
||||
assert longest_sorted_substr(s='|K?T+N'B]') == ''B]'
|
||||
|
||||
def test_longest_sorted_substr_90(self):
|
||||
assert longest_sorted_substr(s=',+:]Xy') == '+:]'
|
||||
|
||||
def test_longest_sorted_substr_91(self):
|
||||
assert longest_sorted_substr(s='2Vp[a') == '2Vp'
|
||||
|
||||
def test_longest_sorted_substr_92(self):
|
||||
assert longest_sorted_substr(s='/mg,s') == '/m'
|
||||
|
||||
def test_longest_sorted_substr_93(self):
|
||||
assert longest_sorted_substr(s='dw>') == 'dw'
|
||||
|
||||
def test_longest_sorted_substr_94(self):
|
||||
assert longest_sorted_substr(s='aEZ') == 'EZ'
|
||||
|
||||
def test_longest_sorted_substr_95(self):
|
||||
assert longest_sorted_substr(s='-SA+%!#Gu') == '!#Gu'
|
||||
|
||||
def test_longest_sorted_substr_96(self):
|
||||
assert longest_sorted_substr(s='o-u') == '-u'
|
||||
|
||||
def test_longest_sorted_substr_97(self):
|
||||
assert longest_sorted_substr(s='::') == '::'
|
||||
|
||||
def test_longest_sorted_substr_98(self):
|
||||
assert longest_sorted_substr(s='5$QL<\`') == '<\`'
|
||||
|
||||
def test_longest_sorted_substr_99(self):
|
||||
assert longest_sorted_substr(s=':pb%Mx|') == '%Mx|'
|
||||
|
||||
def test_longest_sorted_substr_100(self):
|
||||
assert longest_sorted_substr(s='-gVa') == '-g'
|
|
@ -1,305 +0,0 @@
|
|||
from unittest import TestCase
|
||||
|
||||
from benchmark.rabin_karp import rabin_karp_search
|
||||
|
||||
|
||||
class Test_rabin_karp_search(TestCase):
|
||||
def test_rabin_karp_search_1(self):
|
||||
assert rabin_karp_search(pat='', txt='Kx\UnZ^') == []
|
||||
|
||||
def test_rabin_karp_search_2(self):
|
||||
assert rabin_karp_search(pat='pub#b8o', txt=';Q[d2{v.>') == []
|
||||
|
||||
def test_rabin_karp_search_3(self):
|
||||
assert rabin_karp_search(pat='', txt='w:A') == []
|
||||
|
||||
def test_rabin_karp_search_4(self):
|
||||
assert rabin_karp_search(pat='`QiVQ', txt='{1*0ELsc') == []
|
||||
|
||||
def test_rabin_karp_search_5(self):
|
||||
assert rabin_karp_search(pat='Th D', txt='a:uH$>') == []
|
||||
|
||||
def test_rabin_karp_search_6(self):
|
||||
assert rabin_karp_search(pat='yO8', txt='b$5p6}<') == []
|
||||
|
||||
def test_rabin_karp_search_7(self):
|
||||
assert rabin_karp_search(pat=',qr"', txt='aI!zhr"nc') == []
|
||||
|
||||
def test_rabin_karp_search_8(self):
|
||||
assert rabin_karp_search(pat='s', txt='BYDqJ3pr') == []
|
||||
|
||||
def test_rabin_karp_search_9(self):
|
||||
assert rabin_karp_search(pat='5!5!', txt='g*{qF') == []
|
||||
|
||||
def test_rabin_karp_search_10(self):
|
||||
assert rabin_karp_search(pat=':hiVQ', txt='V'o%%/E-') == []
|
||||
|
||||
def test_rabin_karp_search_11(self):
|
||||
assert rabin_karp_search(pat='MVi<Z:', txt='thMHE|f') == []
|
||||
|
||||
def test_rabin_karp_search_12(self):
|
||||
assert rabin_karp_search(pat='k', txt='[R}M') == []
|
||||
|
||||
def test_rabin_karp_search_13(self):
|
||||
assert rabin_karp_search(pat='sVg', txt='x\Col<Jx') == []
|
||||
|
||||
def test_rabin_karp_search_14(self):
|
||||
assert rabin_karp_search(pat='ZQ{zy', txt='1&x7b"*q') == []
|
||||
|
||||
def test_rabin_karp_search_15(self):
|
||||
assert rabin_karp_search(pat='Ce$&\i', txt='o/p$@]') == []
|
||||
|
||||
def test_rabin_karp_search_16(self):
|
||||
assert rabin_karp_search(pat='4x', txt='jp8qx') == []
|
||||
|
||||
def test_rabin_karp_search_17(self):
|
||||
assert rabin_karp_search(pat='z4bTc', txt='^'UtAD') == []
|
||||
|
||||
def test_rabin_karp_search_18(self):
|
||||
assert rabin_karp_search(pat='$YUHq~', txt='is-AMaq') == []
|
||||
|
||||
def test_rabin_karp_search_19(self):
|
||||
assert rabin_karp_search(pat='', txt='S!!&SE~,5') == []
|
||||
|
||||
def test_rabin_karp_search_20(self):
|
||||
assert rabin_karp_search(pat='{', txt='_(z4e') == []
|
||||
|
||||
def test_rabin_karp_search_21(self):
|
||||
assert rabin_karp_search(pat='', txt='3a') == []
|
||||
|
||||
def test_rabin_karp_search_22(self):
|
||||
assert rabin_karp_search(pat='g-', txt='>RK~@m') == []
|
||||
|
||||
def test_rabin_karp_search_23(self):
|
||||
assert rabin_karp_search(pat='O{', txt='G)a') == []
|
||||
|
||||
def test_rabin_karp_search_24(self):
|
||||
assert rabin_karp_search(pat='mZ(=', txt='-E3l') == []
|
||||
|
||||
def test_rabin_karp_search_25(self):
|
||||
assert rabin_karp_search(pat='qv$N)U', txt='XpxIJer }') == []
|
||||
|
||||
def test_rabin_karp_search_26(self):
|
||||
assert rabin_karp_search(pat='q%pCIP{f', txt='c'TX\U<F!') == []
|
||||
|
||||
def test_rabin_karp_search_27(self):
|
||||
assert rabin_karp_search(pat='q', txt='pT.\3(x') == []
|
||||
|
||||
def test_rabin_karp_search_28(self):
|
||||
assert rabin_karp_search(pat='D#kH0', txt='H/\F;b)|]') == []
|
||||
|
||||
def test_rabin_karp_search_29(self):
|
||||
assert rabin_karp_search(pat='`Q<', txt='{1*0ELsc') == []
|
||||
|
||||
def test_rabin_karp_search_30(self):
|
||||
assert rabin_karp_search(pat='', txt=';En`-%ma3') == []
|
||||
|
||||
def test_rabin_karp_search_31(self):
|
||||
assert rabin_karp_search(pat='', txt='bu') == []
|
||||
|
||||
def test_rabin_karp_search_32(self):
|
||||
assert rabin_karp_search(pat='RA`0!', txt='>g5Q3}') == []
|
||||
|
||||
def test_rabin_karp_search_33(self):
|
||||
assert rabin_karp_search(pat='q.#qV^44', txt='G=*Kq4L)Z') == []
|
||||
|
||||
def test_rabin_karp_search_34(self):
|
||||
assert rabin_karp_search(pat='', txt='<Xv7lIk') == []
|
||||
|
||||
def test_rabin_karp_search_35(self):
|
||||
assert rabin_karp_search(pat='2c1@m', txt='^pINDb') == []
|
||||
|
||||
def test_rabin_karp_search_36(self):
|
||||
assert rabin_karp_search(pat='v>O\', txt='ppDt2F[<i') == []
|
||||
|
||||
def test_rabin_karp_search_37(self):
|
||||
assert rabin_karp_search(pat='[', txt='sIZap]A') == []
|
||||
|
||||
def test_rabin_karp_search_38(self):
|
||||
assert rabin_karp_search(pat='WC&T`$', txt='B>GAoo') == []
|
||||
|
||||
def test_rabin_karp_search_39(self):
|
||||
assert rabin_karp_search(pat='q9<', txt='`gx') == []
|
||||
|
||||
def test_rabin_karp_search_40(self):
|
||||
assert rabin_karp_search(pat='j[_\Q', txt='YdgPvfOeZ') == []
|
||||
|
||||
def test_rabin_karp_search_41(self):
|
||||
assert rabin_karp_search(pat='"j$', txt='iz97wupnd') == []
|
||||
|
||||
def test_rabin_karp_search_42(self):
|
||||
assert rabin_karp_search(pat='OBZ1YZ)h', txt='^=V&|A76\') == []
|
||||
|
||||
def test_rabin_karp_search_43(self):
|
||||
assert rabin_karp_search(pat='D#{', txt='5NFI9') == []
|
||||
|
||||
def test_rabin_karp_search_44(self):
|
||||
assert rabin_karp_search(pat='[R', txt='(@?'X&=') == []
|
||||
|
||||
def test_rabin_karp_search_45(self):
|
||||
assert rabin_karp_search(pat='Fl?P8', txt='%X-hKVA') == []
|
||||
|
||||
def test_rabin_karp_search_46(self):
|
||||
assert rabin_karp_search(pat='Bo', txt='V}M7bNuv') == []
|
||||
|
||||
def test_rabin_karp_search_47(self):
|
||||
assert rabin_karp_search(pat='xA9', txt='k~#G_J') == []
|
||||
|
||||
def test_rabin_karp_search_48(self):
|
||||
assert rabin_karp_search(pat='4', txt='<DVY') == []
|
||||
|
||||
def test_rabin_karp_search_49(self):
|
||||
assert rabin_karp_search(pat='*w', txt='LO#SW') == []
|
||||
|
||||
def test_rabin_karp_search_50(self):
|
||||
assert rabin_karp_search(pat='', txt='b:l *#D') == []
|
||||
|
||||
def test_rabin_karp_search_51(self):
|
||||
assert rabin_karp_search(pat='', txt=':u') == []
|
||||
|
||||
def test_rabin_karp_search_52(self):
|
||||
assert rabin_karp_search(pat='#xGMAp=O', txt='S$##h,dQG') == []
|
||||
|
||||
def test_rabin_karp_search_53(self):
|
||||
assert rabin_karp_search(pat=';', txt='HNN19Z') == []
|
||||
|
||||
def test_rabin_karp_search_54(self):
|
||||
assert rabin_karp_search(pat='E@w)', txt='n?Yw0') == []
|
||||
|
||||
def test_rabin_karp_search_55(self):
|
||||
assert rabin_karp_search(pat='"}A', txt='j:@"V') == []
|
||||
|
||||
def test_rabin_karp_search_56(self):
|
||||
assert rabin_karp_search(pat='G', txt='~') == []
|
||||
|
||||
def test_rabin_karp_search_57(self):
|
||||
assert rabin_karp_search(pat='M', txt='v7qt') == []
|
||||
|
||||
def test_rabin_karp_search_58(self):
|
||||
assert rabin_karp_search(pat='', txt='2us0f') == []
|
||||
|
||||
def test_rabin_karp_search_59(self):
|
||||
assert rabin_karp_search(pat='05GI', txt='3T_d2)V') == []
|
||||
|
||||
def test_rabin_karp_search_60(self):
|
||||
assert rabin_karp_search(pat='aO', txt='^uSVs/_') == []
|
||||
|
||||
def test_rabin_karp_search_61(self):
|
||||
assert rabin_karp_search(pat='', txt='Rh') == []
|
||||
|
||||
def test_rabin_karp_search_62(self):
|
||||
assert rabin_karp_search(pat='6', txt='#DL') == []
|
||||
|
||||
def test_rabin_karp_search_63(self):
|
||||
assert rabin_karp_search(pat='JS', txt=':5/l') == []
|
||||
|
||||
def test_rabin_karp_search_64(self):
|
||||
assert rabin_karp_search(pat='', txt='BgP"p') == []
|
||||
|
||||
def test_rabin_karp_search_65(self):
|
||||
assert rabin_karp_search(pat='u!Yi', txt='%<?I') == []
|
||||
|
||||
def test_rabin_karp_search_66(self):
|
||||
assert rabin_karp_search(pat='!>w', txt='F#29$ixn') == []
|
||||
|
||||
def test_rabin_karp_search_67(self):
|
||||
assert rabin_karp_search(pat='*', txt='<L*k') == [2]
|
||||
|
||||
def test_rabin_karp_search_68(self):
|
||||
assert rabin_karp_search(pat='Q2[o^8', txt='hB=IYX'') == []
|
||||
|
||||
def test_rabin_karp_search_69(self):
|
||||
assert rabin_karp_search(pat='6\', txt='NnHWjE7m') == []
|
||||
|
||||
def test_rabin_karp_search_70(self):
|
||||
assert rabin_karp_search(pat='Q{]', txt='C$PV') == []
|
||||
|
||||
def test_rabin_karp_search_71(self):
|
||||
assert rabin_karp_search(pat='19', txt='&|A(wedic') == []
|
||||
|
||||
def test_rabin_karp_search_72(self):
|
||||
assert rabin_karp_search(pat='iPT8Swj', txt='?.?>RZw') == []
|
||||
|
||||
def test_rabin_karp_search_73(self):
|
||||
assert rabin_karp_search(pat='&\', txt='muCGJW') == []
|
||||
|
||||
def test_rabin_karp_search_74(self):
|
||||
assert rabin_karp_search(pat='.fg=wg9Q', txt='`jH;TZPk') == []
|
||||
|
||||
def test_rabin_karp_search_75(self):
|
||||
assert rabin_karp_search(pat='K', txt=')$3x') == []
|
||||
|
||||
def test_rabin_karp_search_76(self):
|
||||
assert rabin_karp_search(pat='q=W$V', txt='4$J75rSH^') == []
|
||||
|
||||
def test_rabin_karp_search_77(self):
|
||||
assert rabin_karp_search(pat='%Ajm6', txt='|7w)3') == []
|
||||
|
||||
def test_rabin_karp_search_78(self):
|
||||
assert rabin_karp_search(pat='TQ', txt='KNJ') == []
|
||||
|
||||
def test_rabin_karp_search_79(self):
|
||||
assert rabin_karp_search(pat='C @BTIj', txt='1WjyJ://9') == []
|
||||
|
||||
def test_rabin_karp_search_80(self):
|
||||
assert rabin_karp_search(pat='u', txt=',"[q!G>') == []
|
||||
|
||||
def test_rabin_karp_search_81(self):
|
||||
assert rabin_karp_search(pat='KvNG{l,eA', txt='v1]8PbMfI') == []
|
||||
|
||||
def test_rabin_karp_search_82(self):
|
||||
assert rabin_karp_search(pat='[doZ`/"', txt='la`[QV+') == []
|
||||
|
||||
def test_rabin_karp_search_83(self):
|
||||
assert rabin_karp_search(pat='"', txt=',{Ie?_`a=') == []
|
||||
|
||||
def test_rabin_karp_search_84(self):
|
||||
assert rabin_karp_search(pat='l', txt='&sf*jS(') == []
|
||||
|
||||
def test_rabin_karp_search_85(self):
|
||||
assert rabin_karp_search(pat='j6!', txt='vr3w') == []
|
||||
|
||||
def test_rabin_karp_search_86(self):
|
||||
assert rabin_karp_search(pat='1kfuy:', txt='iy%Z<Pc=') == []
|
||||
|
||||
def test_rabin_karp_search_87(self):
|
||||
assert rabin_karp_search(pat='#', txt='V((p=)(G') == []
|
||||
|
||||
def test_rabin_karp_search_88(self):
|
||||
assert rabin_karp_search(pat='Vb+\', txt='&Tg}i#j<t') == []
|
||||
|
||||
def test_rabin_karp_search_89(self):
|
||||
assert rabin_karp_search(pat='wjaXze3', txt='C#-s/*w') == []
|
||||
|
||||
def test_rabin_karp_search_90(self):
|
||||
assert rabin_karp_search(pat='!e$&\i', txt='F#29$ixn') == []
|
||||
|
||||
def test_rabin_karp_search_91(self):
|
||||
assert rabin_karp_search(pat='g[NA', txt='H7`?D') == []
|
||||
|
||||
def test_rabin_karp_search_92(self):
|
||||
assert rabin_karp_search(pat='Th Dl', txt='a:uH$>') == []
|
||||
|
||||
def test_rabin_karp_search_93(self):
|
||||
assert rabin_karp_search(pat='&05#i', txt='B(\b=') == []
|
||||
|
||||
def test_rabin_karp_search_94(self):
|
||||
assert rabin_karp_search(pat='~', txt='1$ i0$3') == []
|
||||
|
||||
def test_rabin_karp_search_95(self):
|
||||
assert rabin_karp_search(pat='!7T', txt='$9m$n') == []
|
||||
|
||||
def test_rabin_karp_search_96(self):
|
||||
assert rabin_karp_search(pat='Ge<', txt='`gx') == []
|
||||
|
||||
def test_rabin_karp_search_97(self):
|
||||
assert rabin_karp_search(pat=':*wJ'K<i', txt='xZEXgKyZt') == []
|
||||
|
||||
def test_rabin_karp_search_98(self):
|
||||
assert rabin_karp_search(pat='jE/', txt='Ko'L0V_=') == []
|
||||
|
||||
def test_rabin_karp_search_99(self):
|
||||
assert rabin_karp_search(pat='', txt=':^Y/') == []
|
||||
|
||||
def test_rabin_karp_search_100(self):
|
||||
assert rabin_karp_search(pat='_', txt='d]') == []
|
|
@ -1,305 +0,0 @@
|
|||
from unittest import TestCase
|
||||
|
||||
from benchmark.railfence_cipher import raildecrypt
|
||||
|
||||
|
||||
class Test_raildecrypt(TestCase):
|
||||
def test_raildecrypt_1(self):
|
||||
assert raildecrypt(st='.', k=834) == '.'
|
||||
|
||||
def test_raildecrypt_2(self):
|
||||
assert raildecrypt(st=' xM7d1h', k=915) == ' xM7d1h'
|
||||
|
||||
def test_raildecrypt_3(self):
|
||||
assert raildecrypt(st='m8p[>', k=216) == 'm8p[>'
|
||||
|
||||
def test_raildecrypt_4(self):
|
||||
assert raildecrypt(st='~(D', k=686) == '~(D'
|
||||
|
||||
def test_raildecrypt_5(self):
|
||||
assert raildecrypt(st='', k=127) == ''
|
||||
|
||||
def test_raildecrypt_6(self):
|
||||
assert raildecrypt(st='-O HB', k=600) == '-O HB'
|
||||
|
||||
def test_raildecrypt_7(self):
|
||||
assert raildecrypt(st='2A/L~[%4', k=339) == '2A/L~[%4'
|
||||
|
||||
def test_raildecrypt_8(self):
|
||||
assert raildecrypt(st='', k=16) == ''
|
||||
|
||||
def test_raildecrypt_9(self):
|
||||
assert raildecrypt(st='4$/Ou', k=865) == '4$/Ou'
|
||||
|
||||
def test_raildecrypt_10(self):
|
||||
assert raildecrypt(st='h"!/', k=365) == 'h"!/'
|
||||
|
||||
def test_raildecrypt_11(self):
|
||||
assert raildecrypt(st=';PG.T\F#', k=615) == ';PG.T\F#'
|
||||
|
||||
def test_raildecrypt_12(self):
|
||||
assert raildecrypt(st='yu*~', k=465) == 'yu*~'
|
||||
|
||||
def test_raildecrypt_13(self):
|
||||
assert raildecrypt(st='!_/ieWr7', k=662) == '!_/ieWr7'
|
||||
|
||||
def test_raildecrypt_14(self):
|
||||
assert raildecrypt(st='E', k=317) == 'E'
|
||||
|
||||
def test_raildecrypt_15(self):
|
||||
assert raildecrypt(st='kK$q)[!E5', k=362) == 'kK$q)[!E5'
|
||||
|
||||
def test_raildecrypt_16(self):
|
||||
assert raildecrypt(st='', k=574) == ''
|
||||
|
||||
def test_raildecrypt_17(self):
|
||||
assert raildecrypt(st='M/8@&k^', k=539) == 'M/8@&k^'
|
||||
|
||||
def test_raildecrypt_18(self):
|
||||
assert raildecrypt(st='$sx%*4T', k=211) == '$sx%*4T'
|
||||
|
||||
def test_raildecrypt_19(self):
|
||||
assert raildecrypt(st='IH!=Y`l*', k=353) == 'IH!=Y`l*'
|
||||
|
||||
def test_raildecrypt_20(self):
|
||||
assert raildecrypt(st='{tZ', k=848) == '{tZ'
|
||||
|
||||
def test_raildecrypt_21(self):
|
||||
assert raildecrypt(st='4q>', k=867) == '4q>'
|
||||
|
||||
def test_raildecrypt_22(self):
|
||||
assert raildecrypt(st='', k=353) == ''
|
||||
|
||||
def test_raildecrypt_23(self):
|
||||
assert raildecrypt(st='l9', k=172) == 'l9'
|
||||
|
||||
def test_raildecrypt_24(self):
|
||||
assert raildecrypt(st='e^P^?', k=669) == 'e^P^?'
|
||||
|
||||
def test_raildecrypt_25(self):
|
||||
assert raildecrypt(st='ye'SJ~bE!', k=267) == 'ye'SJ~bE!'
|
||||
|
||||
def test_raildecrypt_26(self):
|
||||
assert raildecrypt(st='Mp+', k=957) == 'Mp+'
|
||||
|
||||
def test_raildecrypt_27(self):
|
||||
assert raildecrypt(st='p>^Ey', k=166) == 'p>^Ey'
|
||||
|
||||
def test_raildecrypt_28(self):
|
||||
assert raildecrypt(st='', k=143) == ''
|
||||
|
||||
def test_raildecrypt_29(self):
|
||||
assert raildecrypt(st='2*"jzdlK', k=253) == '2*"jzdlK'
|
||||
|
||||
def test_raildecrypt_30(self):
|
||||
assert raildecrypt(st=''h', k=437) == ''h'
|
||||
|
||||
def test_raildecrypt_31(self):
|
||||
assert raildecrypt(st='', k=745) == ''
|
||||
|
||||
def test_raildecrypt_32(self):
|
||||
assert raildecrypt(st='B/#\V2!5', k=547) == 'B/#\V2!5'
|
||||
|
||||
def test_raildecrypt_33(self):
|
||||
assert raildecrypt(st='&FH5k`Wu^', k=603) == '&FH5k`Wu^'
|
||||
|
||||
def test_raildecrypt_34(self):
|
||||
assert raildecrypt(st='L/6v', k=336) == 'L/6v'
|
||||
|
||||
def test_raildecrypt_35(self):
|
||||
assert raildecrypt(st='!_/ieWr7', k=835) == '!_/ieWr7'
|
||||
|
||||
def test_raildecrypt_36(self):
|
||||
assert raildecrypt(st='', k=835) == ''
|
||||
|
||||
def test_raildecrypt_37(self):
|
||||
assert raildecrypt(st=']!R`', k=737) == ']!R`'
|
||||
|
||||
def test_raildecrypt_38(self):
|
||||
assert raildecrypt(st='d(e!3sY', k=430) == 'd(e!3sY'
|
||||
|
||||
def test_raildecrypt_39(self):
|
||||
assert raildecrypt(st='ky', k=572) == 'ky'
|
||||
|
||||
def test_raildecrypt_40(self):
|
||||
assert raildecrypt(st='qv;', k=952) == 'qv;'
|
||||
|
||||
def test_raildecrypt_41(self):
|
||||
assert raildecrypt(st='QOZQ.g+-', k=956) == 'QOZQ.g+-'
|
||||
|
||||
def test_raildecrypt_42(self):
|
||||
assert raildecrypt(st='^G0', k=892) == '^G0'
|
||||
|
||||
def test_raildecrypt_43(self):
|
||||
assert raildecrypt(st='Z', k=662) == 'Z'
|
||||
|
||||
def test_raildecrypt_44(self):
|
||||
assert raildecrypt(st='(X', k=95) == '(X'
|
||||
|
||||
def test_raildecrypt_45(self):
|
||||
assert raildecrypt(st='st', k=208) == 'st'
|
||||
|
||||
def test_raildecrypt_46(self):
|
||||
assert raildecrypt(st='(X[J)2Z', k=146) == '(X[J)2Z'
|
||||
|
||||
def test_raildecrypt_47(self):
|
||||
assert raildecrypt(st='*C\>', k=288) == '*C\>'
|
||||
|
||||
def test_raildecrypt_48(self):
|
||||
assert raildecrypt(st='Jh', k=508) == 'Jh'
|
||||
|
||||
def test_raildecrypt_49(self):
|
||||
assert raildecrypt(st='<~7+4', k=89) == '<~7+4'
|
||||
|
||||
def test_raildecrypt_50(self):
|
||||
assert raildecrypt(st='0DZViP$', k=922) == '0DZViP$'
|
||||
|
||||
def test_raildecrypt_51(self):
|
||||
assert raildecrypt(st='', k=726) == ''
|
||||
|
||||
def test_raildecrypt_52(self):
|
||||
assert raildecrypt(st='vJaiN.OB', k=843) == 'vJaiN.OB'
|
||||
|
||||
def test_raildecrypt_53(self):
|
||||
assert raildecrypt(st='N}`4', k=839) == 'N}`4'
|
||||
|
||||
def test_raildecrypt_54(self):
|
||||
assert raildecrypt(st='!_/ieWr7', k=147) == '!_/ieWr7'
|
||||
|
||||
def test_raildecrypt_55(self):
|
||||
assert raildecrypt(st='Cl6b[', k=186) == 'Cl6b['
|
||||
|
||||
def test_raildecrypt_56(self):
|
||||
assert raildecrypt(st='|bAbRFtS', k=651) == '|bAbRFtS'
|
||||
|
||||
def test_raildecrypt_57(self):
|
||||
assert raildecrypt(st='Nz', k=164) == 'Nz'
|
||||
|
||||
def test_raildecrypt_58(self):
|
||||
assert raildecrypt(st='OF', k=697) == 'OF'
|
||||
|
||||
def test_raildecrypt_59(self):
|
||||
assert raildecrypt(st='', k=557) == ''
|
||||
|
||||
def test_raildecrypt_60(self):
|
||||
assert raildecrypt(st='hHw', k=360) == 'hHw'
|
||||
|
||||
def test_raildecrypt_61(self):
|
||||
assert raildecrypt(st='?bb(.`|', k=502) == '?bb(.`|'
|
||||
|
||||
def test_raildecrypt_62(self):
|
||||
assert raildecrypt(st='x`z,X&U)', k=315) == 'x`z,X&U)'
|
||||
|
||||
def test_raildecrypt_63(self):
|
||||
assert raildecrypt(st='[', k=665) == '['
|
||||
|
||||
def test_raildecrypt_64(self):
|
||||
assert raildecrypt(st='F{<I'HcB', k=898) == 'F{<I'HcB'
|
||||
|
||||
def test_raildecrypt_65(self):
|
||||
assert raildecrypt(st='fbXYs32|', k=864) == 'fbXYs32|'
|
||||
|
||||
def test_raildecrypt_66(self):
|
||||
assert raildecrypt(st='q', k=533) == 'q'
|
||||
|
||||
def test_raildecrypt_67(self):
|
||||
assert raildecrypt(st='', k=70) == ''
|
||||
|
||||
def test_raildecrypt_68(self):
|
||||
assert raildecrypt(st='\~pRYm', k=81) == '\~pRYm'
|
||||
|
||||
def test_raildecrypt_69(self):
|
||||
assert raildecrypt(st='xD'', k=836) == 'xD''
|
||||
|
||||
def test_raildecrypt_70(self):
|
||||
assert raildecrypt(st='8p+S~< \', k=705) == '8p+S~< \'
|
||||
|
||||
def test_raildecrypt_71(self):
|
||||
assert raildecrypt(st='', k=946) == ''
|
||||
|
||||
def test_raildecrypt_72(self):
|
||||
assert raildecrypt(st='vJaiN.cB', k=843) == 'vJaiN.cB'
|
||||
|
||||
def test_raildecrypt_73(self):
|
||||
assert raildecrypt(st='JCXpF', k=79) == 'JCXpF'
|
||||
|
||||
def test_raildecrypt_74(self):
|
||||
assert raildecrypt(st='', k=896) == ''
|
||||
|
||||
def test_raildecrypt_75(self):
|
||||
assert raildecrypt(st='K.2', k=669) == 'K.2'
|
||||
|
||||
def test_raildecrypt_76(self):
|
||||
assert raildecrypt(st='M;9&HYe', k=691) == 'M;9&HYe'
|
||||
|
||||
def test_raildecrypt_77(self):
|
||||
assert raildecrypt(st='', k=506) == ''
|
||||
|
||||
def test_raildecrypt_78(self):
|
||||
assert raildecrypt(st='\'H?>Dhq', k=883) == '\'H?>Dhq'
|
||||
|
||||
def test_raildecrypt_79(self):
|
||||
assert raildecrypt(st='E', k=557) == 'E'
|
||||
|
||||
def test_raildecrypt_80(self):
|
||||
assert raildecrypt(st='|bD', k=651) == '|bD'
|
||||
|
||||
def test_raildecrypt_81(self):
|
||||
assert raildecrypt(st='?bb(.`', k=502) == '?bb(.`'
|
||||
|
||||
def test_raildecrypt_82(self):
|
||||
assert raildecrypt(st='{,rXk!3W', k=885) == '{,rXk!3W'
|
||||
|
||||
def test_raildecrypt_83(self):
|
||||
assert raildecrypt(st=' WS`#ov ~', k=189) == ' WS`#ov ~'
|
||||
|
||||
def test_raildecrypt_84(self):
|
||||
assert raildecrypt(st='-O HB', k=208) == '-O HB'
|
||||
|
||||
def test_raildecrypt_85(self):
|
||||
assert raildecrypt(st='[', k=714) == '['
|
||||
|
||||
def test_raildecrypt_86(self):
|
||||
assert raildecrypt(st='Ckmi|', k=14) == 'Ckmi|'
|
||||
|
||||
def test_raildecrypt_87(self):
|
||||
assert raildecrypt(st='mHbwuB', k=931) == 'mHbwuB'
|
||||
|
||||
def test_raildecrypt_88(self):
|
||||
assert raildecrypt(st='_?->'}#', k=388) == '_?->'}#'
|
||||
|
||||
def test_raildecrypt_89(self):
|
||||
assert raildecrypt(st='', k=454) == ''
|
||||
|
||||
def test_raildecrypt_90(self):
|
||||
assert raildecrypt(st='&,+f9p}y>', k=990) == '&,+f9p}y>'
|
||||
|
||||
def test_raildecrypt_91(self):
|
||||
assert raildecrypt(st='JCXpF', k=726) == 'JCXpF'
|
||||
|
||||
def test_raildecrypt_92(self):
|
||||
assert raildecrypt(st='B', k=350) == 'B'
|
||||
|
||||
def test_raildecrypt_93(self):
|
||||
assert raildecrypt(st='g_=f.B1U', k=960) == 'g_=f.B1U'
|
||||
|
||||
def test_raildecrypt_94(self):
|
||||
assert raildecrypt(st='Zb', k=614) == 'Zb'
|
||||
|
||||
def test_raildecrypt_95(self):
|
||||
assert raildecrypt(st='Y/', k=867) == 'Y/'
|
||||
|
||||
def test_raildecrypt_96(self):
|
||||
assert raildecrypt(st=''CXpF', k=437) == ''CXpF'
|
||||
|
||||
def test_raildecrypt_97(self):
|
||||
assert raildecrypt(st='X:F', k=695) == 'X:F'
|
||||
|
||||
def test_raildecrypt_98(self):
|
||||
assert raildecrypt(st='HR9.T\F#', k=662) == 'HR9.T\F#'
|
||||
|
||||
def test_raildecrypt_99(self):
|
||||
assert raildecrypt(st='', k=362) == ''
|
||||
|
||||
def test_raildecrypt_100(self):
|
||||
assert raildecrypt(st='', k=360) == ''
|
|
@ -1,14 +0,0 @@
|
|||
from unittest import TestCase
|
||||
|
||||
from benchmark.railfence_cipher import railencrypt
|
||||
|
||||
|
||||
class Test_railencrypt(TestCase):
|
||||
def test_railencrypt_1(self):
|
||||
assert railencrypt(st='6u#%', k=3) == '6u%#'
|
||||
|
||||
def test_railencrypt_2(self):
|
||||
assert railencrypt(st='6uD*z(', k=3) == '6zu*(D'
|
||||
|
||||
def test_railencrypt_3(self):
|
||||
assert railencrypt(st='(', k=307) == '('
|
|
@ -1,305 +0,0 @@
|
|||
from unittest import TestCase
|
||||
|
||||
from benchmark.zellers_birthday import zeller
|
||||
|
||||
|
||||
class Test_zeller(TestCase):
|
||||
def test_zeller_1(self):
|
||||
assert zeller(d=-145, m=296, y=-46) == 'Sunday'
|
||||
|
||||
def test_zeller_2(self):
|
||||
assert zeller(d=521, m=722, y=29) == 'Tuesday'
|
||||
|
||||
def test_zeller_3(self):
|
||||
assert zeller(d=247, m=270, y=48) == 'Saturday'
|
||||
|
||||
def test_zeller_4(self):
|
||||
assert zeller(d=-300, m=-543, y=-34) == 'Sunday'
|
||||
|
||||
def test_zeller_5(self):
|
||||
assert zeller(d=-788, m=722, y=71) == 'Sunday'
|
||||
|
||||
def test_zeller_6(self):
|
||||
assert zeller(d=355, m=8, y=-34) == 'Wednesday'
|
||||
|
||||
def test_zeller_7(self):
|
||||
assert zeller(d=-830, m=-538, y=71) == 'Thursday'
|
||||
|
||||
def test_zeller_8(self):
|
||||
assert zeller(d=368, m=726, y=-99) == 'Wednesday'
|
||||
|
||||
def test_zeller_9(self):
|
||||
assert zeller(d=758, m=-547, y=80) == 'Friday'
|
||||
|
||||
def test_zeller_10(self):
|
||||
assert zeller(d=165, m=435, y=32) == 'Monday'
|
||||
|
||||
def test_zeller_11(self):
|
||||
assert zeller(d=-850, m=22, y=-41) == 'Friday'
|
||||
|
||||
def test_zeller_12(self):
|
||||
assert zeller(d=769, m=964, y=17) == 'Friday'
|
||||
|
||||
def test_zeller_13(self):
|
||||
assert zeller(d=-850, m=855, y=-41) == 'Monday'
|
||||
|
||||
def test_zeller_14(self):
|
||||
assert zeller(d=591, m=350, y=-13) == 'Sunday'
|
||||
|
||||
def test_zeller_15(self):
|
||||
assert zeller(d=696, m=-967, y=-91) == 'Thursday'
|
||||
|
||||
def test_zeller_16(self):
|
||||
assert zeller(d=-161, m=-656, y=-67) == 'Thursday'
|
||||
|
||||
def test_zeller_17(self):
|
||||
assert zeller(d=-160, m=850, y=53) == 'Friday'
|
||||
|
||||
def test_zeller_18(self):
|
||||
assert zeller(d=-366, m=306, y=48) == 'Monday'
|
||||
|
||||
def test_zeller_19(self):
|
||||
assert zeller(d=226, m=-15, y=32) == 'Sunday'
|
||||
|
||||
def test_zeller_20(self):
|
||||
assert zeller(d=-850, m=19, y=-41) == 'Thursday'
|
||||
|
||||
def test_zeller_21(self):
|
||||
assert zeller(d=-671, m=-984, y=-76) == 'Wednesday'
|
||||
|
||||
def test_zeller_22(self):
|
||||
assert zeller(d=423, m=-719, y=94) == 'Wednesday'
|
||||
|
||||
def test_zeller_23(self):
|
||||
assert zeller(d=255, m=-385, y=-2) == 'Friday'
|
||||
|
||||
def test_zeller_24(self):
|
||||
assert zeller(d=-769, m=-410, y=46) == 'Tuesday'
|
||||
|
||||
def test_zeller_25(self):
|
||||
assert zeller(d=-645, m=-746, y=37) == 'Friday'
|
||||
|
||||
def test_zeller_26(self):
|
||||
assert zeller(d=413, m=720, y=-43) == 'Monday'
|
||||
|
||||
def test_zeller_27(self):
|
||||
assert zeller(d=-583, m=971, y=-66) == 'Monday'
|
||||
|
||||
def test_zeller_28(self):
|
||||
assert zeller(d=-331, m=-808, y=51) == 'Tuesday'
|
||||
|
||||
def test_zeller_29(self):
|
||||
assert zeller(d=86, m=249, y=11) == 'Tuesday'
|
||||
|
||||
def test_zeller_30(self):
|
||||
assert zeller(d=425, m=484, y=-43) == 'Sunday'
|
||||
|
||||
def test_zeller_31(self):
|
||||
assert zeller(d=-161, m=-523, y=-67) == 'Monday'
|
||||
|
||||
def test_zeller_32(self):
|
||||
assert zeller(d=953, m=-629, y=29) == 'Monday'
|
||||
|
||||
def test_zeller_33(self):
|
||||
assert zeller(d=616, m=-410, y=37) == 'Sunday'
|
||||
|
||||
def test_zeller_34(self):
|
||||
assert zeller(d=422, m=758, y=48) == 'Saturday'
|
||||
|
||||
def test_zeller_35(self):
|
||||
assert zeller(d=-310, m=-713, y=-48) == 'Tuesday'
|
||||
|
||||
def test_zeller_36(self):
|
||||
assert zeller(d=611, m=-17, y=-50) == 'Friday'
|
||||
|
||||
def test_zeller_37(self):
|
||||
assert zeller(d=-957, m=-238, y=40) == 'Thursday'
|
||||
|
||||
def test_zeller_38(self):
|
||||
assert zeller(d=122, m=-716, y=-76) == 'Thursday'
|
||||
|
||||
def test_zeller_39(self):
|
||||
assert zeller(d=-8, m=541, y=-76) == 'Sunday'
|
||||
|
||||
def test_zeller_40(self):
|
||||
assert zeller(d=-435, m=895, y=71) == 'Monday'
|
||||
|
||||
def test_zeller_41(self):
|
||||
assert zeller(d=407, m=-333, y=15) == 'Monday'
|
||||
|
||||
def test_zeller_42(self):
|
||||
assert zeller(d=86, m=67, y=11) == 'Thursday'
|
||||
|
||||
def test_zeller_43(self):
|
||||
assert zeller(d=-677, m=658, y=-63) == 'Wednesday'
|
||||
|
||||
def test_zeller_44(self):
|
||||
assert zeller(d=-773, m=7, y=-95) == 'Sunday'
|
||||
|
||||
def test_zeller_45(self):
|
||||
assert zeller(d=616, m=580, y=37) == 'Friday'
|
||||
|
||||
def test_zeller_46(self):
|
||||
assert zeller(d=122, m=541, y=97) == 'Sunday'
|
||||
|
||||
def test_zeller_47(self):
|
||||
assert zeller(d=326, m=229, y=60) == 'Wednesday'
|
||||
|
||||
def test_zeller_48(self):
|
||||
assert zeller(d=107, m=484, y=-43) == 'Saturday'
|
||||
|
||||
def test_zeller_49(self):
|
||||
assert zeller(d=-8, m=-951, y=-76) == 'Thursday'
|
||||
|
||||
def test_zeller_50(self):
|
||||
assert zeller(d=-817, m=-423, y=15) == 'Sunday'
|
||||
|
||||
def test_zeller_51(self):
|
||||
assert zeller(d=9, m=-433, y=-43) == 'Tuesday'
|
||||
|
||||
def test_zeller_52(self):
|
||||
assert zeller(d=-932, m=-543, y=-34) == 'Tuesday'
|
||||
|
||||
def test_zeller_53(self):
|
||||
assert zeller(d=-247, m=-255, y=28) == 'Tuesday'
|
||||
|
||||
def test_zeller_54(self):
|
||||
assert zeller(d=-415, m=-393, y=15) == 'Tuesday'
|
||||
|
||||
def test_zeller_55(self):
|
||||
assert zeller(d=-830, m=-415, y=71) == 'Wednesday'
|
||||
|
||||
def test_zeller_56(self):
|
||||
assert zeller(d=-823, m=-616, y=-46) == 'Saturday'
|
||||
|
||||
def test_zeller_57(self):
|
||||
assert zeller(d=107, m=-656, y=-43) == 'Wednesday'
|
||||
|
||||
def test_zeller_58(self):
|
||||
assert zeller(d=111, m=365, y=37) == 'Saturday'
|
||||
|
||||
def test_zeller_59(self):
|
||||
assert zeller(d=278, m=379, y=24) == 'Sunday'
|
||||
|
||||
def test_zeller_60(self):
|
||||
assert zeller(d=247, m=2, y=48) == 'Tuesday'
|
||||
|
||||
def test_zeller_61(self):
|
||||
assert zeller(d=805, m=-464, y=80) == 'Wednesday'
|
||||
|
||||
def test_zeller_62(self):
|
||||
assert zeller(d=291, m=-215, y=47) == 'Saturday'
|
||||
|
||||
def test_zeller_63(self):
|
||||
assert zeller(d=-69, m=-772, y=-2) == 'Wednesday'
|
||||
|
||||
def test_zeller_64(self):
|
||||
assert zeller(d=756, m=-533, y=7) == 'Wednesday'
|
||||
|
||||
def test_zeller_65(self):
|
||||
assert zeller(d=-69, m=522, y=-34) == 'Sunday'
|
||||
|
||||
def test_zeller_66(self):
|
||||
assert zeller(d=-788, m=37, y=71) == 'Sunday'
|
||||
|
||||
def test_zeller_67(self):
|
||||
assert zeller(d=413, m=-523, y=-43) == 'Wednesday'
|
||||
|
||||
def test_zeller_68(self):
|
||||
assert zeller(d=-197, m=-896, y=48) == 'Sunday'
|
||||
|
||||
def test_zeller_69(self):
|
||||
assert zeller(d=122, m=497, y=-76) == 'Wednesday'
|
||||
|
||||
def test_zeller_70(self):
|
||||
assert zeller(d=-230, m=-366, y=-11) == 'Thursday'
|
||||
|
||||
def test_zeller_71(self):
|
||||
assert zeller(d=-334, m=-945, y=81) == 'Sunday'
|
||||
|
||||
def test_zeller_72(self):
|
||||
assert zeller(d=-541, m=-333, y=87) == 'Thursday'
|
||||
|
||||
def test_zeller_73(self):
|
||||
assert zeller(d=-876, m=60, y=-99) == 'Saturday'
|
||||
|
||||
def test_zeller_74(self):
|
||||
assert zeller(d=-693, m=-503, y=85) == 'Thursday'
|
||||
|
||||
def test_zeller_75(self):
|
||||
assert zeller(d=-230, m=717, y=-11) == 'Friday'
|
||||
|
||||
def test_zeller_76(self):
|
||||
assert zeller(d=-401, m=-732, y=64) == 'Thursday'
|
||||
|
||||
def test_zeller_77(self):
|
||||
assert zeller(d=413, m=-656, y=-43) == 'Saturday'
|
||||
|
||||
def test_zeller_78(self):
|
||||
assert zeller(d=659, m=-98, y=83) == 'Wednesday'
|
||||
|
||||
def test_zeller_79(self):
|
||||
assert zeller(d=341, m=871, y=83) == 'Monday'
|
||||
|
||||
def test_zeller_80(self):
|
||||
assert zeller(d=-154, m=-333, y=15) == 'Saturday'
|
||||
|
||||
def test_zeller_81(self):
|
||||
assert zeller(d=-635, m=885, y=-87) == 'Friday'
|
||||
|
||||
def test_zeller_82(self):
|
||||
assert zeller(d=516, m=-897, y=67) == 'Saturday'
|
||||
|
||||
def test_zeller_83(self):
|
||||
assert zeller(d=336, m=281, y=-11) == 'Monday'
|
||||
|
||||
def test_zeller_84(self):
|
||||
assert zeller(d=-160, m=-348, y=53) == 'Tuesday'
|
||||
|
||||
def test_zeller_85(self):
|
||||
assert zeller(d=56, m=-656, y=-43) == 'Sunday'
|
||||
|
||||
def test_zeller_86(self):
|
||||
assert zeller(d=-645, m=365, y=37) == 'Saturday'
|
||||
|
||||
def test_zeller_87(self):
|
||||
assert zeller(d=-621, m=-905, y=56) == 'Saturday'
|
||||
|
||||
def test_zeller_88(self):
|
||||
assert zeller(d=-893, m=-785, y=-13) == 'Wednesday'
|
||||
|
||||
def test_zeller_89(self):
|
||||
assert zeller(d=138, m=964, y=17) == 'Monday'
|
||||
|
||||
def test_zeller_90(self):
|
||||
assert zeller(d=-674, m=-1, y=24) == 'Thursday'
|
||||
|
||||
def test_zeller_91(self):
|
||||
assert zeller(d=411, m=-351, y=-66) == 'Saturday'
|
||||
|
||||
def test_zeller_92(self):
|
||||
assert zeller(d=669, m=-1, y=1) == 'Friday'
|
||||
|
||||
def test_zeller_93(self):
|
||||
assert zeller(d=962, m=-681, y=-9) == 'Friday'
|
||||
|
||||
def test_zeller_94(self):
|
||||
assert zeller(d=674, m=878, y=46) == 'Sunday'
|
||||
|
||||
def test_zeller_95(self):
|
||||
assert zeller(d=-242, m=-333, y=15) == 'Monday'
|
||||
|
||||
def test_zeller_96(self):
|
||||
assert zeller(d=191, m=-785, y=-13) == 'Thursday'
|
||||
|
||||
def test_zeller_97(self):
|
||||
assert zeller(d=122, m=-925, y=97) == 'Sunday'
|
||||
|
||||
def test_zeller_98(self):
|
||||
assert zeller(d=-437, m=-491, y=-11) == 'Sunday'
|
||||
|
||||
def test_zeller_99(self):
|
||||
assert zeller(d=-230, m=238, y=-11) == 'Monday'
|
||||
|
||||
def test_zeller_100(self):
|
||||
assert zeller(d=171, m=29, y=-90) == 'Sunday'
|
Reference in a new issue