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

Side by Side Diff: tests/corelib/date_time5_test.dart

Issue 12212016: Remove Expect from core library. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated latest tests. Created 7 years, 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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";
6
5 // Test DateTime constructor with optional arguments. 7 // Test DateTime constructor with optional arguments.
6 8
7 main() { 9 main() {
8 var d = new DateTime(2012); 10 var d = new DateTime(2012);
9 Expect.equals(2012, d.year); 11 Expect.equals(2012, d.year);
10 Expect.equals(1, d.month); 12 Expect.equals(1, d.month);
11 Expect.equals(1, d.day); 13 Expect.equals(1, d.day);
12 Expect.equals(0, d.hour); 14 Expect.equals(0, d.hour);
13 Expect.equals(0, d.minute); 15 Expect.equals(0, d.minute);
14 Expect.equals(0, d.second); 16 Expect.equals(0, d.second);
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 72
71 d = new DateTime(2012, 5, 15, 13, 21, 33, 12); 73 d = new DateTime(2012, 5, 15, 13, 21, 33, 12);
72 Expect.equals(2012, d.year); 74 Expect.equals(2012, d.year);
73 Expect.equals(5, d.month); 75 Expect.equals(5, d.month);
74 Expect.equals(15, d.day); 76 Expect.equals(15, d.day);
75 Expect.equals(13, d.hour); 77 Expect.equals(13, d.hour);
76 Expect.equals(21, d.minute); 78 Expect.equals(21, d.minute);
77 Expect.equals(33, d.second); 79 Expect.equals(33, d.second);
78 Expect.equals(12, d.millisecond); 80 Expect.equals(12, d.millisecond);
79 } 81 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698