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

Unified Diff: test/codegen/corelib/date_time3_test.dart

Issue 1945153002: Add corelib tests (Closed) Base URL: https://github.com/dart-lang/dev_compiler@master
Patch Set: error_test and range_error_test now pass Created 4 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/codegen/corelib/date_time2_test.dart ('k') | test/codegen/corelib/date_time4_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/codegen/corelib/date_time3_test.dart
diff --git a/test/codegen/language/compile_time_constant9_test.dart b/test/codegen/corelib/date_time3_test.dart
similarity index 56%
copy from test/codegen/language/compile_time_constant9_test.dart
copy to test/codegen/corelib/date_time3_test.dart
index 96cf41a5dafb3588f8a376bfbdfefb4241b40bb9..557eedee15fde73a37da728fef633214dd6d2548 100644
--- a/test/codegen/language/compile_time_constant9_test.dart
+++ b/test/codegen/corelib/date_time3_test.dart
@@ -4,15 +4,11 @@
import "package:expect/expect.dart";
-class B {
- const B();
-}
-
-class A {
- var x = const B();
- A();
-}
+// At some point dart was emitting a bad padding 0 for Dates where the ms were
+// ending with 10.
main() {
- Expect.isTrue(identical(new A().x, new A().x));
+ String s = "2012-01-30 08:30:00.010";
+ DateTime d = DateTime.parse(s);
+ Expect.equals(s, d.toString());
}
« no previous file with comments | « test/codegen/corelib/date_time2_test.dart ('k') | test/codegen/corelib/date_time4_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698