对于mode1
1 路径下一个空文件夹 结果:生成一个空的txt
2路径下一个文件夹内包含一个txt内容为abd(最基本的一个单词)
3路径下一个空文件夹一个txt,txt内容为以不同符号分割的基本的一些单词(abdc adce!asd)
4路径下一个文件夹内包含一个txt内容为一些正确的单词和一个错误的单词的混杂,错误的单词在最后
5路径下一个文件与4中的那个一样,非单词的后面加入一个单词
对于mode2和mode3
5路径下一个文件夹内包含一个txt内容为包含大小写不同的具有相同小写模样的2字词组,测试大小写的区别以及无效单词
6路径下一个文件夹内包含4个一样的在测试5中的txt(多文件测试)
7路径下一个文件夹内包含4个一样内容的分别为.cs .h .cpp .txt的4个文件(文件类型测试)
8路径下一个txt文件内容与上面的比起来
末尾多了一个已经包含的词组(如the man),但是这个词组的第一个词为qwethe
词组总共为qwethe man 观察是否the man 的计数会多一次
10 路径下一个文件与4中的那个一样,非单词的后面加入一个单词,上面的测试带入mode2测试是否非单词的两侧的单词组成了词组
11由于mode3仅仅是mode2的拓展,所以mode3只进行最基础的测试,路径下一个txt文件内容为包含多个三字词组,以及一部分两字词组
时间: 2024-08-03 19:23:45