mirror of
https://github.com/dart-lang/sdk
synced 2024-10-14 11:03:19 +00:00
998dd24dcc
Unusual things in this block: - date_time10_test.dart had no strong mode fork, and reveals what looks like a legit DDC bug at first glance. Excluded it for now in the status file. - date_time_test.dart had small differences between the two forks that looked like an error. Fixed. BUG= R=bkonyi@google.com, rnystrom@google.com Review-Url: https://codereview.chromium.org/2984063002 .
15 lines
473 B
Dart
15 lines
473 B
Dart
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
|
// for details. All rights reserved. Use of this source code is governed by a
|
|
// BSD-style license that can be found in the LICENSE file.
|
|
|
|
import "package:expect/expect.dart";
|
|
|
|
// At some point dart was emitting a bad padding 0 for Dates where the ms were
|
|
// ending with 10.
|
|
|
|
main() {
|
|
String s = "2012-01-30 08:30:00.010";
|
|
DateTime d = DateTime.parse(s);
|
|
Expect.equals(s, d.toString());
|
|
}
|