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

Side by Side Diff: test/codegen/expect/language/number_identifier_test_05_multi.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/number_identifier_test_05_multi', null, /* Import s */[
2 'dart_sdk',
3 'expect'
4 ], function load__number_identifier_test_05_multi(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 number_identifier_test_05_multi = Object.create(null);
11 let VoidTodouble = () => (VoidTodouble = dart.constFn(dart.definiteFunctionTyp e(core.double, [])))();
12 let dynamicTobool = () => (dynamicTobool = dart.constFn(dart.definiteFunctionT ype(core.bool, [dart.dynamic])))();
13 let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionT ype(dart.dynamic, [])))();
14 number_identifier_test_05_multi.main = function() {
15 expect$.Expect.isTrue(typeof 2 == 'number');
16 expect$.Expect.equals(2, 2);
17 expect$.Expect.isTrue(typeof -2 == 'number');
18 expect$.Expect.equals(-2, -2);
19 expect$.Expect.isTrue(typeof 16 == 'number');
20 expect$.Expect.isTrue(typeof -16 == 'number');
21 expect$.Expect.isTrue(typeof 2.0 == 'number');
22 expect$.Expect.equals(2.0, 2.0);
23 expect$.Expect.isTrue(typeof -2.0 == 'number');
24 expect$.Expect.equals(-2.0, -2.0);
25 expect$.Expect.isTrue(typeof 0.2 == 'number');
26 expect$.Expect.equals(0.2, 0.2);
27 expect$.Expect.isTrue(typeof 100.0 == 'number');
28 expect$.Expect.equals(100.0, 100.0);
29 expect$.Expect.isTrue(typeof 0.01 == 'number');
30 expect$.Expect.equals(0.01, 0.01);
31 expect$.Expect.isTrue(typeof 100.0 == 'number');
32 expect$.Expect.equals(100.0, 100.0);
33 expect$.Expect.throws(dart.fn(() => 100.0, VoidTodouble()), dart.fn(e => cor e.NoSuchMethodError.is(e), dynamicTobool()));
34 };
35 dart.fn(number_identifier_test_05_multi.main, VoidTodynamic());
36 // Exports:
37 exports.number_identifier_test_05_multi = number_identifier_test_05_multi;
38 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698