| Index: tests/lib_strong/typed_data/typed_data_sublist_type_test.dart
|
| diff --git a/tests/lib_strong/typed_data/typed_data_sublist_type_test.dart b/tests/lib_strong/typed_data/typed_data_sublist_type_test.dart
|
| index f5f0b1acc189cc9ab418bdf196f0cd64061ea37e..f52ad9f99f8b5be5379cc4f33a16e59c65f5c621 100644
|
| --- a/tests/lib_strong/typed_data/typed_data_sublist_type_test.dart
|
| +++ b/tests/lib_strong/typed_data/typed_data_sublist_type_test.dart
|
| @@ -16,6 +16,7 @@ class Is<T> {
|
| expect(x, part) {
|
| Expect.isTrue(check(x), '($part: ${x.runtimeType}) is $name');
|
| }
|
| +
|
| expectNot(x, part) {
|
| Expect.isFalse(check(x), '($part: ${x.runtimeType}) is! $name');
|
| }
|
| @@ -41,7 +42,6 @@ void testSublistType(input, positive, all) {
|
| for (var check in negative) check.expectNot(sub2, 'empty sublist');
|
| }
|
|
|
| -
|
| void testTypes() {
|
| var isFloat32list = new Is<Float32List>('Float32List');
|
| var isFloat64list = new Is<Float64List>('Float64List');
|
| @@ -60,17 +60,25 @@ void testTypes() {
|
| var isDoubleList = new Is<List<double>>('List<double>');
|
| var isNumList = new Is<List<num>>('List<num>');
|
|
|
| - var allChecks = <Is<List>>[isFloat32list, isFloat64list,
|
| - isInt8List, isInt16List, isInt32List,
|
| - isUint8List, isUint16List, isUint32List,
|
| - isUint8ClampedList];
|
| + var allChecks = <Is<List>>[
|
| + isFloat32list,
|
| + isFloat64list,
|
| + isInt8List,
|
| + isInt16List,
|
| + isInt32List,
|
| + isUint8List,
|
| + isUint16List,
|
| + isUint32List,
|
| + isUint8ClampedList
|
| + ];
|
|
|
| testInt(list, check) {
|
| testSublistType(list, <Is<List>>[check, isIntList, isNumList], allChecks);
|
| }
|
|
|
| testDouble(list, check) {
|
| - testSublistType(list, <Is<List>>[check, isDoubleList, isNumList], allChecks);
|
| + testSublistType(
|
| + list, <Is<List>>[check, isDoubleList, isNumList], allChecks);
|
| }
|
|
|
| testDouble(new Float32List(10), isFloat32list);
|
|
|