blob: 50a9f84beac2c7e7d68511af9f1b5354e0580609 [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))
* ...
* The returned iterable provides elements by iterating this iterable, but
* skipping over all initial elements where test(element) returns true. 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 Float32List.fromList([1.0, 2.0, 3.0, 4.0, 5.0, 6.0]);
var res = list.skipWhile((e) => true);
Expect.equals(0, res.length);
}