blob: 7c1c40123d75d123867c0886b39eb7af8ab380e7 [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.
/// @assertion factory
/// Constructs a new DateTime instance with current date time value in the local time zone.
/// @description Checks that the dates constructed by [] increase all the time.
/// @author msyabro
import "../../../Utils/expect.dart";
DateTime start = new;
DateTime prev = start;
for(int i = 0; i < 100000; i++) {
DateTime next = new;
Expect.isTrue(prev.compareTo(next) <= 0);
prev = next;