| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 import "package:expect/expect.dart"; | 5 import "package:expect/expect.dart"; |
| 6 import "dart:collection"; | 6 import "dart:collection"; |
| 7 | 7 |
| 8 test(List list, int start, int end, [fillValue]) { | 8 test(List list, int start, int end, [fillValue]) { |
| 9 List copy = list.toList(); | 9 List copy = list.toList(); |
| 10 list.fillRange(start, end, fillValue); | 10 list.fillRange(start, end, fillValue); |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 expectUE(() => test(const [1, 2, 3], 1, 4)); | 71 expectUE(() => test(const [1, 2, 3], 1, 4)); |
| 72 } | 72 } |
| 73 | 73 |
| 74 void expectRE(void f()) { | 74 void expectRE(void f()) { |
| 75 Expect.throws(f, (e) => e is RangeError); | 75 Expect.throws(f, (e) => e is RangeError); |
| 76 } | 76 } |
| 77 | 77 |
| 78 void expectUE(void f()) { | 78 void expectUE(void f()) { |
| 79 Expect.throws(f, (e) => e is UnsupportedError); | 79 Expect.throws(f, (e) => e is UnsupportedError); |
| 80 } | 80 } |
| OLD | NEW |