blob: c6b7c043fb1b9fd1f1f0df762acf04ade97bd5ef [file] [log] [blame]
// Copyright (c) 2013, 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 E elementAt(int index)
* Returns the indexth element.
* @description Checks that the indexth element is returned.
* @author msyabro
*/
import "dart:typed_data";
import "../../../Utils/expect.dart";
main() {
var l = new Int8List.fromList([10, 20, 30, 40, 50, 60, 70, 80, 90, 100]);
for (int i = 1; i <= 10; ++i) {
Expect.equals(i*10, l.elementAt(i - 1));
}
}