Answer to Question #98895 in Software Engineering for Aliasgar Ansari

Question #98895
You have been asked to test a method called( Catwhitespace) in a paragraph object within paragraph,replace sequence of the blank character then with the single blank character. Identify testing partition for their example and derive the set of test for the catwhitespace method
1
Expert's answer
2019-11-21T06:29:30-0500

Identify the partitions:

Strings with only single blank characters;

Strings with sequences of blank characters in the middle of the string;

Strings with sequences of blank characters at the beginning/end of string.


Derive the set of tests for the CatWhiteSpace method:

  • We love the cakes (all blanks are single);
  • We love the cakes (Different number of blanks in the string);
  • We love the cakes (2 blanks in the beginning of the string);
  • We love the cakes (many blanks in the beginning);
  • We love the cakes (two blanks at the end);
  • We love the cakes (many blanks at the end)


P.S. If you don't see any difference between the sentences, it means that this method works well here.


Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS