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

Unified Diff: tests/corelib_strong/string_replace_test.dart

Issue 2833073002: Stoppp using trippple consonants (Closed)
Patch Set: More spolling Created 3 years, 8 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 | « tests/corelib_strong/string_replace_all_test.dart ('k') | tests/corelib_strong/string_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/corelib_strong/string_replace_test.dart
diff --git a/tests/corelib_strong/string_replace_test.dart b/tests/corelib_strong/string_replace_test.dart
index c0d9660b57edf71f586c20c796f6916fc1c45d28..80bbe4cc2427bcec6ff75dcabcfffd504b200485 100644
--- a/tests/corelib_strong/string_replace_test.dart
+++ b/tests/corelib_strong/string_replace_test.dart
@@ -8,7 +8,7 @@ main() {
// Test replaceFirst.
Expect.equals("AtoBtoCDtoE", "AfromBtoCDtoE".replaceFirst("from", "to"));
- // Test with the replaced string at the begining.
+ // Test with the replaced string at the beginning.
Expect.equals("toABtoCDtoE", "fromABtoCDtoE".replaceFirst("from", "to"));
// Test with the replaced string at the end.
@@ -44,11 +44,11 @@ main() {
Expect.equals(
"foo-AAA-foo-bar", "foo-bar-foo-bar".replaceFirst("bar", "AAA", 4));
- // Test startIndex skipping one case at the begining.
+ // Test startIndex skipping one case at the beginning.
Expect.equals(
"foo-bar-AAA-bar", "foo-bar-foo-bar".replaceFirst("foo", "AAA", 1));
- // Test startIndex skipping one case at the begining.
+ // Test startIndex skipping one case at the beginning.
Expect.equals(
"foo-bar-foo-AAA", "foo-bar-foo-bar".replaceFirst("bar", "AAA", 5));
@@ -86,7 +86,7 @@ main() {
Expect.equals(
"AtoBtoCDtoE", "AfromBtoCDtoE".replaceFirstMapped("from", (_) => "to"));
- // Test with the replaced string at the begining.
+ // Test with the replaced string at the beginning.
Expect.equals(
"toABtoCDtoE", "fromABtoCDtoE".replaceFirstMapped("from", (_) => "to"));
@@ -124,11 +124,11 @@ main() {
Expect.equals("foo-AAA-foo-bar",
"foo-bar-foo-bar".replaceFirstMapped("bar", (_) => "AAA", 4));
- // Test startIndex skipping one case at the begining.
+ // Test startIndex skipping one case at the beginning.
Expect.equals("foo-bar-AAA-bar",
"foo-bar-foo-bar".replaceFirstMapped("foo", (_) => "AAA", 1));
- // Test startIndex skipping one case at the begining.
+ // Test startIndex skipping one case at the beginning.
Expect.equals("foo-bar-foo-AAA",
"foo-bar-foo-bar".replaceFirstMapped("bar", (_) => "AAA", 5));
« no previous file with comments | « tests/corelib_strong/string_replace_all_test.dart ('k') | tests/corelib_strong/string_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698