A simple python script to generate long test cases
Posted by
Xitsa 27 Nov 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)