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.
Test List is below. Each test is intended for testing specific type of strings.
a. Strings with only single blank characters
b. Strings with sequences of blank characters in the middle of the string
c. Strings with sequences of blank characters at the beginning/end of string
Strings that should be tested are listed below.
1. The quick brown fox jumped over the lazy dog (only single blanks)
2. The quick brown fox jumped over the lazy dog (different numbers of blanks in the
sequence)
3. The quick brown fox jumped over the lazy dog (1' blank is a sequence)
4. The quick brown fox jumped over the lazy dog (Last blank is a sequence)
5. The quick brown fox jumped over the lazy dog (2 blanks at beginning)
6. The quick brown fox jumped over the lazy dog (several blanks at beginning)
7. The quick brown fox jumped over the lazy dog (2 blanks at end)
8. The quick brown fox jumped over the lazy dog (several blanks at end)
Possible answers are listed below. Please circle the most comprehensive one
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.
Test List is below. Each test is intended for testing specific type of strings.
a. Strings with only single blank characters
b. Strings with sequences of blank characters in the middle of the string
c. Strings with sequences of blank characters at the beginning/end of string
Strings that should be tested are listed below.
1. The quick brown fox jumped over the lazy dog (only single blanks)
2. The quick brown fox jumped over the lazy dog (different numbers of blanks in the
sequence)
3. The quick brown fox jumped over the lazy dog (1' blank is a sequence)
4. The quick brown fox jumped over the lazy dog (Last blank is a sequence)
5. The quick brown fox jumped over the lazy dog (2 blanks at beginning)
6. The quick brown fox jumped over the lazy dog (several blanks at beginning)
7. The quick brown fox jumped over the lazy dog (2 blanks at end)
8. The quick brown fox jumped over the lazy dog (several blanks at end)
Possible answers are listed below. Please circle the most comprehensive one
* השאלה נוספה בתאריך: 15-10-2019