def set_end(context): sentences = [] holder = [] questarr = [] ansarr = [] sentences = open("pers_text.txt.sentences").read().split('\n') holder = askfunc.getClassification("pers_text.txt", sentences) questarr = askfunc.printQuests(5, holder) ansarr = askfunc.answerQuests(len(questarr)) assert (len(ansarr) == len(questarr))
def set_end(context, d): ansarr = [] ansarr = askfunc.answerQuests(int(d)) assert len(ansarr) == int(d)