blob: 92ca6799fc2f944e047d7ef0fb46625f88469b3d [file] [log] [blame]
// Copyright (c) 2017, 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 Iterable<E> skipWhile(bool test(E value))
/// ...
/// If all elements satisfy test the resulting iterable is empty, otherwise it
/// iterates the remaining elements in their original order, starting with the
/// first element for which test(element) returns false.
/// @description Checks that if all elements satisfy test the resulting iterable
/// is empty.
/// @author ngl@unipro.ru
import "dart:typed_data";
import "../../../Utils/expect.dart";
main() {
var list = new Int32List.fromList([1, 1, 2, 1, 1, 1]);
var res = list.skipWhile((e) => e < 3);
Expect.isTrue(res.isEmpty);
}