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

Unified Diff: tests/language/src/DoubleToStringAsExponentialTest.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tests/language/src/DoubleToString.dart ('k') | tests/language/src/DoubleToStringAsFixedTest.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/src/DoubleToStringAsExponentialTest.dart
diff --git a/tests/language/src/DoubleToStringAsExponentialTest.dart b/tests/language/src/DoubleToStringAsExponentialTest.dart
deleted file mode 100644
index 3d9b14005e9ba965ab7d62a0f89bf936ca3e0e6d..0000000000000000000000000000000000000000
--- a/tests/language/src/DoubleToStringAsExponentialTest.dart
+++ /dev/null
@@ -1,82 +0,0 @@
-// 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.
-// Test basic integer operations.
-
-main() {
- Expect.equals("1e+0", (1.0).toStringAsExponential(null));
- Expect.equals("1.1e+1", (11.0).toStringAsExponential(null));
- Expect.equals("1.12e+2", (112.0).toStringAsExponential(null));
- Expect.equals("1e+0", (1.0).toStringAsExponential(0));
- Expect.equals("1e+1", (11.0).toStringAsExponential(0));
- Expect.equals("1e+2", (112.0).toStringAsExponential(0));
- Expect.equals("1.0e+0", (1.0).toStringAsExponential(1));
- Expect.equals("1.1e+1", (11.0).toStringAsExponential(1));
- Expect.equals("1.1e+2", (112.0).toStringAsExponential(1));
- Expect.equals("1.00e+0", (1.0).toStringAsExponential(2));
- Expect.equals("1.10e+1", (11.0).toStringAsExponential(2));
- Expect.equals("1.12e+2", (112.0).toStringAsExponential(2));
- Expect.equals("1.000e+0", (1.0).toStringAsExponential(3));
- Expect.equals("1.100e+1", (11.0).toStringAsExponential(3));
- Expect.equals("1.120e+2", (112.0).toStringAsExponential(3));
- Expect.equals("1e-1", (0.1).toStringAsExponential(null));
- Expect.equals("1.1e-1", (0.11).toStringAsExponential(null));
- Expect.equals("1.12e-1", (0.112).toStringAsExponential(null));
- Expect.equals("1e-1", (0.1).toStringAsExponential(0));
- Expect.equals("1e-1", (0.11).toStringAsExponential(0));
- Expect.equals("1e-1", (0.112).toStringAsExponential(0));
- Expect.equals("1.0e-1", (0.1).toStringAsExponential(1));
- Expect.equals("1.1e-1", (0.11).toStringAsExponential(1));
- Expect.equals("1.1e-1", (0.112).toStringAsExponential(1));
- Expect.equals("1.00e-1", (0.1).toStringAsExponential(2));
- Expect.equals("1.10e-1", (0.11).toStringAsExponential(2));
- Expect.equals("1.12e-1", (0.112).toStringAsExponential(2));
- Expect.equals("1.000e-1", (0.1).toStringAsExponential(3));
- Expect.equals("1.100e-1", (0.11).toStringAsExponential(3));
- Expect.equals("1.120e-1", (0.112).toStringAsExponential(3));
-
- Expect.equals("-0e+0", (-0.0).toStringAsExponential(null));
- Expect.equals("-1e+0", (-1.0).toStringAsExponential(null));
- Expect.equals("-1.1e+1", (-11.0).toStringAsExponential(null));
- Expect.equals("-1.12e+2", (-112.0).toStringAsExponential(null));
- Expect.equals("-1e+0", (-1.0).toStringAsExponential(0));
- Expect.equals("-1e+1", (-11.0).toStringAsExponential(0));
- Expect.equals("-1e+2", (-112.0).toStringAsExponential(0));
- Expect.equals("-1.0e+0", (-1.0).toStringAsExponential(1));
- Expect.equals("-1.1e+1", (-11.0).toStringAsExponential(1));
- Expect.equals("-1.1e+2", (-112.0).toStringAsExponential(1));
- Expect.equals("-1.00e+0", (-1.0).toStringAsExponential(2));
- Expect.equals("-1.10e+1", (-11.0).toStringAsExponential(2));
- Expect.equals("-1.12e+2", (-112.0).toStringAsExponential(2));
- Expect.equals("-1.000e+0", (-1.0).toStringAsExponential(3));
- Expect.equals("-1.100e+1", (-11.0).toStringAsExponential(3));
- Expect.equals("-1.120e+2", (-112.0).toStringAsExponential(3));
- Expect.equals("-1e-1", (-0.1).toStringAsExponential(null));
- Expect.equals("-1.1e-1", (-0.11).toStringAsExponential(null));
- Expect.equals("-1.12e-1", (-0.112).toStringAsExponential(null));
- Expect.equals("-1e-1", (-0.1).toStringAsExponential(0));
- Expect.equals("-1e-1", (-0.11).toStringAsExponential(0));
- Expect.equals("-1e-1", (-0.112).toStringAsExponential(0));
- Expect.equals("-1.0e-1", (-0.1).toStringAsExponential(1));
- Expect.equals("-1.1e-1", (-0.11).toStringAsExponential(1));
- Expect.equals("-1.1e-1", (-0.112).toStringAsExponential(1));
- Expect.equals("-1.00e-1", (-0.1).toStringAsExponential(2));
- Expect.equals("-1.10e-1", (-0.11).toStringAsExponential(2));
- Expect.equals("-1.12e-1", (-0.112).toStringAsExponential(2));
- Expect.equals("-1.000e-1", (-0.1).toStringAsExponential(3));
- Expect.equals("-1.100e-1", (-0.11).toStringAsExponential(3));
- Expect.equals("-1.120e-1", (-0.112).toStringAsExponential(3));
-
- Expect.equals("NaN", (double.NAN).toStringAsExponential(2));
- Expect.equals("Infinity", (double.INFINITY).toStringAsExponential(2));
- Expect.equals("-Infinity", (-double.INFINITY).toStringAsExponential(2));
- Expect.equals("1e+0", (1.0).toStringAsExponential(0));
- Expect.equals("0e+0", (0.0).toStringAsExponential(null));
- Expect.equals("0.00e+0", (0.0).toStringAsExponential(2));
- Expect.equals("1e+1", (11.2356).toStringAsExponential(0));
- Expect.equals("1.1236e+1", (11.2356).toStringAsExponential(4));
- Expect.equals("1.1236e-4", (0.000112356).toStringAsExponential(4));
- Expect.equals("-1.1236e-4", (-0.000112356).toStringAsExponential(4));
- Expect.equals("1.12356e-4", (0.000112356).toStringAsExponential(null));
- Expect.equals("-1.12356e-4", (-0.000112356).toStringAsExponential(null));
-}
« no previous file with comments | « tests/language/src/DoubleToString.dart ('k') | tests/language/src/DoubleToStringAsFixedTest.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698