Question: Write 2 negative tests to establish that the valid range for the length parameter is between 1 and 100. Write 10 positive tests to establish

  1. Write 2 negative tests to establish that the valid range for the length parameter is between 1 and 100.
  2. Write 10 positive tests to establish that it returns the correct string for length parameter values 1 through 10, using the default constructor.
  3. Write a positive test for a length parameter of 30 using default constructor.
  4. Write a positive test for a length parameter of 50 using default constructor.
  5. Write a positive test for a length parameter of 100 using default constructor.
  6. Write however many positive tests you deem necessary to establish that the non-default constructor works as it should.

Step by Step Solution

3.48 Rating (158 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Negative Test 1 Input length 0 Expected Result The function should return an error indicating that t... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!