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

Side by Side Diff: tests/language/double_to_string.dart

Issue 10248007: test rename overhaul: step 8 - language tests (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 8 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
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 // Test basic integer operations. 4 // Test basic integer operations.
5 5
6 main() { 6 main() {
7 Expect.equals("NaN", (double.NAN).toString()); 7 Expect.equals("NaN", (double.NAN).toString());
8 Expect.equals("Infinity", (1/0).toString()); 8 Expect.equals("Infinity", (1/0).toString());
9 Expect.equals("-Infinity", (-1/0).toString()); 9 Expect.equals("-Infinity", (-1/0).toString());
10 Expect.equals("0.0", (0.0).toString()); 10 Expect.equals("0.0", (0.0).toString());
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 Expect.equals("1000000000000000100.0", (1000000000000000128.0).toString()); 56 Expect.equals("1000000000000000100.0", (1000000000000000128.0).toString());
57 Expect.equals("1e+21", (1000000000000000012800.0).toString()); 57 Expect.equals("1e+21", (1000000000000000012800.0).toString());
58 Expect.equals("-1e+21", (-1000000000000000012800.0).toString()); 58 Expect.equals("-1e+21", (-1000000000000000012800.0).toString());
59 Expect.equals("1e-7", (0.0000001).toString()); 59 Expect.equals("1e-7", (0.0000001).toString());
60 Expect.equals("-1e-7", (-0.0000001).toString()); 60 Expect.equals("-1e-7", (-0.0000001).toString());
61 Expect.equals("1.0000000000000001e+21", 61 Expect.equals("1.0000000000000001e+21",
62 (1000000000000000128000.0).toString()); 62 (1000000000000000128000.0).toString());
63 Expect.equals("0.000001", (0.000001).toString()); 63 Expect.equals("0.000001", (0.000001).toString());
64 Expect.equals("1e-7", (0.0000001).toString()); 64 Expect.equals("1e-7", (0.0000001).toString());
65 } 65 }
OLDNEW
« no previous file with comments | « tests/language/double_comparison_test.dart ('k') | tests/language/double_to_string_as_exponential_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698