| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 tag to be able to run in html test framework. | 5 // Library tag to be able to run in html test framework. |
| 6 #library("ByteArrayTest.dart"); | 6 #library("ByteArrayTest.dart"); |
| 7 | 7 |
| 8 #import('dart:scalarlist'); | 8 #import('dart:scalarlist'); |
| 9 | 9 |
| 10 class ByteArrayTest { | 10 class ByteArrayTest { |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 array); | 21 array); |
| 22 Expect.throws(() { array[-1] = 0; }, | 22 Expect.throws(() { array[-1] = 0; }, |
| 23 (e) { return e is IndexOutOfRangeException; }); | 23 (e) { return e is IndexOutOfRangeException; }); |
| 24 Expect.throws(() { return array[-1]; }, | 24 Expect.throws(() { return array[-1]; }, |
| 25 (e) { return e is IndexOutOfRangeException; }); | 25 (e) { return e is IndexOutOfRangeException; }); |
| 26 Expect.throws(() { array[10]; }, | 26 Expect.throws(() { array[10]; }, |
| 27 (e) { return e is IndexOutOfRangeException; }); | 27 (e) { return e is IndexOutOfRangeException; }); |
| 28 Expect.throws(() { array[10] = 0; }, | 28 Expect.throws(() { array[10] = 0; }, |
| 29 (e) { return e is IndexOutOfRangeException; }); | 29 (e) { return e is IndexOutOfRangeException; }); |
| 30 Expect.throws(() { array.add(0); }, | 30 Expect.throws(() { array.add(0); }, |
| 31 (e) { return e is UnsupportedOperationException; }); | 31 (e) { return e is StateError; }); |
| 32 Expect.throws(() { array.addAll([0]); }, | 32 Expect.throws(() { array.addAll([0]); }, |
| 33 (e) { return e is UnsupportedOperationException; }); | 33 (e) { return e is StateError; }); |
| 34 Expect.throws(() { array.addLast(0); }, | 34 Expect.throws(() { array.addLast(0); }, |
| 35 (e) { return e is UnsupportedOperationException; }); | 35 (e) { return e is StateError; }); |
| 36 Expect.throws(() { array.clear(); }, | 36 Expect.throws(() { array.clear(); }, |
| 37 (e) { return e is UnsupportedOperationException; }); | 37 (e) { return e is StateError; }); |
| 38 Expect.throws(() { array.insertRange(0, array.length, 0); }, | 38 Expect.throws(() { array.insertRange(0, array.length, 0); }, |
| 39 (e) { return e is UnsupportedOperationException; }); | 39 (e) { return e is StateError; }); |
| 40 Expect.throws(() { array.length = 0; }, | 40 Expect.throws(() { array.length = 0; }, |
| 41 (e) { return e is UnsupportedOperationException; }); | 41 (e) { return e is StateError; }); |
| 42 Expect.throws(() { array.removeLast(); }, | 42 Expect.throws(() { array.removeLast(); }, |
| 43 (e) { return e is UnsupportedOperationException; }); | 43 (e) { return e is StateError; }); |
| 44 Expect.throws(() { array.removeRange(0, array.length - 1); }, | 44 Expect.throws(() { array.removeRange(0, array.length - 1); }, |
| 45 (e) { return e is UnsupportedOperationException; }); | 45 (e) { return e is StateError; }); |
| 46 for (int i = 0; i < array.length; ++i) { | 46 for (int i = 0; i < array.length; ++i) { |
| 47 array[i] = 1 + i; | 47 array[i] = 1 + i; |
| 48 } | 48 } |
| 49 Expect.listEquals([1, 2, 3, 4, 5, | 49 Expect.listEquals([1, 2, 3, 4, 5, |
| 50 6, 7, 8, 9, 10], | 50 6, 7, 8, 9, 10], |
| 51 array); | 51 array); |
| 52 for (int i = 0; i < array.length; ++i) { | 52 for (int i = 0; i < array.length; ++i) { |
| 53 array[i] = 0x100 + i; | 53 array[i] = 0x100 + i; |
| 54 } | 54 } |
| 55 Expect.listEquals([0, 1, 2, 3, 4, | 55 Expect.listEquals([0, 1, 2, 3, 4, |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 array); | 105 array); |
| 106 Expect.throws(() { array[-1] = 0; }, | 106 Expect.throws(() { array[-1] = 0; }, |
| 107 (e) { return e is IndexOutOfRangeException; }); | 107 (e) { return e is IndexOutOfRangeException; }); |
| 108 Expect.throws(() { return array[-1]; }, | 108 Expect.throws(() { return array[-1]; }, |
| 109 (e) { return e is IndexOutOfRangeException; }); | 109 (e) { return e is IndexOutOfRangeException; }); |
| 110 Expect.throws(() { array[10]; }, | 110 Expect.throws(() { array[10]; }, |
| 111 (e) { return e is IndexOutOfRangeException; }); | 111 (e) { return e is IndexOutOfRangeException; }); |
| 112 Expect.throws(() { array[10] = 0; }, | 112 Expect.throws(() { array[10] = 0; }, |
| 113 (e) { return e is IndexOutOfRangeException; }); | 113 (e) { return e is IndexOutOfRangeException; }); |
| 114 Expect.throws(() { array.add(0); }, | 114 Expect.throws(() { array.add(0); }, |
| 115 (e) { return e is UnsupportedOperationException; }); | 115 (e) { return e is StateError; }); |
| 116 Expect.throws(() { array.addAll([0]); }, | 116 Expect.throws(() { array.addAll([0]); }, |
| 117 (e) { return e is UnsupportedOperationException; }); | 117 (e) { return e is StateError; }); |
| 118 Expect.throws(() { array.addLast(0); }, | 118 Expect.throws(() { array.addLast(0); }, |
| 119 (e) { return e is UnsupportedOperationException; }); | 119 (e) { return e is StateError; }); |
| 120 Expect.throws(() { array.clear(); }, | 120 Expect.throws(() { array.clear(); }, |
| 121 (e) { return e is UnsupportedOperationException; }); | 121 (e) { return e is StateError; }); |
| 122 Expect.throws(() { array.insertRange(0, array.length, 0); }, | 122 Expect.throws(() { array.insertRange(0, array.length, 0); }, |
| 123 (e) { return e is UnsupportedOperationException; }); | 123 (e) { return e is StateError; }); |
| 124 Expect.throws(() { array.length = 0; }, | 124 Expect.throws(() { array.length = 0; }, |
| 125 (e) { return e is UnsupportedOperationException; }); | 125 (e) { return e is StateError; }); |
| 126 Expect.throws(() { array.removeLast(); }, | 126 Expect.throws(() { array.removeLast(); }, |
| 127 (e) { return e is UnsupportedOperationException; }); | 127 (e) { return e is StateError; }); |
| 128 Expect.throws(() { array.removeRange(0, array.length - 1); }, | 128 Expect.throws(() { array.removeRange(0, array.length - 1); }, |
| 129 (e) { return e is UnsupportedOperationException; }); | 129 (e) { return e is StateError; }); |
| 130 for (int i = 0; i < array.length; ++i) { | 130 for (int i = 0; i < array.length; ++i) { |
| 131 array[i] = 1 + i; | 131 array[i] = 1 + i; |
| 132 } | 132 } |
| 133 Expect.listEquals([1, 2, 3, 4, 5, | 133 Expect.listEquals([1, 2, 3, 4, 5, |
| 134 6, 7, 8, 9, 10], | 134 6, 7, 8, 9, 10], |
| 135 array); | 135 array); |
| 136 for (int i = 0; i < array.length; ++i) { | 136 for (int i = 0; i < array.length; ++i) { |
| 137 array[i] = 0x100 + i; | 137 array[i] = 0x100 + i; |
| 138 } | 138 } |
| 139 Expect.listEquals([0, 1, 2, 3, 4, | 139 Expect.listEquals([0, 1, 2, 3, 4, |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 177 array); | 177 array); |
| 178 Expect.throws(() { array[-1] = 0; }, | 178 Expect.throws(() { array[-1] = 0; }, |
| 179 (e) { return e is IndexOutOfRangeException; }); | 179 (e) { return e is IndexOutOfRangeException; }); |
| 180 Expect.throws(() { return array[-1]; }, | 180 Expect.throws(() { return array[-1]; }, |
| 181 (e) { return e is IndexOutOfRangeException; }); | 181 (e) { return e is IndexOutOfRangeException; }); |
| 182 Expect.throws(() { array[10]; }, | 182 Expect.throws(() { array[10]; }, |
| 183 (e) { return e is IndexOutOfRangeException; }); | 183 (e) { return e is IndexOutOfRangeException; }); |
| 184 Expect.throws(() { array[10] = 0; }, | 184 Expect.throws(() { array[10] = 0; }, |
| 185 (e) { return e is IndexOutOfRangeException; }); | 185 (e) { return e is IndexOutOfRangeException; }); |
| 186 Expect.throws(() { array.add(0); }, | 186 Expect.throws(() { array.add(0); }, |
| 187 (e) { return e is UnsupportedOperationException; }); | 187 (e) { return e is StateError; }); |
| 188 Expect.throws(() { array.addAll([0]); }, | 188 Expect.throws(() { array.addAll([0]); }, |
| 189 (e) { return e is UnsupportedOperationException; }); | 189 (e) { return e is StateError; }); |
| 190 Expect.throws(() { array.addLast(0); }, | 190 Expect.throws(() { array.addLast(0); }, |
| 191 (e) { return e is UnsupportedOperationException; }); | 191 (e) { return e is StateError; }); |
| 192 Expect.throws(() { array.clear(); }, | 192 Expect.throws(() { array.clear(); }, |
| 193 (e) { return e is UnsupportedOperationException; }); | 193 (e) { return e is StateError; }); |
| 194 Expect.throws(() { array.insertRange(0, array.length, 0); }, | 194 Expect.throws(() { array.insertRange(0, array.length, 0); }, |
| 195 (e) { return e is UnsupportedOperationException; }); | 195 (e) { return e is StateError; }); |
| 196 Expect.throws(() { array.length = 0; }, | 196 Expect.throws(() { array.length = 0; }, |
| 197 (e) { return e is UnsupportedOperationException; }); | 197 (e) { return e is StateError; }); |
| 198 Expect.throws(() { array.removeLast(); }, | 198 Expect.throws(() { array.removeLast(); }, |
| 199 (e) { return e is UnsupportedOperationException; }); | 199 (e) { return e is StateError; }); |
| 200 Expect.throws(() { array.removeRange(0, array.length - 1); }, | 200 Expect.throws(() { array.removeRange(0, array.length - 1); }, |
| 201 (e) { return e is UnsupportedOperationException; }); | 201 (e) { return e is StateError; }); |
| 202 for (int i = 0; i < array.length; ++i) { | 202 for (int i = 0; i < array.length; ++i) { |
| 203 array[i] = 1 + i; | 203 array[i] = 1 + i; |
| 204 } | 204 } |
| 205 Expect.listEquals([1, 2, 3, 4, 5, | 205 Expect.listEquals([1, 2, 3, 4, 5, |
| 206 6, 7, 8, 9, 10], | 206 6, 7, 8, 9, 10], |
| 207 array); | 207 array); |
| 208 for (int i = 0; i < array.length; ++i) { | 208 for (int i = 0; i < array.length; ++i) { |
| 209 array[i] = 0x10000 + i; | 209 array[i] = 0x10000 + i; |
| 210 } | 210 } |
| 211 Expect.listEquals([0, 1, 2, 3, 4, | 211 Expect.listEquals([0, 1, 2, 3, 4, |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 261 array); | 261 array); |
| 262 Expect.throws(() { array[-1] = 0; }, | 262 Expect.throws(() { array[-1] = 0; }, |
| 263 (e) { return e is IndexOutOfRangeException; }); | 263 (e) { return e is IndexOutOfRangeException; }); |
| 264 Expect.throws(() { return array[-1]; }, | 264 Expect.throws(() { return array[-1]; }, |
| 265 (e) { return e is IndexOutOfRangeException; }); | 265 (e) { return e is IndexOutOfRangeException; }); |
| 266 Expect.throws(() { array[10]; }, | 266 Expect.throws(() { array[10]; }, |
| 267 (e) { return e is IndexOutOfRangeException; }); | 267 (e) { return e is IndexOutOfRangeException; }); |
| 268 Expect.throws(() { array[10] = 0; }, | 268 Expect.throws(() { array[10] = 0; }, |
| 269 (e) { return e is IndexOutOfRangeException; }); | 269 (e) { return e is IndexOutOfRangeException; }); |
| 270 Expect.throws(() { array.add(0); }, | 270 Expect.throws(() { array.add(0); }, |
| 271 (e) { return e is UnsupportedOperationException; }); | 271 (e) { return e is StateError; }); |
| 272 Expect.throws(() { array.addAll([0]); }, | 272 Expect.throws(() { array.addAll([0]); }, |
| 273 (e) { return e is UnsupportedOperationException; }); | 273 (e) { return e is StateError; }); |
| 274 Expect.throws(() { array.addLast(0); }, | 274 Expect.throws(() { array.addLast(0); }, |
| 275 (e) { return e is UnsupportedOperationException; }); | 275 (e) { return e is StateError; }); |
| 276 Expect.throws(() { array.clear(); }, | 276 Expect.throws(() { array.clear(); }, |
| 277 (e) { return e is UnsupportedOperationException; }); | 277 (e) { return e is StateError; }); |
| 278 Expect.throws(() { array.insertRange(0, array.length, 0); }, | 278 Expect.throws(() { array.insertRange(0, array.length, 0); }, |
| 279 (e) { return e is UnsupportedOperationException; }); | 279 (e) { return e is StateError; }); |
| 280 Expect.throws(() { array.length = 0; }, | 280 Expect.throws(() { array.length = 0; }, |
| 281 (e) { return e is UnsupportedOperationException; }); | 281 (e) { return e is StateError; }); |
| 282 Expect.throws(() { array.removeLast(); }, | 282 Expect.throws(() { array.removeLast(); }, |
| 283 (e) { return e is UnsupportedOperationException; }); | 283 (e) { return e is StateError; }); |
| 284 Expect.throws(() { array.removeRange(0, array.length - 1); }, | 284 Expect.throws(() { array.removeRange(0, array.length - 1); }, |
| 285 (e) { return e is UnsupportedOperationException; }); | 285 (e) { return e is StateError; }); |
| 286 for (int i = 0; i < array.length; ++i) { | 286 for (int i = 0; i < array.length; ++i) { |
| 287 array[i] = 1 + i; | 287 array[i] = 1 + i; |
| 288 } | 288 } |
| 289 Expect.listEquals([1, 2, 3, 4, 5, | 289 Expect.listEquals([1, 2, 3, 4, 5, |
| 290 6, 7, 8, 9, 10], | 290 6, 7, 8, 9, 10], |
| 291 array); | 291 array); |
| 292 for (int i = 0; i < array.length; ++i) { | 292 for (int i = 0; i < array.length; ++i) { |
| 293 array[i] = 0x10000 + i; | 293 array[i] = 0x10000 + i; |
| 294 } | 294 } |
| 295 Expect.listEquals([0, 1, 2, 3, 4, | 295 Expect.listEquals([0, 1, 2, 3, 4, |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 333 array); | 333 array); |
| 334 Expect.throws(() { array[-1] = 0; }, | 334 Expect.throws(() { array[-1] = 0; }, |
| 335 (e) { return e is IndexOutOfRangeException; }); | 335 (e) { return e is IndexOutOfRangeException; }); |
| 336 Expect.throws(() { return array[-1]; }, | 336 Expect.throws(() { return array[-1]; }, |
| 337 (e) { return e is IndexOutOfRangeException; }); | 337 (e) { return e is IndexOutOfRangeException; }); |
| 338 Expect.throws(() { array[10]; }, | 338 Expect.throws(() { array[10]; }, |
| 339 (e) { return e is IndexOutOfRangeException; }); | 339 (e) { return e is IndexOutOfRangeException; }); |
| 340 Expect.throws(() { array[10] = 0; }, | 340 Expect.throws(() { array[10] = 0; }, |
| 341 (e) { return e is IndexOutOfRangeException; }); | 341 (e) { return e is IndexOutOfRangeException; }); |
| 342 Expect.throws(() { array.add(0); }, | 342 Expect.throws(() { array.add(0); }, |
| 343 (e) { return e is UnsupportedOperationException; }); | 343 (e) { return e is StateError; }); |
| 344 Expect.throws(() { array.addAll([0]); }, | 344 Expect.throws(() { array.addAll([0]); }, |
| 345 (e) { return e is UnsupportedOperationException; }); | 345 (e) { return e is StateError; }); |
| 346 Expect.throws(() { array.addLast(0); }, | 346 Expect.throws(() { array.addLast(0); }, |
| 347 (e) { return e is UnsupportedOperationException; }); | 347 (e) { return e is StateError; }); |
| 348 Expect.throws(() { array.clear(); }, | 348 Expect.throws(() { array.clear(); }, |
| 349 (e) { return e is UnsupportedOperationException; }); | 349 (e) { return e is StateError; }); |
| 350 Expect.throws(() { array.insertRange(0, array.length, 0); }, | 350 Expect.throws(() { array.insertRange(0, array.length, 0); }, |
| 351 (e) { return e is UnsupportedOperationException; }); | 351 (e) { return e is StateError; }); |
| 352 Expect.throws(() { array.length = 0; }, | 352 Expect.throws(() { array.length = 0; }, |
| 353 (e) { return e is UnsupportedOperationException; }); | 353 (e) { return e is StateError; }); |
| 354 Expect.throws(() { array.removeLast(); }, | 354 Expect.throws(() { array.removeLast(); }, |
| 355 (e) { return e is UnsupportedOperationException; }); | 355 (e) { return e is StateError; }); |
| 356 Expect.throws(() { array.removeRange(0, array.length - 1); }, | 356 Expect.throws(() { array.removeRange(0, array.length - 1); }, |
| 357 (e) { return e is UnsupportedOperationException; }); | 357 (e) { return e is StateError; }); |
| 358 for (int i = 0; i < array.length; ++i) { | 358 for (int i = 0; i < array.length; ++i) { |
| 359 array[i] = 1 + i; | 359 array[i] = 1 + i; |
| 360 } | 360 } |
| 361 Expect.listEquals([1, 2, 3, 4, 5, | 361 Expect.listEquals([1, 2, 3, 4, 5, |
| 362 6, 7, 8, 9, 10], | 362 6, 7, 8, 9, 10], |
| 363 array); | 363 array); |
| 364 for (int i = 0; i < array.length; ++i) { | 364 for (int i = 0; i < array.length; ++i) { |
| 365 array[i] = 0x100000000 + i; | 365 array[i] = 0x100000000 + i; |
| 366 } | 366 } |
| 367 Expect.listEquals([0, 1, 2, 3, 4, | 367 Expect.listEquals([0, 1, 2, 3, 4, |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 423 array); | 423 array); |
| 424 Expect.throws(() { array[-1] = 0; }, | 424 Expect.throws(() { array[-1] = 0; }, |
| 425 (e) { return e is IndexOutOfRangeException; }); | 425 (e) { return e is IndexOutOfRangeException; }); |
| 426 Expect.throws(() { return array[-1]; }, | 426 Expect.throws(() { return array[-1]; }, |
| 427 (e) { return e is IndexOutOfRangeException; }); | 427 (e) { return e is IndexOutOfRangeException; }); |
| 428 Expect.throws(() { array[10]; }, | 428 Expect.throws(() { array[10]; }, |
| 429 (e) { return e is IndexOutOfRangeException; }); | 429 (e) { return e is IndexOutOfRangeException; }); |
| 430 Expect.throws(() { array[10] = 0; }, | 430 Expect.throws(() { array[10] = 0; }, |
| 431 (e) { return e is IndexOutOfRangeException; }); | 431 (e) { return e is IndexOutOfRangeException; }); |
| 432 Expect.throws(() { array.add(0); }, | 432 Expect.throws(() { array.add(0); }, |
| 433 (e) { return e is UnsupportedOperationException; }); | 433 (e) { return e is StateError; }); |
| 434 Expect.throws(() { array.addAll([0]); }, | 434 Expect.throws(() { array.addAll([0]); }, |
| 435 (e) { return e is UnsupportedOperationException; }); | 435 (e) { return e is StateError; }); |
| 436 Expect.throws(() { array.addLast(0); }, | 436 Expect.throws(() { array.addLast(0); }, |
| 437 (e) { return e is UnsupportedOperationException; }); | 437 (e) { return e is StateError; }); |
| 438 Expect.throws(() { array.clear(); }, | 438 Expect.throws(() { array.clear(); }, |
| 439 (e) { return e is UnsupportedOperationException; }); | 439 (e) { return e is StateError; }); |
| 440 Expect.throws(() { array.insertRange(0, array.length, 0); }, | 440 Expect.throws(() { array.insertRange(0, array.length, 0); }, |
| 441 (e) { return e is UnsupportedOperationException; }); | 441 (e) { return e is StateError; }); |
| 442 Expect.throws(() { array.length = 0; }, | 442 Expect.throws(() { array.length = 0; }, |
| 443 (e) { return e is UnsupportedOperationException; }); | 443 (e) { return e is StateError; }); |
| 444 Expect.throws(() { array.removeLast(); }, | 444 Expect.throws(() { array.removeLast(); }, |
| 445 (e) { return e is UnsupportedOperationException; }); | 445 (e) { return e is StateError; }); |
| 446 Expect.throws(() { array.removeRange(0, array.length - 1); }, | 446 Expect.throws(() { array.removeRange(0, array.length - 1); }, |
| 447 (e) { return e is UnsupportedOperationException; }); | 447 (e) { return e is StateError; }); |
| 448 for (int i = 0; i < array.length; ++i) { | 448 for (int i = 0; i < array.length; ++i) { |
| 449 array[i] = 1 + i; | 449 array[i] = 1 + i; |
| 450 } | 450 } |
| 451 Expect.listEquals([1, 2, 3, 4, 5, | 451 Expect.listEquals([1, 2, 3, 4, 5, |
| 452 6, 7, 8, 9, 10], | 452 6, 7, 8, 9, 10], |
| 453 array); | 453 array); |
| 454 for (int i = 0; i < array.length; ++i) { | 454 for (int i = 0; i < array.length; ++i) { |
| 455 array[i] = 0x100000000 + i; | 455 array[i] = 0x100000000 + i; |
| 456 } | 456 } |
| 457 Expect.listEquals([0, 1, 2, 3, 4, | 457 Expect.listEquals([0, 1, 2, 3, 4, |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 498 array); | 498 array); |
| 499 Expect.throws(() { array[-1] = 0; }, | 499 Expect.throws(() { array[-1] = 0; }, |
| 500 (e) { return e is IndexOutOfRangeException; }); | 500 (e) { return e is IndexOutOfRangeException; }); |
| 501 Expect.throws(() { return array[-1]; }, | 501 Expect.throws(() { return array[-1]; }, |
| 502 (e) { return e is IndexOutOfRangeException; }); | 502 (e) { return e is IndexOutOfRangeException; }); |
| 503 Expect.throws(() { array[10]; }, | 503 Expect.throws(() { array[10]; }, |
| 504 (e) { return e is IndexOutOfRangeException; }); | 504 (e) { return e is IndexOutOfRangeException; }); |
| 505 Expect.throws(() { array[10] = 0; }, | 505 Expect.throws(() { array[10] = 0; }, |
| 506 (e) { return e is IndexOutOfRangeException; }); | 506 (e) { return e is IndexOutOfRangeException; }); |
| 507 Expect.throws(() { array.add(0); }, | 507 Expect.throws(() { array.add(0); }, |
| 508 (e) { return e is UnsupportedOperationException; }); | 508 (e) { return e is StateError; }); |
| 509 Expect.throws(() { array.addAll([0]); }, | 509 Expect.throws(() { array.addAll([0]); }, |
| 510 (e) { return e is UnsupportedOperationException; }); | 510 (e) { return e is StateError; }); |
| 511 Expect.throws(() { array.addLast(0); }, | 511 Expect.throws(() { array.addLast(0); }, |
| 512 (e) { return e is UnsupportedOperationException; }); | 512 (e) { return e is StateError; }); |
| 513 Expect.throws(() { array.clear(); }, | 513 Expect.throws(() { array.clear(); }, |
| 514 (e) { return e is UnsupportedOperationException; }); | 514 (e) { return e is StateError; }); |
| 515 Expect.throws(() { array.insertRange(0, array.length, 0); }, | 515 Expect.throws(() { array.insertRange(0, array.length, 0); }, |
| 516 (e) { return e is UnsupportedOperationException; }); | 516 (e) { return e is StateError; }); |
| 517 Expect.throws(() { array.length = 0; }, | 517 Expect.throws(() { array.length = 0; }, |
| 518 (e) { return e is UnsupportedOperationException; }); | 518 (e) { return e is StateError; }); |
| 519 Expect.throws(() { array.removeLast(); }, | 519 Expect.throws(() { array.removeLast(); }, |
| 520 (e) { return e is UnsupportedOperationException; }); | 520 (e) { return e is StateError; }); |
| 521 Expect.throws(() { array.removeRange(0, array.length - 1); }, | 521 Expect.throws(() { array.removeRange(0, array.length - 1); }, |
| 522 (e) { return e is UnsupportedOperationException; }); | 522 (e) { return e is StateError; }); |
| 523 for (int i = 0; i < array.length; ++i) { | 523 for (int i = 0; i < array.length; ++i) { |
| 524 array[i] = 1 + i; | 524 array[i] = 1 + i; |
| 525 } | 525 } |
| 526 Expect.listEquals([1, 2, 3, 4, 5, | 526 Expect.listEquals([1, 2, 3, 4, 5, |
| 527 6, 7, 8, 9, 10], | 527 6, 7, 8, 9, 10], |
| 528 array); | 528 array); |
| 529 for (int i = 0; i < array.length; ++i) { | 529 for (int i = 0; i < array.length; ++i) { |
| 530 array[i] = 0x10000000000000000 + i; | 530 array[i] = 0x10000000000000000 + i; |
| 531 } | 531 } |
| 532 Expect.listEquals([0, 1, 2, 3, 4, | 532 Expect.listEquals([0, 1, 2, 3, 4, |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 589 array); | 589 array); |
| 590 Expect.throws(() { array[-1] = 0; }, | 590 Expect.throws(() { array[-1] = 0; }, |
| 591 (e) { return e is IndexOutOfRangeException; }); | 591 (e) { return e is IndexOutOfRangeException; }); |
| 592 Expect.throws(() { return array[-1]; }, | 592 Expect.throws(() { return array[-1]; }, |
| 593 (e) { return e is IndexOutOfRangeException; }); | 593 (e) { return e is IndexOutOfRangeException; }); |
| 594 Expect.throws(() { array[10]; }, | 594 Expect.throws(() { array[10]; }, |
| 595 (e) { return e is IndexOutOfRangeException; }); | 595 (e) { return e is IndexOutOfRangeException; }); |
| 596 Expect.throws(() { array[10] = 0; }, | 596 Expect.throws(() { array[10] = 0; }, |
| 597 (e) { return e is IndexOutOfRangeException; }); | 597 (e) { return e is IndexOutOfRangeException; }); |
| 598 Expect.throws(() { array.add(0); }, | 598 Expect.throws(() { array.add(0); }, |
| 599 (e) { return e is UnsupportedOperationException; }); | 599 (e) { return e is StateError; }); |
| 600 Expect.throws(() { array.addAll([0]); }, | 600 Expect.throws(() { array.addAll([0]); }, |
| 601 (e) { return e is UnsupportedOperationException; }); | 601 (e) { return e is StateError; }); |
| 602 Expect.throws(() { array.addLast(0); }, | 602 Expect.throws(() { array.addLast(0); }, |
| 603 (e) { return e is UnsupportedOperationException; }); | 603 (e) { return e is StateError; }); |
| 604 Expect.throws(() { array.clear(); }, | 604 Expect.throws(() { array.clear(); }, |
| 605 (e) { return e is UnsupportedOperationException; }); | 605 (e) { return e is StateError; }); |
| 606 Expect.throws(() { array.insertRange(0, array.length, 0); }, | 606 Expect.throws(() { array.insertRange(0, array.length, 0); }, |
| 607 (e) { return e is UnsupportedOperationException; }); | 607 (e) { return e is StateError; }); |
| 608 Expect.throws(() { array.length = 0; }, | 608 Expect.throws(() { array.length = 0; }, |
| 609 (e) { return e is UnsupportedOperationException; }); | 609 (e) { return e is StateError; }); |
| 610 Expect.throws(() { array.removeLast(); }, | 610 Expect.throws(() { array.removeLast(); }, |
| 611 (e) { return e is UnsupportedOperationException; }); | 611 (e) { return e is StateError; }); |
| 612 Expect.throws(() { array.removeRange(0, array.length - 1); }, | 612 Expect.throws(() { array.removeRange(0, array.length - 1); }, |
| 613 (e) { return e is UnsupportedOperationException; }); | 613 (e) { return e is StateError; }); |
| 614 for (int i = 0; i < array.length; ++i) { | 614 for (int i = 0; i < array.length; ++i) { |
| 615 array[i] = 1 + i; | 615 array[i] = 1 + i; |
| 616 } | 616 } |
| 617 Expect.listEquals([1, 2, 3, 4, 5, | 617 Expect.listEquals([1, 2, 3, 4, 5, |
| 618 6, 7, 8, 9, 10], | 618 6, 7, 8, 9, 10], |
| 619 array); | 619 array); |
| 620 for (int i = 0; i < array.length; ++i) { | 620 for (int i = 0; i < array.length; ++i) { |
| 621 array[i] = 0x10000000000000000 + i; | 621 array[i] = 0x10000000000000000 + i; |
| 622 } | 622 } |
| 623 Expect.listEquals([0, 1, 2, 3, 4, | 623 Expect.listEquals([0, 1, 2, 3, 4, |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 664 array); | 664 array); |
| 665 Expect.throws(() { array[-1] = 0.0; }, | 665 Expect.throws(() { array[-1] = 0.0; }, |
| 666 (e) { return e is IndexOutOfRangeException; }); | 666 (e) { return e is IndexOutOfRangeException; }); |
| 667 Expect.throws(() { return array[-1]; }, | 667 Expect.throws(() { return array[-1]; }, |
| 668 (e) { return e is IndexOutOfRangeException; }); | 668 (e) { return e is IndexOutOfRangeException; }); |
| 669 Expect.throws(() { array[10]; }, | 669 Expect.throws(() { array[10]; }, |
| 670 (e) { return e is IndexOutOfRangeException; }); | 670 (e) { return e is IndexOutOfRangeException; }); |
| 671 Expect.throws(() { array[10] = 0.0; }, | 671 Expect.throws(() { array[10] = 0.0; }, |
| 672 (e) { return e is IndexOutOfRangeException; }); | 672 (e) { return e is IndexOutOfRangeException; }); |
| 673 Expect.throws(() { array.add(0.0); }, | 673 Expect.throws(() { array.add(0.0); }, |
| 674 (e) { return e is UnsupportedOperationException; }); | 674 (e) { return e is StateError; }); |
| 675 Expect.throws(() { array.addAll([0]); }, | 675 Expect.throws(() { array.addAll([0]); }, |
| 676 (e) { return e is UnsupportedOperationException; }); | 676 (e) { return e is StateError; }); |
| 677 Expect.throws(() { array.addLast(0.0); }, | 677 Expect.throws(() { array.addLast(0.0); }, |
| 678 (e) { return e is UnsupportedOperationException; }); | 678 (e) { return e is StateError; }); |
| 679 Expect.throws(() { array.clear(); }, | 679 Expect.throws(() { array.clear(); }, |
| 680 (e) { return e is UnsupportedOperationException; }); | 680 (e) { return e is StateError; }); |
| 681 Expect.throws(() { array.insertRange(0, array.length, 0.0); }, | 681 Expect.throws(() { array.insertRange(0, array.length, 0.0); }, |
| 682 (e) { return e is UnsupportedOperationException; }); | 682 (e) { return e is StateError; }); |
| 683 Expect.throws(() { array.length = 0; }, | 683 Expect.throws(() { array.length = 0; }, |
| 684 (e) { return e is UnsupportedOperationException; }); | 684 (e) { return e is StateError; }); |
| 685 Expect.throws(() { array.removeLast(); }, | 685 Expect.throws(() { array.removeLast(); }, |
| 686 (e) { return e is UnsupportedOperationException; }); | 686 (e) { return e is StateError; }); |
| 687 Expect.throws(() { array.removeRange(0, array.length - 1); }, | 687 Expect.throws(() { array.removeRange(0, array.length - 1); }, |
| 688 (e) { return e is UnsupportedOperationException; }); | 688 (e) { return e is StateError; }); |
| 689 for (int i = 0; i < array.length; ++i) { | 689 for (int i = 0; i < array.length; ++i) { |
| 690 array[i] = 1.0 + i; | 690 array[i] = 1.0 + i; |
| 691 } | 691 } |
| 692 Expect.listEquals([1.0, 2.0, 3.0, 4.0, 5.0, | 692 Expect.listEquals([1.0, 2.0, 3.0, 4.0, 5.0, |
| 693 6.0, 7.0, 8.0, 9.0, 10.0], | 693 6.0, 7.0, 8.0, 9.0, 10.0], |
| 694 array); | 694 array); |
| 695 // TODO: min, max, and round | 695 // TODO: min, max, and round |
| 696 for (int i = 0; i < array.length; ++i) { | 696 for (int i = 0; i < array.length; ++i) { |
| 697 array[i] = i * 1.0; | 697 array[i] = i * 1.0; |
| 698 } | 698 } |
| (...skipping 27 matching lines...) Expand all Loading... |
| 726 array); | 726 array); |
| 727 Expect.throws(() { array[-1] = 0.0; }, | 727 Expect.throws(() { array[-1] = 0.0; }, |
| 728 (e) { return e is IndexOutOfRangeException; }); | 728 (e) { return e is IndexOutOfRangeException; }); |
| 729 Expect.throws(() { return array[-1]; }, | 729 Expect.throws(() { return array[-1]; }, |
| 730 (e) { return e is IndexOutOfRangeException; }); | 730 (e) { return e is IndexOutOfRangeException; }); |
| 731 Expect.throws(() { array[10]; }, | 731 Expect.throws(() { array[10]; }, |
| 732 (e) { return e is IndexOutOfRangeException; }); | 732 (e) { return e is IndexOutOfRangeException; }); |
| 733 Expect.throws(() { array[10] = 0.0; }, | 733 Expect.throws(() { array[10] = 0.0; }, |
| 734 (e) { return e is IndexOutOfRangeException; }); | 734 (e) { return e is IndexOutOfRangeException; }); |
| 735 Expect.throws(() { array.add(0.0); }, | 735 Expect.throws(() { array.add(0.0); }, |
| 736 (e) { return e is UnsupportedOperationException; }); | 736 (e) { return e is StateError; }); |
| 737 Expect.throws(() { array.addAll([0]); }, | 737 Expect.throws(() { array.addAll([0]); }, |
| 738 (e) { return e is UnsupportedOperationException; }); | 738 (e) { return e is StateError; }); |
| 739 Expect.throws(() { array.addLast(0.0); }, | 739 Expect.throws(() { array.addLast(0.0); }, |
| 740 (e) { return e is UnsupportedOperationException; }); | 740 (e) { return e is StateError; }); |
| 741 Expect.throws(() { array.clear(); }, | 741 Expect.throws(() { array.clear(); }, |
| 742 (e) { return e is UnsupportedOperationException; }); | 742 (e) { return e is StateError; }); |
| 743 Expect.throws(() { array.insertRange(0, array.length, 0.0); }, | 743 Expect.throws(() { array.insertRange(0, array.length, 0.0); }, |
| 744 (e) { return e is UnsupportedOperationException; }); | 744 (e) { return e is StateError; }); |
| 745 Expect.throws(() { array.length = 0; }, | 745 Expect.throws(() { array.length = 0; }, |
| 746 (e) { return e is UnsupportedOperationException; }); | 746 (e) { return e is StateError; }); |
| 747 Expect.throws(() { array.removeLast(); }, | 747 Expect.throws(() { array.removeLast(); }, |
| 748 (e) { return e is UnsupportedOperationException; }); | 748 (e) { return e is StateError; }); |
| 749 Expect.throws(() { array.removeRange(0, array.length - 1); }, | 749 Expect.throws(() { array.removeRange(0, array.length - 1); }, |
| 750 (e) { return e is UnsupportedOperationException; }); | 750 (e) { return e is StateError; }); |
| 751 for (int i = 0; i < array.length; ++i) { | 751 for (int i = 0; i < array.length; ++i) { |
| 752 array[i] = 1.0 + i; | 752 array[i] = 1.0 + i; |
| 753 } | 753 } |
| 754 Expect.listEquals([1.0, 2.0, 3.0, 4.0, 5.0, | 754 Expect.listEquals([1.0, 2.0, 3.0, 4.0, 5.0, |
| 755 6.0, 7.0, 8.0, 9.0, 10.0], | 755 6.0, 7.0, 8.0, 9.0, 10.0], |
| 756 array); | 756 array); |
| 757 // TODO: min, max | 757 // TODO: min, max |
| 758 for (int i = 0; i < array.length; ++i) { | 758 for (int i = 0; i < array.length; ++i) { |
| 759 array[i] = i * 1.0; | 759 array[i] = i * 1.0; |
| 760 } | 760 } |
| (...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 961 view); | 961 view); |
| 962 Expect.throws(() { view[-1] = 0; }, | 962 Expect.throws(() { view[-1] = 0; }, |
| 963 (e) { return e is IndexOutOfRangeException; }); | 963 (e) { return e is IndexOutOfRangeException; }); |
| 964 Expect.throws(() { return view[-1]; }, | 964 Expect.throws(() { return view[-1]; }, |
| 965 (e) { return e is IndexOutOfRangeException; }); | 965 (e) { return e is IndexOutOfRangeException; }); |
| 966 Expect.throws(() { view[view.length]; }, | 966 Expect.throws(() { view[view.length]; }, |
| 967 (e) { return e is IndexOutOfRangeException; }); | 967 (e) { return e is IndexOutOfRangeException; }); |
| 968 Expect.throws(() { view[10] = 0; }, | 968 Expect.throws(() { view[10] = 0; }, |
| 969 (e) { return e is IndexOutOfRangeException; }); | 969 (e) { return e is IndexOutOfRangeException; }); |
| 970 Expect.throws(() { view.add(0); }, | 970 Expect.throws(() { view.add(0); }, |
| 971 (e) { return e is UnsupportedOperationException; }); | 971 (e) { return e is StateError; }); |
| 972 Expect.throws(() { view.addAll([0]); }, | 972 Expect.throws(() { view.addAll([0]); }, |
| 973 (e) { return e is UnsupportedOperationException; }); | 973 (e) { return e is StateError; }); |
| 974 Expect.throws(() { view.addLast(0); }, | 974 Expect.throws(() { view.addLast(0); }, |
| 975 (e) { return e is UnsupportedOperationException; }); | 975 (e) { return e is StateError; }); |
| 976 Expect.throws(() { view.clear(); }, | 976 Expect.throws(() { view.clear(); }, |
| 977 (e) { return e is UnsupportedOperationException; }); | 977 (e) { return e is StateError; }); |
| 978 Expect.throws(() { view.insertRange(0, view.length, 0); }, | 978 Expect.throws(() { view.insertRange(0, view.length, 0); }, |
| 979 (e) { return e is UnsupportedOperationException; }); | 979 (e) { return e is StateError; }); |
| 980 Expect.throws(() { view.length = 0; }, | 980 Expect.throws(() { view.length = 0; }, |
| 981 (e) { return e is UnsupportedOperationException; }); | 981 (e) { return e is StateError; }); |
| 982 Expect.throws(() { view.removeLast(); }, | 982 Expect.throws(() { view.removeLast(); }, |
| 983 (e) { return e is UnsupportedOperationException; }); | 983 (e) { return e is StateError; }); |
| 984 Expect.throws(() { view.removeRange(0, view.length - 1); }, | 984 Expect.throws(() { view.removeRange(0, view.length - 1); }, |
| 985 (e) { return e is UnsupportedOperationException; }); | 985 (e) { return e is StateError; }); |
| 986 for (int i = 0; i < view.length; ++i) { | 986 for (int i = 0; i < view.length; ++i) { |
| 987 view[i] = 1 + i; | 987 view[i] = 1 + i; |
| 988 } | 988 } |
| 989 Expect.listEquals([1, 2, 3, 4, 5, | 989 Expect.listEquals([1, 2, 3, 4, 5, |
| 990 6, 7, 8, 9, 10], | 990 6, 7, 8, 9, 10], |
| 991 view); | 991 view); |
| 992 Expect.listEquals([0xFF, 1, 2, 3, 4, 5, | 992 Expect.listEquals([0xFF, 1, 2, 3, 4, 5, |
| 993 6, 7, 8, 9, 10, 0xFF], | 993 6, 7, 8, 9, 10, 0xFF], |
| 994 array); | 994 array); |
| 995 for (int i = 0; i < view.length; ++i) { | 995 for (int i = 0; i < view.length; ++i) { |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1089 view); | 1089 view); |
| 1090 Expect.throws(() { view[-1] = 0; }, | 1090 Expect.throws(() { view[-1] = 0; }, |
| 1091 (e) { return e is IndexOutOfRangeException; }); | 1091 (e) { return e is IndexOutOfRangeException; }); |
| 1092 Expect.throws(() { return view[-1]; }, | 1092 Expect.throws(() { return view[-1]; }, |
| 1093 (e) { return e is IndexOutOfRangeException; }); | 1093 (e) { return e is IndexOutOfRangeException; }); |
| 1094 Expect.throws(() { view[view.length]; }, | 1094 Expect.throws(() { view[view.length]; }, |
| 1095 (e) { return e is IndexOutOfRangeException; }); | 1095 (e) { return e is IndexOutOfRangeException; }); |
| 1096 Expect.throws(() { view[view.length] = 0; }, | 1096 Expect.throws(() { view[view.length] = 0; }, |
| 1097 (e) { return e is IndexOutOfRangeException; }); | 1097 (e) { return e is IndexOutOfRangeException; }); |
| 1098 Expect.throws(() { view.add(0); }, | 1098 Expect.throws(() { view.add(0); }, |
| 1099 (e) { return e is UnsupportedOperationException; }); | 1099 (e) { return e is StateError; }); |
| 1100 Expect.throws(() { view.addAll([0]); }, | 1100 Expect.throws(() { view.addAll([0]); }, |
| 1101 (e) { return e is UnsupportedOperationException; }); | 1101 (e) { return e is StateError; }); |
| 1102 Expect.throws(() { view.addLast(0); }, | 1102 Expect.throws(() { view.addLast(0); }, |
| 1103 (e) { return e is UnsupportedOperationException; }); | 1103 (e) { return e is StateError; }); |
| 1104 Expect.throws(() { view.clear(); }, | 1104 Expect.throws(() { view.clear(); }, |
| 1105 (e) { return e is UnsupportedOperationException; }); | 1105 (e) { return e is StateError; }); |
| 1106 Expect.throws(() { view.insertRange(0, view.length, 0); }, | 1106 Expect.throws(() { view.insertRange(0, view.length, 0); }, |
| 1107 (e) { return e is UnsupportedOperationException; }); | 1107 (e) { return e is StateError; }); |
| 1108 Expect.throws(() { view.length = 0; }, | 1108 Expect.throws(() { view.length = 0; }, |
| 1109 (e) { return e is UnsupportedOperationException; }); | 1109 (e) { return e is StateError; }); |
| 1110 Expect.throws(() { view.removeLast(); }, | 1110 Expect.throws(() { view.removeLast(); }, |
| 1111 (e) { return e is UnsupportedOperationException; }); | 1111 (e) { return e is StateError; }); |
| 1112 Expect.throws(() { view.removeRange(0, view.length - 1); }, | 1112 Expect.throws(() { view.removeRange(0, view.length - 1); }, |
| 1113 (e) { return e is UnsupportedOperationException; }); | 1113 (e) { return e is StateError; }); |
| 1114 for (int i = 0; i < view.length; ++i) { | 1114 for (int i = 0; i < view.length; ++i) { |
| 1115 view[i] = 1 + i; | 1115 view[i] = 1 + i; |
| 1116 } | 1116 } |
| 1117 Expect.listEquals([1, 2, 3, 4, 5, | 1117 Expect.listEquals([1, 2, 3, 4, 5, |
| 1118 6, 7, 8, 9, 10], | 1118 6, 7, 8, 9, 10], |
| 1119 view); | 1119 view); |
| 1120 Expect.listEquals([-1, 1, 2, 3, 4, 5, | 1120 Expect.listEquals([-1, 1, 2, 3, 4, 5, |
| 1121 6, 7, 8, 9, 10, -1], | 1121 6, 7, 8, 9, 10, -1], |
| 1122 array); | 1122 array); |
| 1123 for (int i = 0; i < view.length; ++i) { | 1123 for (int i = 0; i < view.length; ++i) { |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1196 view); | 1196 view); |
| 1197 Expect.throws(() { view[-1] = 0; }, | 1197 Expect.throws(() { view[-1] = 0; }, |
| 1198 (e) { return e is IndexOutOfRangeException; }); | 1198 (e) { return e is IndexOutOfRangeException; }); |
| 1199 Expect.throws(() { return view[-1]; }, | 1199 Expect.throws(() { return view[-1]; }, |
| 1200 (e) { return e is IndexOutOfRangeException; }); | 1200 (e) { return e is IndexOutOfRangeException; }); |
| 1201 Expect.throws(() { view[view.length]; }, | 1201 Expect.throws(() { view[view.length]; }, |
| 1202 (e) { return e is IndexOutOfRangeException; }); | 1202 (e) { return e is IndexOutOfRangeException; }); |
| 1203 Expect.throws(() { view[10] = 0; }, | 1203 Expect.throws(() { view[10] = 0; }, |
| 1204 (e) { return e is IndexOutOfRangeException; }); | 1204 (e) { return e is IndexOutOfRangeException; }); |
| 1205 Expect.throws(() { view.add(0); }, | 1205 Expect.throws(() { view.add(0); }, |
| 1206 (e) { return e is UnsupportedOperationException; }); | 1206 (e) { return e is StateError; }); |
| 1207 Expect.throws(() { view.addAll([0]); }, | 1207 Expect.throws(() { view.addAll([0]); }, |
| 1208 (e) { return e is UnsupportedOperationException; }); | 1208 (e) { return e is StateError; }); |
| 1209 Expect.throws(() { view.addLast(0); }, | 1209 Expect.throws(() { view.addLast(0); }, |
| 1210 (e) { return e is UnsupportedOperationException; }); | 1210 (e) { return e is StateError; }); |
| 1211 Expect.throws(() { view.clear(); }, | 1211 Expect.throws(() { view.clear(); }, |
| 1212 (e) { return e is UnsupportedOperationException; }); | 1212 (e) { return e is StateError; }); |
| 1213 Expect.throws(() { view.insertRange(0, view.length, 0); }, | 1213 Expect.throws(() { view.insertRange(0, view.length, 0); }, |
| 1214 (e) { return e is UnsupportedOperationException; }); | 1214 (e) { return e is StateError; }); |
| 1215 Expect.throws(() { view.length = 0; }, | 1215 Expect.throws(() { view.length = 0; }, |
| 1216 (e) { return e is UnsupportedOperationException; }); | 1216 (e) { return e is StateError; }); |
| 1217 Expect.throws(() { view.removeLast(); }, | 1217 Expect.throws(() { view.removeLast(); }, |
| 1218 (e) { return e is UnsupportedOperationException; }); | 1218 (e) { return e is StateError; }); |
| 1219 Expect.throws(() { view.removeRange(0, view.length - 1); }, | 1219 Expect.throws(() { view.removeRange(0, view.length - 1); }, |
| 1220 (e) { return e is UnsupportedOperationException; }); | 1220 (e) { return e is StateError; }); |
| 1221 for (int i = 0; i < view.length; ++i) { | 1221 for (int i = 0; i < view.length; ++i) { |
| 1222 view[i] = 1 + i; | 1222 view[i] = 1 + i; |
| 1223 } | 1223 } |
| 1224 Expect.listEquals([1, 2, 3, 4, 5, | 1224 Expect.listEquals([1, 2, 3, 4, 5, |
| 1225 6, 7, 8, 9, 10], | 1225 6, 7, 8, 9, 10], |
| 1226 view); | 1226 view); |
| 1227 Expect.listEquals([0xFF, 0xFF, 0x01, 0x00, 0x02, 0x00, 0x03, 0x00, | 1227 Expect.listEquals([0xFF, 0xFF, 0x01, 0x00, 0x02, 0x00, 0x03, 0x00, |
| 1228 0x04, 0x00, 0x05, 0x00, 0x06, 0x00, 0x07, 0x00, | 1228 0x04, 0x00, 0x05, 0x00, 0x06, 0x00, 0x07, 0x00, |
| 1229 0x08, 0x00, 0x09, 0x00, 0x0A, 0x00, 0xFF, 0xFF], | 1229 0x08, 0x00, 0x09, 0x00, 0x0A, 0x00, 0xFF, 0xFF], |
| 1230 array); | 1230 array); |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1331 view); | 1331 view); |
| 1332 Expect.throws(() { view[-1] = 0; }, | 1332 Expect.throws(() { view[-1] = 0; }, |
| 1333 (e) { return e is IndexOutOfRangeException; }); | 1333 (e) { return e is IndexOutOfRangeException; }); |
| 1334 Expect.throws(() { return view[-1]; }, | 1334 Expect.throws(() { return view[-1]; }, |
| 1335 (e) { return e is IndexOutOfRangeException; }); | 1335 (e) { return e is IndexOutOfRangeException; }); |
| 1336 Expect.throws(() { view[view.length]; }, | 1336 Expect.throws(() { view[view.length]; }, |
| 1337 (e) { return e is IndexOutOfRangeException; }); | 1337 (e) { return e is IndexOutOfRangeException; }); |
| 1338 Expect.throws(() { view[view.length] = 0; }, | 1338 Expect.throws(() { view[view.length] = 0; }, |
| 1339 (e) { return e is IndexOutOfRangeException; }); | 1339 (e) { return e is IndexOutOfRangeException; }); |
| 1340 Expect.throws(() { view.add(0); }, | 1340 Expect.throws(() { view.add(0); }, |
| 1341 (e) { return e is UnsupportedOperationException; }); | 1341 (e) { return e is StateError; }); |
| 1342 Expect.throws(() { view.addAll([0]); }, | 1342 Expect.throws(() { view.addAll([0]); }, |
| 1343 (e) { return e is UnsupportedOperationException; }); | 1343 (e) { return e is StateError; }); |
| 1344 Expect.throws(() { view.addLast(0); }, | 1344 Expect.throws(() { view.addLast(0); }, |
| 1345 (e) { return e is UnsupportedOperationException; }); | 1345 (e) { return e is StateError; }); |
| 1346 Expect.throws(() { view.clear(); }, | 1346 Expect.throws(() { view.clear(); }, |
| 1347 (e) { return e is UnsupportedOperationException; }); | 1347 (e) { return e is StateError; }); |
| 1348 Expect.throws(() { view.insertRange(0, view.length, 0); }, | 1348 Expect.throws(() { view.insertRange(0, view.length, 0); }, |
| 1349 (e) { return e is UnsupportedOperationException; }); | 1349 (e) { return e is StateError; }); |
| 1350 Expect.throws(() { view.length = 0; }, | 1350 Expect.throws(() { view.length = 0; }, |
| 1351 (e) { return e is UnsupportedOperationException; }); | 1351 (e) { return e is StateError; }); |
| 1352 Expect.throws(() { view.removeLast(); }, | 1352 Expect.throws(() { view.removeLast(); }, |
| 1353 (e) { return e is UnsupportedOperationException; }); | 1353 (e) { return e is StateError; }); |
| 1354 Expect.throws(() { view.removeRange(0, view.length - 1); }, | 1354 Expect.throws(() { view.removeRange(0, view.length - 1); }, |
| 1355 (e) { return e is UnsupportedOperationException; }); | 1355 (e) { return e is StateError; }); |
| 1356 for (int i = 0; i < view.length; ++i) { | 1356 for (int i = 0; i < view.length; ++i) { |
| 1357 view[i] = 1 + i; | 1357 view[i] = 1 + i; |
| 1358 } | 1358 } |
| 1359 Expect.listEquals([1, 2, 3, 4, 5, | 1359 Expect.listEquals([1, 2, 3, 4, 5, |
| 1360 6, 7, 8, 9, 10], | 1360 6, 7, 8, 9, 10], |
| 1361 view); | 1361 view); |
| 1362 Expect.listEquals([-1, -1, 1, 0, 2, 0, 3, 0, 4, 0, 5, 0, | 1362 Expect.listEquals([-1, -1, 1, 0, 2, 0, 3, 0, 4, 0, 5, 0, |
| 1363 6, 0, 7, 0, 8, 0, 9, 0, 10, 0, -1, -1], | 1363 6, 0, 7, 0, 8, 0, 9, 0, 10, 0, -1, -1], |
| 1364 array); | 1364 array); |
| 1365 for (int i = 0; i < view.length; ++i) { | 1365 for (int i = 0; i < view.length; ++i) { |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1443 view); | 1443 view); |
| 1444 Expect.throws(() { view[-1] = 0; }, | 1444 Expect.throws(() { view[-1] = 0; }, |
| 1445 (e) { return e is IndexOutOfRangeException; }); | 1445 (e) { return e is IndexOutOfRangeException; }); |
| 1446 Expect.throws(() { return view[-1]; }, | 1446 Expect.throws(() { return view[-1]; }, |
| 1447 (e) { return e is IndexOutOfRangeException; }); | 1447 (e) { return e is IndexOutOfRangeException; }); |
| 1448 Expect.throws(() { view[view.length]; }, | 1448 Expect.throws(() { view[view.length]; }, |
| 1449 (e) { return e is IndexOutOfRangeException; }); | 1449 (e) { return e is IndexOutOfRangeException; }); |
| 1450 Expect.throws(() { view[10] = 0; }, | 1450 Expect.throws(() { view[10] = 0; }, |
| 1451 (e) { return e is IndexOutOfRangeException; }); | 1451 (e) { return e is IndexOutOfRangeException; }); |
| 1452 Expect.throws(() { view.add(0); }, | 1452 Expect.throws(() { view.add(0); }, |
| 1453 (e) { return e is UnsupportedOperationException; }); | 1453 (e) { return e is StateError; }); |
| 1454 Expect.throws(() { view.addAll([0]); }, | 1454 Expect.throws(() { view.addAll([0]); }, |
| 1455 (e) { return e is UnsupportedOperationException; }); | 1455 (e) { return e is StateError; }); |
| 1456 Expect.throws(() { view.addLast(0); }, | 1456 Expect.throws(() { view.addLast(0); }, |
| 1457 (e) { return e is UnsupportedOperationException; }); | 1457 (e) { return e is StateError; }); |
| 1458 Expect.throws(() { view.clear(); }, | 1458 Expect.throws(() { view.clear(); }, |
| 1459 (e) { return e is UnsupportedOperationException; }); | 1459 (e) { return e is StateError; }); |
| 1460 Expect.throws(() { view.insertRange(0, view.length, 0); }, | 1460 Expect.throws(() { view.insertRange(0, view.length, 0); }, |
| 1461 (e) { return e is UnsupportedOperationException; }); | 1461 (e) { return e is StateError; }); |
| 1462 Expect.throws(() { view.length = 0; }, | 1462 Expect.throws(() { view.length = 0; }, |
| 1463 (e) { return e is UnsupportedOperationException; }); | 1463 (e) { return e is StateError; }); |
| 1464 Expect.throws(() { view.removeLast(); }, | 1464 Expect.throws(() { view.removeLast(); }, |
| 1465 (e) { return e is UnsupportedOperationException; }); | 1465 (e) { return e is StateError; }); |
| 1466 Expect.throws(() { view.removeRange(0, view.length - 1); }, | 1466 Expect.throws(() { view.removeRange(0, view.length - 1); }, |
| 1467 (e) { return e is UnsupportedOperationException; }); | 1467 (e) { return e is StateError; }); |
| 1468 for (int i = 0; i < view.length; ++i) { | 1468 for (int i = 0; i < view.length; ++i) { |
| 1469 view[i] = 1 + i; | 1469 view[i] = 1 + i; |
| 1470 } | 1470 } |
| 1471 Expect.listEquals([1, 2, 3, 4, 5, | 1471 Expect.listEquals([1, 2, 3, 4, 5, |
| 1472 6, 7, 8, 9, 10], | 1472 6, 7, 8, 9, 10], |
| 1473 view); | 1473 view); |
| 1474 Expect.listEquals([0xFF, 0xFF, 0xFF, 0xFF, 0x01, 0x00, 0x00, 0x00, | 1474 Expect.listEquals([0xFF, 0xFF, 0xFF, 0xFF, 0x01, 0x00, 0x00, 0x00, |
| 1475 0x02, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, | 1475 0x02, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, |
| 1476 0x04, 0x00, 0x00, 0x00, 0x05, 0x00, 0x00, 0x00, | 1476 0x04, 0x00, 0x00, 0x00, 0x05, 0x00, 0x00, 0x00, |
| 1477 0x06, 0x00, 0x00, 0x00, 0x07, 0x00, 0x00, 0x00, | 1477 0x06, 0x00, 0x00, 0x00, 0x07, 0x00, 0x00, 0x00, |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1602 view); | 1602 view); |
| 1603 Expect.throws(() { view[-1] = 0; }, | 1603 Expect.throws(() { view[-1] = 0; }, |
| 1604 (e) { return e is IndexOutOfRangeException; }); | 1604 (e) { return e is IndexOutOfRangeException; }); |
| 1605 Expect.throws(() { return view[-1]; }, | 1605 Expect.throws(() { return view[-1]; }, |
| 1606 (e) { return e is IndexOutOfRangeException; }); | 1606 (e) { return e is IndexOutOfRangeException; }); |
| 1607 Expect.throws(() { view[view.length]; }, | 1607 Expect.throws(() { view[view.length]; }, |
| 1608 (e) { return e is IndexOutOfRangeException; }); | 1608 (e) { return e is IndexOutOfRangeException; }); |
| 1609 Expect.throws(() { view[view.length] = 0; }, | 1609 Expect.throws(() { view[view.length] = 0; }, |
| 1610 (e) { return e is IndexOutOfRangeException; }); | 1610 (e) { return e is IndexOutOfRangeException; }); |
| 1611 Expect.throws(() { view.add(0); }, | 1611 Expect.throws(() { view.add(0); }, |
| 1612 (e) { return e is UnsupportedOperationException; }); | 1612 (e) { return e is StateError; }); |
| 1613 Expect.throws(() { view.addAll([0]); }, | 1613 Expect.throws(() { view.addAll([0]); }, |
| 1614 (e) { return e is UnsupportedOperationException; }); | 1614 (e) { return e is StateError; }); |
| 1615 Expect.throws(() { view.addLast(0); }, | 1615 Expect.throws(() { view.addLast(0); }, |
| 1616 (e) { return e is UnsupportedOperationException; }); | 1616 (e) { return e is StateError; }); |
| 1617 Expect.throws(() { view.clear(); }, | 1617 Expect.throws(() { view.clear(); }, |
| 1618 (e) { return e is UnsupportedOperationException; }); | 1618 (e) { return e is StateError; }); |
| 1619 Expect.throws(() { view.insertRange(0, view.length, 0); }, | 1619 Expect.throws(() { view.insertRange(0, view.length, 0); }, |
| 1620 (e) { return e is UnsupportedOperationException; }); | 1620 (e) { return e is StateError; }); |
| 1621 Expect.throws(() { view.length = 0; }, | 1621 Expect.throws(() { view.length = 0; }, |
| 1622 (e) { return e is UnsupportedOperationException; }); | 1622 (e) { return e is StateError; }); |
| 1623 Expect.throws(() { view.removeLast(); }, | 1623 Expect.throws(() { view.removeLast(); }, |
| 1624 (e) { return e is UnsupportedOperationException; }); | 1624 (e) { return e is StateError; }); |
| 1625 Expect.throws(() { view.removeRange(0, view.length - 1); }, | 1625 Expect.throws(() { view.removeRange(0, view.length - 1); }, |
| 1626 (e) { return e is UnsupportedOperationException; }); | 1626 (e) { return e is StateError; }); |
| 1627 for (int i = 0; i < view.length; ++i) { | 1627 for (int i = 0; i < view.length; ++i) { |
| 1628 view[i] = 1 + i; | 1628 view[i] = 1 + i; |
| 1629 } | 1629 } |
| 1630 Expect.listEquals([1, 2, 3, 4, 5, | 1630 Expect.listEquals([1, 2, 3, 4, 5, |
| 1631 6, 7, 8, 9, 10], | 1631 6, 7, 8, 9, 10], |
| 1632 view); | 1632 view); |
| 1633 Expect.listEquals([-1, -1, -1, -1, 1, 0, 0, 0, | 1633 Expect.listEquals([-1, -1, -1, -1, 1, 0, 0, 0, |
| 1634 2, 0, 0, 0, 3, 0, 0, 0, | 1634 2, 0, 0, 0, 3, 0, 0, 0, |
| 1635 4, 0, 0, 0, 5, 0, 0, 0, | 1635 4, 0, 0, 0, 5, 0, 0, 0, |
| 1636 6, 0, 0, 0, 7, 0, 0, 0, | 1636 6, 0, 0, 0, 7, 0, 0, 0, |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1731 view); | 1731 view); |
| 1732 Expect.throws(() { view[-1] = 0; }, | 1732 Expect.throws(() { view[-1] = 0; }, |
| 1733 (e) { return e is IndexOutOfRangeException; }); | 1733 (e) { return e is IndexOutOfRangeException; }); |
| 1734 Expect.throws(() { return view[-1]; }, | 1734 Expect.throws(() { return view[-1]; }, |
| 1735 (e) { return e is IndexOutOfRangeException; }); | 1735 (e) { return e is IndexOutOfRangeException; }); |
| 1736 Expect.throws(() { view[view.length]; }, | 1736 Expect.throws(() { view[view.length]; }, |
| 1737 (e) { return e is IndexOutOfRangeException; }); | 1737 (e) { return e is IndexOutOfRangeException; }); |
| 1738 Expect.throws(() { view[10] = 0; }, | 1738 Expect.throws(() { view[10] = 0; }, |
| 1739 (e) { return e is IndexOutOfRangeException; }); | 1739 (e) { return e is IndexOutOfRangeException; }); |
| 1740 Expect.throws(() { view.add(0); }, | 1740 Expect.throws(() { view.add(0); }, |
| 1741 (e) { return e is UnsupportedOperationException; }); | 1741 (e) { return e is StateError; }); |
| 1742 Expect.throws(() { view.addAll([0]); }, | 1742 Expect.throws(() { view.addAll([0]); }, |
| 1743 (e) { return e is UnsupportedOperationException; }); | 1743 (e) { return e is StateError; }); |
| 1744 Expect.throws(() { view.addLast(0); }, | 1744 Expect.throws(() { view.addLast(0); }, |
| 1745 (e) { return e is UnsupportedOperationException; }); | 1745 (e) { return e is StateError; }); |
| 1746 Expect.throws(() { view.clear(); }, | 1746 Expect.throws(() { view.clear(); }, |
| 1747 (e) { return e is UnsupportedOperationException; }); | 1747 (e) { return e is StateError; }); |
| 1748 Expect.throws(() { view.insertRange(0, view.length, 0); }, | 1748 Expect.throws(() { view.insertRange(0, view.length, 0); }, |
| 1749 (e) { return e is UnsupportedOperationException; }); | 1749 (e) { return e is StateError; }); |
| 1750 Expect.throws(() { view.length = 0; }, | 1750 Expect.throws(() { view.length = 0; }, |
| 1751 (e) { return e is UnsupportedOperationException; }); | 1751 (e) { return e is StateError; }); |
| 1752 Expect.throws(() { view.removeLast(); }, | 1752 Expect.throws(() { view.removeLast(); }, |
| 1753 (e) { return e is UnsupportedOperationException; }); | 1753 (e) { return e is StateError; }); |
| 1754 Expect.throws(() { view.removeRange(0, view.length - 1); }, | 1754 Expect.throws(() { view.removeRange(0, view.length - 1); }, |
| 1755 (e) { return e is UnsupportedOperationException; }); | 1755 (e) { return e is StateError; }); |
| 1756 for (int i = 0; i < view.length; ++i) { | 1756 for (int i = 0; i < view.length; ++i) { |
| 1757 view[i] = 1 + i; | 1757 view[i] = 1 + i; |
| 1758 } | 1758 } |
| 1759 Expect.listEquals([1, 2, 3, 4, 5, | 1759 Expect.listEquals([1, 2, 3, 4, 5, |
| 1760 6, 7, 8, 9, 10], | 1760 6, 7, 8, 9, 10], |
| 1761 view); | 1761 view); |
| 1762 Expect.listEquals([0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, | 1762 Expect.listEquals([0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, |
| 1763 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | 1763 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
| 1764 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | 1764 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
| 1765 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | 1765 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1930 view); | 1930 view); |
| 1931 Expect.throws(() { view[-1] = 0; }, | 1931 Expect.throws(() { view[-1] = 0; }, |
| 1932 (e) { return e is IndexOutOfRangeException; }); | 1932 (e) { return e is IndexOutOfRangeException; }); |
| 1933 Expect.throws(() { return view[-1]; }, | 1933 Expect.throws(() { return view[-1]; }, |
| 1934 (e) { return e is IndexOutOfRangeException; }); | 1934 (e) { return e is IndexOutOfRangeException; }); |
| 1935 Expect.throws(() { view[view.length]; }, | 1935 Expect.throws(() { view[view.length]; }, |
| 1936 (e) { return e is IndexOutOfRangeException; }); | 1936 (e) { return e is IndexOutOfRangeException; }); |
| 1937 Expect.throws(() { view[view.length] = 0; }, | 1937 Expect.throws(() { view[view.length] = 0; }, |
| 1938 (e) { return e is IndexOutOfRangeException; }); | 1938 (e) { return e is IndexOutOfRangeException; }); |
| 1939 Expect.throws(() { view.add(0); }, | 1939 Expect.throws(() { view.add(0); }, |
| 1940 (e) { return e is UnsupportedOperationException; }); | 1940 (e) { return e is StateError; }); |
| 1941 Expect.throws(() { view.addAll([0]); }, | 1941 Expect.throws(() { view.addAll([0]); }, |
| 1942 (e) { return e is UnsupportedOperationException; }); | 1942 (e) { return e is StateError; }); |
| 1943 Expect.throws(() { view.addLast(0); }, | 1943 Expect.throws(() { view.addLast(0); }, |
| 1944 (e) { return e is UnsupportedOperationException; }); | 1944 (e) { return e is StateError; }); |
| 1945 Expect.throws(() { view.clear(); }, | 1945 Expect.throws(() { view.clear(); }, |
| 1946 (e) { return e is UnsupportedOperationException; }); | 1946 (e) { return e is StateError; }); |
| 1947 Expect.throws(() { view.insertRange(0, view.length, 0); }, | 1947 Expect.throws(() { view.insertRange(0, view.length, 0); }, |
| 1948 (e) { return e is UnsupportedOperationException; }); | 1948 (e) { return e is StateError; }); |
| 1949 Expect.throws(() { view.length = 0; }, | 1949 Expect.throws(() { view.length = 0; }, |
| 1950 (e) { return e is UnsupportedOperationException; }); | 1950 (e) { return e is StateError; }); |
| 1951 Expect.throws(() { view.removeLast(); }, | 1951 Expect.throws(() { view.removeLast(); }, |
| 1952 (e) { return e is UnsupportedOperationException; }); | 1952 (e) { return e is StateError; }); |
| 1953 Expect.throws(() { view.removeRange(0, view.length - 1); }, | 1953 Expect.throws(() { view.removeRange(0, view.length - 1); }, |
| 1954 (e) { return e is UnsupportedOperationException; }); | 1954 (e) { return e is StateError; }); |
| 1955 for (int i = 0; i < view.length; ++i) { | 1955 for (int i = 0; i < view.length; ++i) { |
| 1956 view[i] = 1 + i; | 1956 view[i] = 1 + i; |
| 1957 } | 1957 } |
| 1958 Expect.listEquals([1, 2, 3, 4, 5, | 1958 Expect.listEquals([1, 2, 3, 4, 5, |
| 1959 6, 7, 8, 9, 10], | 1959 6, 7, 8, 9, 10], |
| 1960 view); | 1960 view); |
| 1961 Expect.listEquals([-1, -1, -1, -1, -1, -1, -1, -1, | 1961 Expect.listEquals([-1, -1, -1, -1, -1, -1, -1, -1, |
| 1962 1, 0, 0, 0, 0, 0, 0, 0, | 1962 1, 0, 0, 0, 0, 0, 0, 0, |
| 1963 2, 0, 0, 0, 0, 0, 0, 0, | 1963 2, 0, 0, 0, 0, 0, 0, 0, |
| 1964 3, 0, 0, 0, 0, 0, 0, 0, | 1964 3, 0, 0, 0, 0, 0, 0, 0, |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2084 view); | 2084 view); |
| 2085 Expect.throws(() { view[-1] = 0.0; }, | 2085 Expect.throws(() { view[-1] = 0.0; }, |
| 2086 (e) { return e is IndexOutOfRangeException; }); | 2086 (e) { return e is IndexOutOfRangeException; }); |
| 2087 Expect.throws(() { return view[-1]; }, | 2087 Expect.throws(() { return view[-1]; }, |
| 2088 (e) { return e is IndexOutOfRangeException; }); | 2088 (e) { return e is IndexOutOfRangeException; }); |
| 2089 Expect.throws(() { view[10]; }, | 2089 Expect.throws(() { view[10]; }, |
| 2090 (e) { return e is IndexOutOfRangeException; }); | 2090 (e) { return e is IndexOutOfRangeException; }); |
| 2091 Expect.throws(() { view[10] = 0.0; }, | 2091 Expect.throws(() { view[10] = 0.0; }, |
| 2092 (e) { return e is IndexOutOfRangeException; }); | 2092 (e) { return e is IndexOutOfRangeException; }); |
| 2093 Expect.throws(() { array.add(0.0); }, | 2093 Expect.throws(() { array.add(0.0); }, |
| 2094 (e) { return e is UnsupportedOperationException; }); | 2094 (e) { return e is StateError; }); |
| 2095 Expect.throws(() { array.addAll([0]); }, | 2095 Expect.throws(() { array.addAll([0]); }, |
| 2096 (e) { return e is UnsupportedOperationException; }); | 2096 (e) { return e is StateError; }); |
| 2097 Expect.throws(() { array.addLast(0.0); }, | 2097 Expect.throws(() { array.addLast(0.0); }, |
| 2098 (e) { return e is UnsupportedOperationException; }); | 2098 (e) { return e is StateError; }); |
| 2099 Expect.throws(() { array.clear(); }, | 2099 Expect.throws(() { array.clear(); }, |
| 2100 (e) { return e is UnsupportedOperationException; }); | 2100 (e) { return e is StateError; }); |
| 2101 Expect.throws(() { array.insertRange(0, array.length, 0.0); }, | 2101 Expect.throws(() { array.insertRange(0, array.length, 0.0); }, |
| 2102 (e) { return e is UnsupportedOperationException; }); | 2102 (e) { return e is StateError; }); |
| 2103 Expect.throws(() { array.length = 0; }, | 2103 Expect.throws(() { array.length = 0; }, |
| 2104 (e) { return e is UnsupportedOperationException; }); | 2104 (e) { return e is StateError; }); |
| 2105 Expect.throws(() { array.removeLast(); }, | 2105 Expect.throws(() { array.removeLast(); }, |
| 2106 (e) { return e is UnsupportedOperationException; }); | 2106 (e) { return e is StateError; }); |
| 2107 Expect.throws(() { array.removeRange(0, array.length - 1); }, | 2107 Expect.throws(() { array.removeRange(0, array.length - 1); }, |
| 2108 (e) { return e is UnsupportedOperationException; }); | 2108 (e) { return e is StateError; }); |
| 2109 for (int i = 0; i < view.length; ++i) { | 2109 for (int i = 0; i < view.length; ++i) { |
| 2110 view[i] = 1.0 + i; | 2110 view[i] = 1.0 + i; |
| 2111 } | 2111 } |
| 2112 Expect.listEquals([1.0, 2.0, 3.0, 4.0, 5.0, | 2112 Expect.listEquals([1.0, 2.0, 3.0, 4.0, 5.0, |
| 2113 6.0, 7.0, 8.0, 9.0, 10.0], | 2113 6.0, 7.0, 8.0, 9.0, 10.0], |
| 2114 view); | 2114 view); |
| 2115 Expect.listEquals([0xBF800000, 0x3F800000, | 2115 Expect.listEquals([0xBF800000, 0x3F800000, |
| 2116 0x40000000, 0x40400000, | 2116 0x40000000, 0x40400000, |
| 2117 0x40800000, 0x40A00000, | 2117 0x40800000, 0x40A00000, |
| 2118 0x40C00000, 0x40E00000, | 2118 0x40C00000, 0x40E00000, |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2187 view); | 2187 view); |
| 2188 Expect.throws(() { view[-1] = 0.0; }, | 2188 Expect.throws(() { view[-1] = 0.0; }, |
| 2189 (e) { return e is IndexOutOfRangeException; }); | 2189 (e) { return e is IndexOutOfRangeException; }); |
| 2190 Expect.throws(() { return view[-1]; }, | 2190 Expect.throws(() { return view[-1]; }, |
| 2191 (e) { return e is IndexOutOfRangeException; }); | 2191 (e) { return e is IndexOutOfRangeException; }); |
| 2192 Expect.throws(() { view[10]; }, | 2192 Expect.throws(() { view[10]; }, |
| 2193 (e) { return e is IndexOutOfRangeException; }); | 2193 (e) { return e is IndexOutOfRangeException; }); |
| 2194 Expect.throws(() { view[10] = 0.0; }, | 2194 Expect.throws(() { view[10] = 0.0; }, |
| 2195 (e) { return e is IndexOutOfRangeException; }); | 2195 (e) { return e is IndexOutOfRangeException; }); |
| 2196 Expect.throws(() { array.add(0.0); }, | 2196 Expect.throws(() { array.add(0.0); }, |
| 2197 (e) { return e is UnsupportedOperationException; }); | 2197 (e) { return e is StateError; }); |
| 2198 Expect.throws(() { array.addAll([0]); }, | 2198 Expect.throws(() { array.addAll([0]); }, |
| 2199 (e) { return e is UnsupportedOperationException; }); | 2199 (e) { return e is StateError; }); |
| 2200 Expect.throws(() { array.addLast(0.0); }, | 2200 Expect.throws(() { array.addLast(0.0); }, |
| 2201 (e) { return e is UnsupportedOperationException; }); | 2201 (e) { return e is StateError; }); |
| 2202 Expect.throws(() { array.clear(); }, | 2202 Expect.throws(() { array.clear(); }, |
| 2203 (e) { return e is UnsupportedOperationException; }); | 2203 (e) { return e is StateError; }); |
| 2204 Expect.throws(() { array.insertRange(0, array.length, 0.0); }, | 2204 Expect.throws(() { array.insertRange(0, array.length, 0.0); }, |
| 2205 (e) { return e is UnsupportedOperationException; }); | 2205 (e) { return e is StateError; }); |
| 2206 Expect.throws(() { array.length = 0; }, | 2206 Expect.throws(() { array.length = 0; }, |
| 2207 (e) { return e is UnsupportedOperationException; }); | 2207 (e) { return e is StateError; }); |
| 2208 Expect.throws(() { array.removeLast(); }, | 2208 Expect.throws(() { array.removeLast(); }, |
| 2209 (e) { return e is UnsupportedOperationException; }); | 2209 (e) { return e is StateError; }); |
| 2210 Expect.throws(() { array.removeRange(0, array.length - 1); }, | 2210 Expect.throws(() { array.removeRange(0, array.length - 1); }, |
| 2211 (e) { return e is UnsupportedOperationException; }); | 2211 (e) { return e is StateError; }); |
| 2212 for (int i = 0; i < view.length; ++i) { | 2212 for (int i = 0; i < view.length; ++i) { |
| 2213 view[i] = 1.0 + i; | 2213 view[i] = 1.0 + i; |
| 2214 } | 2214 } |
| 2215 Expect.listEquals([1.0, 2.0, 3.0, 4.0, 5.0, | 2215 Expect.listEquals([1.0, 2.0, 3.0, 4.0, 5.0, |
| 2216 6.0, 7.0, 8.0, 9.0, 10.0], | 2216 6.0, 7.0, 8.0, 9.0, 10.0], |
| 2217 view); | 2217 view); |
| 2218 Expect.listEquals([0xBFF0000000000000, 0x3FF0000000000000, | 2218 Expect.listEquals([0xBFF0000000000000, 0x3FF0000000000000, |
| 2219 0x4000000000000000, 0x4008000000000000, | 2219 0x4000000000000000, 0x4008000000000000, |
| 2220 0x4010000000000000, 0x4014000000000000, | 2220 0x4010000000000000, 0x4014000000000000, |
| 2221 0x4018000000000000, 0x401C000000000000, | 2221 0x4018000000000000, 0x401C000000000000, |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2269 testInt64ListView(); | 2269 testInt64ListView(); |
| 2270 testUint64ListView(); | 2270 testUint64ListView(); |
| 2271 testFloat32ListView(); | 2271 testFloat32ListView(); |
| 2272 testFloat64ListView(); | 2272 testFloat64ListView(); |
| 2273 } | 2273 } |
| 2274 } | 2274 } |
| 2275 | 2275 |
| 2276 main() { | 2276 main() { |
| 2277 ByteArrayTest.testMain(); | 2277 ByteArrayTest.testMain(); |
| 2278 } | 2278 } |
| OLD | NEW |