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

Unified Diff: tests/corelib/date_time_parse_test.dart

Issue 48823005: improve DateTime parsing a UTC timezone offset (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix regexp. Created 7 years, 2 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 | « sdk/lib/core/date_time.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/corelib/date_time_parse_test.dart
diff --git a/tests/corelib/date_time_parse_test.dart b/tests/corelib/date_time_parse_test.dart
index 9f0ad7603753e7d2410c0a575ebb9fba44326252..a8b9827d13a35cb2dcc0c1bb392bbbe4db043d59 100644
--- a/tests/corelib/date_time_parse_test.dart
+++ b/tests/corelib/date_time_parse_test.dart
@@ -19,4 +19,8 @@ main() {
check(new DateTime(2012, 02, 27), "+20120227");
check(new DateTime.utc(2012, 02, 27, 14), "2012-02-27T14Z");
check(new DateTime.utc(-12345, 1, 1), "-123450101 00:00:00 Z");
+ check(new DateTime.utc(2012, 02, 27, 14), "2012-02-27T14+00");
+ check(new DateTime.utc(2012, 02, 27, 14), "2012-02-27T14+0000");
+ check(new DateTime.utc(2012, 02, 27, 14), "2012-02-27T14+00:00");
+ check(new DateTime.utc(2012, 02, 27, 14), "2012-02-27T14 +00:00");
}
« no previous file with comments | « sdk/lib/core/date_time.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698