コード例 #1
0
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))
コード例 #2
0
def set_end(context, d):
	ansarr = []
	ansarr = askfunc.answerQuests(int(d))
	assert len(ansarr) == int(d)