| Index: tests/standalone/byte_array_test.dart
|
| diff --git a/tests/standalone/byte_array_test.dart b/tests/standalone/byte_array_test.dart
|
| index e23715f5524839b21c2533ce2840bede5c5f35b3..c2a11652b928b8e8189f5d56198eca4bbd4f6b2d 100644
|
| --- a/tests/standalone/byte_array_test.dart
|
| +++ b/tests/standalone/byte_array_test.dart
|
| @@ -20,7 +20,7 @@ void testCreateByteArray() {
|
| for (int i = 0; i < 10; i++) {
|
| Expect.equals(0, byteArray[i]);
|
| }
|
| -
|
| +
|
| }
|
|
|
| void testUnsignedByteArrayRange() {
|
| @@ -31,7 +31,7 @@ void testUnsignedByteArrayRange() {
|
| Expect.equals(255, byteArray[1]);
|
| byteArray[1] = 0;
|
| Expect.equals(0, byteArray[1]);
|
| -
|
| +
|
| Expect.throws(() {
|
| byteArray[1] = 1.2;
|
| });
|
| @@ -131,7 +131,7 @@ void testSubArray() {
|
| Expect.equals(10, array.subByteArray(0, null).lengthInBytes());
|
| Expect.equals(10, array.subByteArray().lengthInBytes());
|
| testThrowsIndex(function) {
|
| - Expect.throws(function, (e) => e is IndexOutOfRangeException);
|
| + Expect.throws(function, (e) => e is RangeError);
|
| }
|
| testThrowsIndex(() => array.subByteArray(0, -1));
|
| testThrowsIndex(() => array.subByteArray(1, -1));
|
|
|