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

Unified Diff: pkg/analysis_services/test/correction/strings_test.dart

Issue 464363004: 'Rename Constructor' refactoring. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 4 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
Index: pkg/analysis_services/test/correction/strings_test.dart
diff --git a/pkg/analysis_services/test/correction/strings_test.dart b/pkg/analysis_services/test/correction/strings_test.dart
index 2dca487e06b7d6256347fd697f4b8ae954964dd6..1847c2bfebc354af7ce299d338b1586bd3569ed4 100644
--- a/pkg/analysis_services/test/correction/strings_test.dart
+++ b/pkg/analysis_services/test/correction/strings_test.dart
@@ -19,7 +19,6 @@ main() {
@ReflectiveTestCase()
class StringsTest {
void test_capitalize() {
- expect(capitalize(null), null);
expect(capitalize(''), '');
expect(capitalize('a'), 'A');
expect(capitalize('abc'), 'Abc');
@@ -35,6 +34,13 @@ class StringsTest {
expect(compareStrings('b', 'a'), 1);
}
+ void test_format() {
+ expect(format('Hello, {0}!', 'John'), 'Hello, John!');
+ expect(
+ format('{0} are you {1}ing?', 'What', 'read'),
+ 'What are you reading?');
+ }
+
void test_isBlank() {
expect(isBlank(null), isTrue);
expect(isBlank(''), isTrue);

Powered by Google App Engine
This is Rietveld 408576698