A simple python script to generate long test cases
Послано
Xitsa 27 ноя 2018 09:08
import random
letters = ['a' ,'b' ,'c' ,'d' ,'e' ,'f' ,'g' ,'h' ,'i' ,'j' ,'k' ,'l' ,'m' ,'n' ,'o' ,'p' ,'q' ,'r' ,'s' ,'t' ,'u' ,'v' ,'w' ,'x' ,'y' ,'z']
example = 'xitsa'
while len(example) < 199999:
letter = random.choice(letters)
point = random.randrange(0, len(example))
example = example[:point] + letter + letter + example[point:]
print(example)