OLD | NEW |
(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 }); |
OLD | NEW |