| 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 hasNextIterator.test; | 5 library hasNextIterator.test; |
| 6 | 6 |
| 7 import "package:expect/expect.dart"; | 7 import "package:expect/expect.dart"; |
| 8 import 'dart:collection'; | 8 import 'dart:collection'; |
| 9 | 9 |
| 10 main() { | 10 main() { |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 Expect.isTrue(it.hasNext); | 28 Expect.isTrue(it.hasNext); |
| 29 Expect.equals(1, it.next()); | 29 Expect.equals(1, it.next()); |
| 30 Expect.isTrue(it.hasNext); | 30 Expect.isTrue(it.hasNext); |
| 31 Expect.isTrue(it.hasNext); | 31 Expect.isTrue(it.hasNext); |
| 32 Expect.equals(2, it.next()); | 32 Expect.equals(2, it.next()); |
| 33 Expect.isFalse(it.hasNext); | 33 Expect.isFalse(it.hasNext); |
| 34 Expect.isFalse(it.hasNext); | 34 Expect.isFalse(it.hasNext); |
| 35 Expect.throws(() => it.next(), (e) => e is StateError); | 35 Expect.throws(() => it.next(), (e) => e is StateError); |
| 36 Expect.isFalse(it.hasNext); | 36 Expect.isFalse(it.hasNext); |
| 37 } | 37 } |
| OLD | NEW |