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

Side by Side Diff: test/codegen/expect/language/double_to_string_test.js

Issue 2128353002: Check in codegen test expectations. (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 4 years, 5 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
OLDNEW
(Empty)
1 dart_library.library('language/double_to_string_test', null, /* Imports */[
2 'dart_sdk',
3 'expect'
4 ], function load__double_to_string_test(exports, dart_sdk, expect) {
5 'use strict';
6 const core = dart_sdk.core;
7 const dart = dart_sdk.dart;
8 const dartx = dart_sdk.dartx;
9 const expect$ = expect.expect;
10 const double_to_string_test = Object.create(null);
11 let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionT ype(dart.dynamic, [])))();
12 double_to_string_test.main = function() {
13 expect$.Expect.equals("NaN", dart.toString(core.double.NAN));
14 expect$.Expect.equals("Infinity", dart.toString(1 / 0));
15 expect$.Expect.equals("-Infinity", dart.toString(-1 / 0));
16 expect$.Expect.equals("90.12", dart.toString(90.12));
17 expect$.Expect.equals("0.1", dart.toString(0.1));
18 expect$.Expect.equals("0.01", dart.toString(0.01));
19 expect$.Expect.equals("0.0123", dart.toString(0.0123));
20 expect$.Expect.equals("1.1111111111111111e+21", dart.toString(1.111111111111 1111e+21));
21 expect$.Expect.equals("1.1111111111111111e+22", dart.toString(1.111111111111 1111e+22));
22 expect$.Expect.equals("0.00001", dart.toString(0.00001));
23 expect$.Expect.equals("0.000001", dart.toString(0.000001));
24 expect$.Expect.equals("1e-7", dart.toString(1e-7));
25 expect$.Expect.equals("1.2e-7", dart.toString(1.2e-7));
26 expect$.Expect.equals("1.23e-7", dart.toString(1.23e-7));
27 expect$.Expect.equals("1e-8", dart.toString(1e-8));
28 expect$.Expect.equals("1.2e-8", dart.toString(1.2e-8));
29 expect$.Expect.equals("1.23e-8", dart.toString(1.23e-8));
30 expect$.Expect.equals("-0.0", dart.toString(-0.0));
31 expect$.Expect.equals("-90.12", dart.toString(-90.12));
32 expect$.Expect.equals("-0.1", dart.toString(-0.1));
33 expect$.Expect.equals("-0.01", dart.toString(-0.01));
34 expect$.Expect.equals("-0.0123", dart.toString(-0.0123));
35 expect$.Expect.equals("-1.1111111111111111e+21", dart.toString(-1.1111111111 111111e+21));
36 expect$.Expect.equals("-1.1111111111111111e+22", dart.toString(-1.1111111111 111111e+22));
37 expect$.Expect.equals("-0.00001", dart.toString(-0.00001));
38 expect$.Expect.equals("-0.000001", dart.toString(-0.000001));
39 expect$.Expect.equals("-1e-7", dart.toString(-1e-7));
40 expect$.Expect.equals("-1.2e-7", dart.toString(-1.2e-7));
41 expect$.Expect.equals("-1.23e-7", dart.toString(-1.23e-7));
42 expect$.Expect.equals("-1e-8", dart.toString(-1e-8));
43 expect$.Expect.equals("-1.2e-8", dart.toString(-1.2e-8));
44 expect$.Expect.equals("-1.23e-8", dart.toString(-1.23e-8));
45 expect$.Expect.equals("0.00001", dart.toString(0.00001));
46 expect$.Expect.equals("1e+21", dart.toString(1e+21));
47 expect$.Expect.equals("-1e+21", dart.toString(-1e+21));
48 expect$.Expect.equals("1e-7", dart.toString(1e-7));
49 expect$.Expect.equals("-1e-7", dart.toString(-1e-7));
50 expect$.Expect.equals("1.0000000000000001e+21", dart.toString(1.000000000000 0001e+21));
51 expect$.Expect.equals("0.000001", dart.toString(0.000001));
52 expect$.Expect.equals("1e-7", dart.toString(1e-7));
53 };
54 dart.fn(double_to_string_test.main, VoidTodynamic());
55 // Exports:
56 exports.double_to_string_test = double_to_string_test;
57 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698