blob: dba78c9f6da7a05bb7904d1abb216d15f0c3e707 [file] [log] [blame]
// Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
/// @assertion bool hasNext
/// @description Checks that [hasNext] returns [false] if iterator has no
/// elements to iterate
/// @author
import "../../../Utils/expect.dart";
import "dart:collection";
main() {
HasNextIterator i1 = new HasNextIterator([].iterator);
HasNextIterator i2 = new HasNextIterator([0].iterator);;
HasNextIterator i3 = new HasNextIterator([0, 1].iterator);;;