blob: 7d8768a9e973ac5241ffdd8851a1c745a16baa81 [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 Float64x2List(int length)
* Creates a Float64x2List of the specified length (in elements), all of whose
* elements have all lanes set to zero.
* @description Checks that all elements of the new [Float64x2List] are zero.
* @author ngl@unipro.ru
*/
import "dart:typed_data";
import "../../../Utils/expect.dart";
void check(int length) {
Float64x2List l = new Float64x2List(length);
for (int i = 0; i < length; ++i) {
Expect.isTrue((l[i].x == 0.0) && (l[i].y == 0.0));
}
}
main() {
check(1);
check(10);
check(1024);
check(2048);
}