Software Testing
Software Testing
项目类别:计算机

Hello, dear friend, you can consult us at any time if you have any questions, add  WeChat:  zz-x2580


Software Testing 2019-20: Practical

Tasks
Task 1: Finding Bugs with Unit Testing [30 points]

The goal of this task is to apply unit testing to find bugs in st1920.automaton in a black-box fashion, that is, following its functional specification rather than its source code structure.

Functional specification of the system under test. The system under test provides a utility class RegExpMatcher with a single static method that serves as an interface to the entire package:

public static boolean matches(String m, String re)

This method returns true if the string m matches the pattern specified by the regular expression re, and false otherwise.

pattern1 | pattern2 matches either pattern1 or pattern2

pattern1 & pattern2 matches both pattern1 and pattern2

pattern1 pattern2 matches pattern1 followed by pattern2

pattern ? matches zero or one occurrence of pattern

pattern * matches zero or more occurrences of pattern

pattern + matches one or more occurrences of pattern

pattern {n} matches n occurrences of pattern

pattern {n,} matches n or more occurrences of pattern

pattern {n,m } matches between n and m occurrences of pattern

~ pattern matches the patterns excluded by pattern

[ charclass1 charclass2 . . . ] matches a character belonging to at least one of char- class1, char-class2 . . .

[^ charclass1 charclass2 . . . ] matches a character not belonging to any of char-class1,

char-class2 . . . (a character class charclass is either a single character c or a character range c1 –c2 )

. matches any single character

# does not match anything

@ matches any string

留学ICU™️ 留学生辅助指导品牌
在线客服 7*24 全天为您提供咨询服务
咨询电话(全球): +86 17530857517
客服QQ:2405269519
微信咨询:zz-x2580
关于我们
微信订阅号
© 2012-2021 ABC网站 站点地图:Google Sitemap | 服务条款 | 隐私政策
提示:ABC网站所开展服务及提供的文稿基于客户所提供资料,客户可用于研究目的等方面,本机构不鼓励、不提倡任何学术欺诈行为。