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

Unified Diff: pkg/analysis_server/test/services/correction/strings_test.dart

Issue 2875323002: Remove unintentional dependency on analysis_server (Closed)
Patch Set: Created 3 years, 7 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_server/test/services/correction/strings_test.dart
diff --git a/pkg/analysis_server/test/services/correction/strings_test.dart b/pkg/analysis_server/test/services/correction/strings_test.dart
index 3f44c7cf72abf602fa71d96babaa2fef5bd148a2..6ff5aaad75a484475a65fe9fcb2a7df523682fa0 100644
--- a/pkg/analysis_server/test/services/correction/strings_test.dart
+++ b/pkg/analysis_server/test/services/correction/strings_test.dart
@@ -2,8 +2,6 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-library test.services.correction.strings;
-
import 'package:analysis_server/src/services/correction/strings.dart';
import 'package:test/test.dart' hide isEmpty;
import 'package:test_reflective_loader/test_reflective_loader.dart';
@@ -75,13 +73,6 @@ class StringsTest {
expect(findCommonSuffix('123', 'xyz123'), 3);
}
- void test_getCamelWords() {
- expect(getCamelWords(null), []);
- expect(getCamelWords(''), []);
- expect(getCamelWords('getCamelWords'), ['get', 'Camel', 'Words']);
- expect(getCamelWords('getHTMLText'), ['get', 'HTML', 'Text']);
- }
-
void test_isBlank() {
expect(isBlank(null), isTrue);
expect(isBlank(''), isTrue);
@@ -99,13 +90,6 @@ class StringsTest {
expect(isDigit('A'.codeUnitAt(0)), isFalse);
}
- void test_isEmpty() {
- expect(isEmpty(null), isTrue);
- expect(isEmpty(''), isTrue);
- expect(isEmpty('X'), isFalse);
- expect(isEmpty(' '), isFalse);
- }
-
void test_isLetter() {
for (int c in 'abcdefghijklmnopqrstuvwxyz'.codeUnits) {
expect(isLetter(c), isTrue);
@@ -131,17 +115,6 @@ class StringsTest {
expect(isLetterOrDigit('.'.codeUnitAt(0)), isFalse);
}
- void test_isLowerCase() {
- for (int c in 'abcdefghijklmnopqrstuvwxyz'.codeUnits) {
- expect(isLowerCase(c), isTrue);
- }
- for (int c in 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'.codeUnits) {
- expect(isLowerCase(c), isFalse);
- }
- expect(isLowerCase(' '.codeUnitAt(0)), isFalse);
- expect(isLowerCase('0'.codeUnitAt(0)), isFalse);
- }
-
void test_isSpace() {
expect(isSpace(' '.codeUnitAt(0)), isTrue);
expect(isSpace('\t'.codeUnitAt(0)), isTrue);
@@ -151,17 +124,6 @@ class StringsTest {
expect(isSpace('A'.codeUnitAt(0)), isFalse);
}
- void test_isUpperCase() {
- for (int c in 'abcdefghijklmnopqrstuvwxyz'.codeUnits) {
- expect(isUpperCase(c), isFalse);
- }
- for (int c in 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'.codeUnits) {
- expect(isUpperCase(c), isTrue);
- }
- expect(isUpperCase(' '.codeUnitAt(0)), isFalse);
- expect(isUpperCase('0'.codeUnitAt(0)), isFalse);
- }
-
void test_isWhitespace() {
expect(isWhitespace(' '.codeUnitAt(0)), isTrue);
expect(isWhitespace('\t'.codeUnitAt(0)), isTrue);
@@ -186,13 +148,6 @@ class StringsTest {
expect(removeEnd('www.domain.com', '.com'), 'www.domain');
}
- void test_removeStart() {
- expect(removeStart(null, 'x'), null);
- expect(removeStart('abc', null), 'abc');
- expect(removeStart('abcTest', 'abc'), 'Test');
- expect(removeStart('my abcTest', 'abc'), 'my abcTest');
- }
-
void test_repeat() {
expect(repeat('x', 0), '');
expect(repeat('x', 5), 'xxxxx');
« no previous file with comments | « pkg/analysis_server/test/integration/coverage_test.dart ('k') | pkg/analysis_server/test/services/correction/util_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698