Files
sdk/tests/corelib/date_time3_test.dart
T
floitsch@google.com 86859d3324 Fix typo in Date.toString.
We emitted an extra 0 for Dates that had ms == 10.

Fixes issue 1386.

Review URL: https://chromiumcodereview.appspot.com//10310145

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7647 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-15 10:56:31 +00:00

13 lines
436 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.
// 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";
Date d = new Date.fromString(s);
Expect.equals(s, d.toString());
}