Answered step by step
Verified Expert Solution
Question
1 Approved Answer
In this part, you will write regular expressions for 4 problems and create test cases for them (5 matching, 5 non-matching as previously). You will
In this part, you will write regular expressions for 4 problems and create test cases for them (5 matching, 5 non-matching as previously). You will also practice interpreting a written specification into program requirements - remember, edge cases matter! An example of this is also shown further down.
- Integer List: A list of comma-separated, positive integers surrounded by square brackets []. A optional single space character is allowed after the comma.
- The number of integers is not specified, so an empty list ([]) is allowed.
- The term comma-separated implies that a trailing comma ([1, 2, 3,]) is not allowed.
- The single space character does not need to be consistent, so mixed spaces ([1,2, 3]) is allowed (this makes it a bit easier to implement).
- Examples: [1], [1,2,3]
- Non-Examples: 1,2,3, [1 2 3]
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started