Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Side by Side Diff: tests/corelib_2/duration_test.dart

Issue 2987793002: Migrate test block 7 to Dart 2.0. (Closed)
Patch Set: Final review comment, dropping static multitest Created 3 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 import "package:expect/expect.dart"; 5 import "package:expect/expect.dart";
6 6
7 main() { 7 main() {
8 Duration d; 8 Duration d;
9 d = new Duration(days: 1); 9 d = new Duration(days: 1);
10 Expect.equals(86400000000, d.inMicroseconds); 10 Expect.equals(86400000000, d.inMicroseconds);
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 d1 = const Duration(hours: 1); 284 d1 = const Duration(hours: 1);
285 d2 = const Duration(hours: -1); 285 d2 = const Duration(hours: -1);
286 Expect.isFalse(d1.isNegative); 286 Expect.isFalse(d1.isNegative);
287 Expect.isTrue(d2.isNegative); 287 Expect.isTrue(d2.isNegative);
288 Expect.equals(d1, d1.abs()); 288 Expect.equals(d1, d1.abs());
289 Expect.equals(d1, d2.abs()); 289 Expect.equals(d1, d2.abs());
290 290
291 Expect.equals(d2, -d1); 291 Expect.equals(d2, -d1);
292 Expect.equals(d1, -d2); 292 Expect.equals(d1, -d2);
293 } 293 }
OLDNEW
« no previous file with comments | « tests/corelib_2/duration_double_multiplication_test.dart ('k') | tests/corelib_2/dynamic_nosuchmethod_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698