Test Cases

对于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

Test Cases的相关文章

Unsupervised Learning: Use Cases

Unsupervised Learning: Use Cases Contents Visualization K-Means Clustering Transfer Learning K-Nearest Neighbors The features learned by deep neural networks can be used for the purposes of classification, clustering and regression. Neural nets are s

USER STORIES AND USE CASES - DON’T USE BOTH

We’re in Orlando for a working session as part of the Core Team building BABOK V3 and over dinner this evening we got to discussing the relationship between user stories and use cases (it wasn't the only thing we discussed, we are also a social group

深入理解openstack网络架构(2)----Basic Use Cases

原文地址: https://blogs.oracle.com/ronen/entry/diving_into_openstack_network_architecture1 译文转自: http://blog.csdn.net/halcyonbaby/article/details/41578293 在上一篇文章中,我们了解了几个网络组件,如openvswitch/network namespace/Linux bridges/veth pairs.这篇文章中,我们将用3个简单的use case

Building SQL Test Cases

For many SQL-related problems, obtaining a reproducible test case makes it easier to resolve the problem. Starting with the 11g Release 2 (11.2), Oracle Database contains the SQL Test Case Builder, which automates the somewhat difficult and time-cons

算法最坏,平均和最佳情况(Worst, Average and Best Cases)-------geeksforgeeks 翻译

最坏,平均和最佳运行时间(Worst, Average and Best Cases) 在上一篇文章中,我们讨论到了渐进分析可以解决分析算法的问题,那么在这一篇中,我们用线性搜索来举例说明一下如何用渐进分析法来分析算法的性能. 我们从三个方面分析算法: 1.最坏情况 2.平均情况 3.最佳情况 这是一段很简单的线性查找的代码 从arr[] 中查找x // Linearly search x in arr[]. If x is present then return the index, // o

As of ADT 14, resource fields cannot be used as switch cases

在导入Android Sample的ApiDemos的时候,发现R.id.xx的文件不能够在 switch cases 中使用 在google查询了下,找到以下答案: As of ADT 14, resource fields cannot be used as switch cases. In other words, the constants are not final in a library project. The reason for this is simple: When mu

FROM USE CASES TO TEST CASES

FROM USE CASES TO TEST CASES -Test note of “Essential Software Test Design” 2015-08-31 Content: 12.1 What are Use Cases?12.2 Use cases  12.2.1 Example: Use Case – Withdraw Money12.3 The Model – Compiling the Flow Graph12.4 Creating Base Test Cases  1

Union比or快 Using UNION is faster when it comes to cases like scan two different column。

problem: 595. Big Countries A country is big if it has an area of bigger than 3 million square km or a population of more than 25 million. Write a SQL solution to output big countries' name, population and area. Two obvious solutions: #OR SELECT name

简单示例用例(Simple Example Use Cases)--hive GettingStarted用例翻译

1.MovieLens User Ratings First, create a table with tab-delimited text file format: 首先,创建一个通过tab分隔的表: CREATE TABLE u_data ( userid INT, movieid INT, rating INT, unixtime STRING) ROW FORMAT DELIMITED FIELDS TERMINATED BY '\t' STORED AS TEXTFILE; Then,