Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1724)

Unified Diff: lib/src/string_matchers.dart

Issue 994703003: Fix equalsIgnoringWhitespace examples. (Closed) Base URL: git@github.com:dart-lang/matcher@master
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « CHANGELOG.md ('k') | pubspec.yaml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/string_matchers.dart
diff --git a/lib/src/string_matchers.dart b/lib/src/string_matchers.dart
index c93963f4b7f07040c34a9742c9bf296b5803abfd..46434342d003804b5fd5cb0c9436e4f6c1705171 100644
--- a/lib/src/string_matchers.dart
+++ b/lib/src/string_matchers.dart
@@ -34,14 +34,14 @@ class _IsEqualIgnoringCase extends _StringMatcher {
///
/// For example, the following will all match successfully:
///
-/// expect("hello world", equalsIgnoringCase("hello world"));
-/// expect(" hello world", equalsIgnoringCase("hello world"));
-/// expect("hello world ", equalsIgnoringCase("hello world"));
+/// expect("hello world", equalsIgnoringWhitespace("hello world"));
+/// expect(" hello world", equalsIgnoringWhitespace("hello world"));
+/// expect("hello world ", equalsIgnoringWhitespace("hello world"));
///
/// The following will not match:
///
-/// expect("helloworld", equalsIgnoringCase("hello world"));
-/// expect("he llo world", equalsIgnoringCase("hello world"));
+/// expect("helloworld", equalsIgnoringWhitespace("hello world"));
+/// expect("he llo world", equalsIgnoringWhitespace("hello world"));
Matcher equalsIgnoringWhitespace(String value) =>
new _IsEqualIgnoringWhitespace(value);
« no previous file with comments | « CHANGELOG.md ('k') | pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698