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

Side by Side Diff: test/codegen/expect/language/ackermann_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/ackermann_test', null, /* Imports */[
2 'dart_sdk',
3 'expect'
4 ], function load__ackermann_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 ackermann_test = Object.create(null);
11 let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionT ype(dart.dynamic, [])))();
12 ackermann_test.AckermannTest = class AckermannTest extends core.Object {
13 static ack(m, n) {
14 return dart.equals(m, 0) ? dart.dsend(n, '+', 1) : dart.equals(n, 0) ? ack ermann_test.AckermannTest.ack(dart.dsend(m, '-', 1), 1) : ackermann_test.Ackerma nnTest.ack(dart.dsend(m, '-', 1), ackermann_test.AckermannTest.ack(m, dart.dsend (n, '-', 1)));
15 }
16 static testMain() {
17 expect$.Expect.equals(253, ackermann_test.AckermannTest.ack(3, 5));
18 }
19 };
20 dart.setSignature(ackermann_test.AckermannTest, {
21 statics: () => ({
22 ack: dart.definiteFunctionType(dart.dynamic, [dart.dynamic, dart.dynamic]) ,
23 testMain: dart.definiteFunctionType(dart.dynamic, [])
24 }),
25 names: ['ack', 'testMain']
26 });
27 ackermann_test.main = function() {
28 ackermann_test.AckermannTest.testMain();
29 };
30 dart.fn(ackermann_test.main, VoidTodynamic());
31 // Exports:
32 exports.ackermann_test = ackermann_test;
33 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698