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 // This code was auto-generated, is not intended to be edited, and is subject to | 5 // This code was auto-generated, is not intended to be edited, and is subject to |
6 // significant change. Please see the README file for more information. | 6 // significant change. Please see the README file for more information. |
7 | 7 |
8 library engine.java_core_test; | 8 library engine.java_core_test; |
9 | 9 |
10 import 'package:analyzer/src/generated/java_core.dart'; | 10 import 'package:analyzer/src/generated/java_core.dart'; |
11 import 'package:unittest/unittest.dart'; | 11 import 'package:unittest/unittest.dart'; |
12 | 12 |
| 13 import '../utils.dart'; |
| 14 |
13 main() { | 15 main() { |
| 16 initializeTestEnvironment(); |
14 group('Character', () { | 17 group('Character', () { |
15 group('isDigit', () { | 18 group('isDigit', () { |
16 test('digits', () { | 19 test('digits', () { |
17 expect(Character.isDigit('0'.codeUnitAt(0)), isTrue); | 20 expect(Character.isDigit('0'.codeUnitAt(0)), isTrue); |
18 expect(Character.isDigit('1'.codeUnitAt(0)), isTrue); | 21 expect(Character.isDigit('1'.codeUnitAt(0)), isTrue); |
19 expect(Character.isDigit('9'.codeUnitAt(0)), isTrue); | 22 expect(Character.isDigit('9'.codeUnitAt(0)), isTrue); |
20 }); | 23 }); |
21 | 24 |
22 test('letters', () { | 25 test('letters', () { |
23 expect(Character.isDigit('a'.codeUnitAt(0)), isFalse); | 26 expect(Character.isDigit('a'.codeUnitAt(0)), isFalse); |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 expect(Character.isWhitespace('.'.codeUnitAt(0)), isFalse); | 149 expect(Character.isWhitespace('.'.codeUnitAt(0)), isFalse); |
147 expect(Character.isWhitespace('0'.codeUnitAt(0)), isFalse); | 150 expect(Character.isWhitespace('0'.codeUnitAt(0)), isFalse); |
148 expect(Character.isWhitespace('9'.codeUnitAt(0)), isFalse); | 151 expect(Character.isWhitespace('9'.codeUnitAt(0)), isFalse); |
149 expect(Character.isWhitespace('a'.codeUnitAt(0)), isFalse); | 152 expect(Character.isWhitespace('a'.codeUnitAt(0)), isFalse); |
150 expect(Character.isWhitespace('z'.codeUnitAt(0)), isFalse); | 153 expect(Character.isWhitespace('z'.codeUnitAt(0)), isFalse); |
151 expect(Character.isWhitespace('A'.codeUnitAt(0)), isFalse); | 154 expect(Character.isWhitespace('A'.codeUnitAt(0)), isFalse); |
152 expect(Character.isWhitespace('Z'.codeUnitAt(0)), isFalse); | 155 expect(Character.isWhitespace('Z'.codeUnitAt(0)), isFalse); |
153 }); | 156 }); |
154 }); | 157 }); |
155 } | 158 } |
OLD | NEW |