| Index: pkg/unittest/lib/src/string_matchers.dart
|
| diff --git a/pkg/unittest/lib/src/string_matchers.dart b/pkg/unittest/lib/src/string_matchers.dart
|
| index 7f04a0cd431f2e719cc3c22169f87ebff59d8ed3..933d0a091b8288c5acdb6ccd4c699d56e7991663 100644
|
| --- a/pkg/unittest/lib/src/string_matchers.dart
|
| +++ b/pkg/unittest/lib/src/string_matchers.dart
|
| @@ -74,11 +74,11 @@ String collapseWhitespace(_string) {
|
| var character = _string[i];
|
| if (isWhitespace(character)) {
|
| if (!skipSpace) {
|
| - result.add(' ');
|
| + result.write(' ');
|
| skipSpace = true;
|
| }
|
| } else {
|
| - result.add(character);
|
| + result.write(character);
|
| skipSpace = false;
|
| }
|
| }
|
|
|