OLD | NEW |
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:unittest/unittest.dart'; | 8 import 'package:test/test.dart'; |
9 | 9 |
10 import '../utils.dart'; | 10 import '../utils.dart'; |
11 | 11 |
12 main() { | 12 main() { |
13 initializeTestEnvironment(); | 13 initializeTestEnvironment(); |
14 group('Character', () { | 14 group('Character', () { |
15 group('isLetter', () { | 15 group('isLetter', () { |
16 test('digits', () { | 16 test('digits', () { |
17 expect(Character.isLetter('0'.codeUnitAt(0)), isFalse); | 17 expect(Character.isLetter('0'.codeUnitAt(0)), isFalse); |
18 expect(Character.isLetter('1'.codeUnitAt(0)), isFalse); | 18 expect(Character.isLetter('1'.codeUnitAt(0)), isFalse); |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 | 54 |
55 test('other', () { | 55 test('other', () { |
56 expect(Character.isLetterOrDigit(' '.codeUnitAt(0)), isFalse); | 56 expect(Character.isLetterOrDigit(' '.codeUnitAt(0)), isFalse); |
57 expect(Character.isLetterOrDigit('.'.codeUnitAt(0)), isFalse); | 57 expect(Character.isLetterOrDigit('.'.codeUnitAt(0)), isFalse); |
58 expect(Character.isLetterOrDigit('-'.codeUnitAt(0)), isFalse); | 58 expect(Character.isLetterOrDigit('-'.codeUnitAt(0)), isFalse); |
59 expect(Character.isLetterOrDigit('+'.codeUnitAt(0)), isFalse); | 59 expect(Character.isLetterOrDigit('+'.codeUnitAt(0)), isFalse); |
60 }); | 60 }); |
61 }); | 61 }); |
62 }); | 62 }); |
63 } | 63 } |
OLD | NEW |