blob: 8da3f078c67e0bb5bfac6330c8f0557fe7c8b40a [file] [log] [blame]
// Copyright (c) 2011, 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.
// @dart = 2.9
/// @assertion final int minute
/// Returns the minute into the hour 0...59.
/// @description Creates a new DateTime with various integer minutes values (0..59),
/// and reads the value back.
/// @author hlodvig
/// @reviewer msyabro
import "../../../Utils/expect.dart";
main() {
for(int i = 59; i >= 0; --i){
check(i);
}
}
void check(int m) {
DateTime date = new DateTime(2011, 1, 1, 0, m, 0, 0);
Expect.isTrue(date.minute is int);
Expect.equals(m, date.minute);
}