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

Side by Side Diff: pkg/analyzer/test/generated/java_core_test.dart

Issue 2399913002: Remove 'initializeTestEnvironment' from 'analyzer'. (Closed)
Patch Set: Created 4 years, 2 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library analyzer.test.generated.java_core_test; 5 library analyzer.test.generated.java_core_test;
6 6
7 import 'package:analyzer/src/generated/java_core.dart'; 7 import 'package:analyzer/src/generated/java_core.dart';
8 import 'package:test/test.dart'; 8 import 'package:test/test.dart';
9 9
10 import '../utils.dart';
11
12 main() { 10 main() {
13 initializeTestEnvironment();
14 group('Character', () { 11 group('Character', () {
15 group('isLetter', () { 12 group('isLetter', () {
16 test('digits', () { 13 test('digits', () {
17 expect(Character.isLetter('0'.codeUnitAt(0)), isFalse); 14 expect(Character.isLetter('0'.codeUnitAt(0)), isFalse);
18 expect(Character.isLetter('1'.codeUnitAt(0)), isFalse); 15 expect(Character.isLetter('1'.codeUnitAt(0)), isFalse);
19 expect(Character.isLetter('9'.codeUnitAt(0)), isFalse); 16 expect(Character.isLetter('9'.codeUnitAt(0)), isFalse);
20 }); 17 });
21 18
22 test('letters', () { 19 test('letters', () {
23 expect(Character.isLetter('a'.codeUnitAt(0)), isTrue); 20 expect(Character.isLetter('a'.codeUnitAt(0)), isTrue);
(...skipping 30 matching lines...) Expand all
54 51
55 test('other', () { 52 test('other', () {
56 expect(Character.isLetterOrDigit(' '.codeUnitAt(0)), isFalse); 53 expect(Character.isLetterOrDigit(' '.codeUnitAt(0)), isFalse);
57 expect(Character.isLetterOrDigit('.'.codeUnitAt(0)), isFalse); 54 expect(Character.isLetterOrDigit('.'.codeUnitAt(0)), isFalse);
58 expect(Character.isLetterOrDigit('-'.codeUnitAt(0)), isFalse); 55 expect(Character.isLetterOrDigit('-'.codeUnitAt(0)), isFalse);
59 expect(Character.isLetterOrDigit('+'.codeUnitAt(0)), isFalse); 56 expect(Character.isLetterOrDigit('+'.codeUnitAt(0)), isFalse);
60 }); 57 });
61 }); 58 });
62 }); 59 });
63 } 60 }
OLDNEW
« no previous file with comments | « pkg/analyzer/test/generated/inheritance_manager_test.dart ('k') | pkg/analyzer/test/generated/java_io_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698