OLD | NEW |
(Empty) | |
| 1 dart_library.library('language/value_range3_test', null, /* Imports */[ |
| 2 'dart_sdk', |
| 3 'expect' |
| 4 ], function load__value_range3_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 value_range3_test = Object.create(null); |
| 11 let VoidTovoid = () => (VoidTovoid = dart.constFn(dart.definiteFunctionType(da
rt.void, [])))(); |
| 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 value_range3_test.A = class A extends core.Object { |
| 15 copy(array, index1, index2) { |
| 16 if (dart.test(dart.dsend(index1, '<', dart.dsend(index2, '+', index2)))) { |
| 17 return dart.dindex(array, index1); |
| 18 } |
| 19 } |
| 20 }; |
| 21 dart.setSignature(value_range3_test.A, { |
| 22 methods: () => ({copy: dart.definiteFunctionType(dart.dynamic, [dart.dynamic
, dart.dynamic, dart.dynamic])}) |
| 23 }); |
| 24 value_range3_test.main = function() { |
| 25 expect$.Expect.throws(dart.fn(() => new value_range3_test.A().copy(core.List
.new(0), 0, 1), VoidTovoid()), dart.fn(e => core.RangeError.is(e), dynamicTobool
())); |
| 26 }; |
| 27 dart.fn(value_range3_test.main, VoidTodynamic()); |
| 28 // Exports: |
| 29 exports.value_range3_test = value_range3_test; |
| 30 }); |
OLD | NEW |