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

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

Issue 12743005: Revert "Remove Expect from core library." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Reupload (first upload failed). 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
« no previous file with comments | « tests/corelib/date_time4_test.dart ('k') | tests/corelib/date_time6_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
7 // Test DateTime constructor with optional arguments. 5 // Test DateTime constructor with optional arguments.
8 6
9 main() { 7 main() {
10 var d = new DateTime(2012); 8 var d = new DateTime(2012);
11 Expect.equals(2012, d.year); 9 Expect.equals(2012, d.year);
12 Expect.equals(1, d.month); 10 Expect.equals(1, d.month);
13 Expect.equals(1, d.day); 11 Expect.equals(1, d.day);
14 Expect.equals(0, d.hour); 12 Expect.equals(0, d.hour);
15 Expect.equals(0, d.minute); 13 Expect.equals(0, d.minute);
16 Expect.equals(0, d.second); 14 Expect.equals(0, d.second);
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 70
73 d = new DateTime(2012, 5, 15, 13, 21, 33, 12); 71 d = new DateTime(2012, 5, 15, 13, 21, 33, 12);
74 Expect.equals(2012, d.year); 72 Expect.equals(2012, d.year);
75 Expect.equals(5, d.month); 73 Expect.equals(5, d.month);
76 Expect.equals(15, d.day); 74 Expect.equals(15, d.day);
77 Expect.equals(13, d.hour); 75 Expect.equals(13, d.hour);
78 Expect.equals(21, d.minute); 76 Expect.equals(21, d.minute);
79 Expect.equals(33, d.second); 77 Expect.equals(33, d.second);
80 Expect.equals(12, d.millisecond); 78 Expect.equals(12, d.millisecond);
81 } 79 }
OLDNEW
« no previous file with comments | « tests/corelib/date_time4_test.dart ('k') | tests/corelib/date_time6_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698