blob: f604fadbafbde2ea6bcb6614ec1ea2e43184a67f [file] [log] [blame]
/*
* Copyright (c) 2016, 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 void reset()
* ...
* This method does not stop or start the Stopwatch.
* @description Checks that this method does not stop the Stopwatch.
* @author sgrekhov@unipro.ru
*/
import "dart:async";
import "../../../Utils/expect.dart";
main() {
Stopwatch sw = new Stopwatch();
sw.start();
sw.reset();
Expect.isTrue(sw.isRunning);
sw.stop();
sw.start();
sw.reset();
Expect.isTrue(sw.isRunning);
}