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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: test/codegen/expect/language/ackermann_test.js
diff --git a/test/codegen/expect/language/ackermann_test.js b/test/codegen/expect/language/ackermann_test.js
new file mode 100644
index 0000000000000000000000000000000000000000..e095d2c816be048b055da04c49b5d0bcf4e6cb22
--- /dev/null
+++ b/test/codegen/expect/language/ackermann_test.js
@@ -0,0 +1,33 @@
+dart_library.library('language/ackermann_test', null, /* Imports */[
+ 'dart_sdk',
+ 'expect'
+], function load__ackermann_test(exports, dart_sdk, expect) {
+ 'use strict';
+ const core = dart_sdk.core;
+ const dart = dart_sdk.dart;
+ const dartx = dart_sdk.dartx;
+ const expect$ = expect.expect;
+ const ackermann_test = Object.create(null);
+ let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionType(dart.dynamic, [])))();
+ ackermann_test.AckermannTest = class AckermannTest extends core.Object {
+ static ack(m, n) {
+ return dart.equals(m, 0) ? dart.dsend(n, '+', 1) : dart.equals(n, 0) ? ackermann_test.AckermannTest.ack(dart.dsend(m, '-', 1), 1) : ackermann_test.AckermannTest.ack(dart.dsend(m, '-', 1), ackermann_test.AckermannTest.ack(m, dart.dsend(n, '-', 1)));
+ }
+ static testMain() {
+ expect$.Expect.equals(253, ackermann_test.AckermannTest.ack(3, 5));
+ }
+ };
+ dart.setSignature(ackermann_test.AckermannTest, {
+ statics: () => ({
+ ack: dart.definiteFunctionType(dart.dynamic, [dart.dynamic, dart.dynamic]),
+ testMain: dart.definiteFunctionType(dart.dynamic, [])
+ }),
+ names: ['ack', 'testMain']
+ });
+ ackermann_test.main = function() {
+ ackermann_test.AckermannTest.testMain();
+ };
+ dart.fn(ackermann_test.main, VoidTodynamic());
+ // Exports:
+ exports.ackermann_test = ackermann_test;
+});

Powered by Google App Engine
This is Rietveld 408576698