| Index: tests/standalone/byte_array_test.dart
|
| ===================================================================
|
| --- tests/standalone/byte_array_test.dart (revision 16756)
|
| +++ tests/standalone/byte_array_test.dart (working copy)
|
| @@ -48,6 +48,13 @@
|
| byteArray[1] = 0;
|
| Expect.equals(0, byteArray[1]);
|
|
|
| + for (int i = 0; i < byteArray.length; i++) {
|
| + byteArray[i] = i;
|
| + }
|
| + for (int i = 0; i < byteArray.length; i++) {
|
| + Expect.equals(i, byteArray[i]);
|
| + }
|
| +
|
| // These should eventually throw.
|
| byteArray[1] = 256;
|
| byteArray[1] = -1;
|
| @@ -67,6 +74,12 @@
|
| Expect.equals(255, byteArray[1]);
|
| byteArray[1] = 0;
|
| Expect.equals(0, byteArray[1]);
|
| + for (int i = 0; i < byteArray.length; i++) {
|
| + byteArray[i] = i;
|
| + }
|
| + for (int i = 0; i < byteArray.length; i++) {
|
| + Expect.equals(i, byteArray[i]);
|
| + }
|
|
|
| // These should eventually throw.
|
| byteArray[1] = 256;
|
|
|