Ask Question
28 April, 13:42

You have been asked to test a method called 'catwhitespace' in a 'paragraph' object that, within the paragraph, replaces sequences of blank characters with a single blank character. identify testing partitions for this example and derive a set of tests for the 'catwhitespace' method.

+5
Answers (1)
  1. 28 April, 14:35
    0
    The testing partitions are:

    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

    Examples of tests are:

    The quick brown fox jumped over the lazy dog (only single blanks)

    The quick brown fox jumped over the lazy dog (different numbers of blanks in the sequence)

    The quick brown fox jumped over the lazy dog (1st blank is a sequence)

    The quick brown fox jumped over the lazy dog (Last blank is a sequence)

    The quick brown fox jumped over the lazy dog (2 blanks at beginning)

    The quick brown fox jumped over the lazy dog (several blanks at beginning)

    The quick brown fox jumped over the lazy dog (2 blanks at end)

    The quick brown fox jumped over the lazy dog (several blanks at end)
Know the Answer?
Not Sure About the Answer?
Find an answer to your question ✅ “You have been asked to test a method called 'catwhitespace' in a 'paragraph' object that, within the paragraph, replaces sequences of blank ...” in 📘 Computers and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers