OLD | NEW |
(Empty) | |
| 1 dart_library.library('language/compile_time_constant2_test', null, /* Imports */
[ |
| 2 'dart_sdk', |
| 3 'expect' |
| 4 ], function load__compile_time_constant2_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 compile_time_constant2_test = Object.create(null); |
| 11 let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionT
ype(dart.dynamic, [])))(); |
| 12 compile_time_constant2_test.x = 19; |
| 13 compile_time_constant2_test.y = 3; |
| 14 compile_time_constant2_test.z = -5; |
| 15 compile_time_constant2_test.g1 = compile_time_constant2_test.x + compile_time_
constant2_test.y; |
| 16 compile_time_constant2_test.g2 = compile_time_constant2_test.x * compile_time_
constant2_test.y; |
| 17 compile_time_constant2_test.g3 = compile_time_constant2_test.x / compile_time_
constant2_test.y; |
| 18 compile_time_constant2_test.g4 = (compile_time_constant2_test.x / compile_time
_constant2_test.y)[dartx.truncate](); |
| 19 compile_time_constant2_test.g5 = compile_time_constant2_test.x << compile_time
_constant2_test.y; |
| 20 compile_time_constant2_test.g6 = compile_time_constant2_test.x >> compile_time
_constant2_test.y; |
| 21 compile_time_constant2_test.g7 = ~compile_time_constant2_test.z >>> 0; |
| 22 compile_time_constant2_test.g8 = -compile_time_constant2_test.x; |
| 23 compile_time_constant2_test.g9 = compile_time_constant2_test.x < compile_time_
constant2_test.y; |
| 24 compile_time_constant2_test.g10 = compile_time_constant2_test.x <= compile_tim
e_constant2_test.y; |
| 25 compile_time_constant2_test.g11 = compile_time_constant2_test.x <= compile_tim
e_constant2_test.x; |
| 26 compile_time_constant2_test.g12 = compile_time_constant2_test.x > compile_time
_constant2_test.y; |
| 27 compile_time_constant2_test.g13 = compile_time_constant2_test.x >= compile_tim
e_constant2_test.y; |
| 28 compile_time_constant2_test.g14 = compile_time_constant2_test.x >= compile_tim
e_constant2_test.x; |
| 29 compile_time_constant2_test.g15 = compile_time_constant2_test.x == compile_tim
e_constant2_test.y; |
| 30 compile_time_constant2_test.g16 = compile_time_constant2_test.x == compile_tim
e_constant2_test.x; |
| 31 compile_time_constant2_test.g17 = compile_time_constant2_test.x != compile_tim
e_constant2_test.y; |
| 32 compile_time_constant2_test.g18 = compile_time_constant2_test.x != compile_tim
e_constant2_test.x; |
| 33 compile_time_constant2_test.g19 = compile_time_constant2_test.x | compile_time
_constant2_test.y; |
| 34 compile_time_constant2_test.g20 = compile_time_constant2_test.x & compile_time
_constant2_test.y; |
| 35 compile_time_constant2_test.g21 = compile_time_constant2_test.x ^ compile_time
_constant2_test.y; |
| 36 compile_time_constant2_test.g22 = compile_time_constant2_test.g1 + compile_tim
e_constant2_test.g2 + compile_time_constant2_test.g4 + compile_time_constant2_te
st.g5 + compile_time_constant2_test.g6 + compile_time_constant2_test.g7 + compil
e_time_constant2_test.g8; |
| 37 compile_time_constant2_test.g23 = compile_time_constant2_test.x[dartx['%']](co
mpile_time_constant2_test.y); |
| 38 compile_time_constant2_test.main = function() { |
| 39 expect$.Expect.equals(22, compile_time_constant2_test.g1); |
| 40 expect$.Expect.equals(57, compile_time_constant2_test.g2); |
| 41 expect$.Expect.equals(6.333333333333333, compile_time_constant2_test.g3); |
| 42 expect$.Expect.equals(6, compile_time_constant2_test.g4); |
| 43 expect$.Expect.equals(152, compile_time_constant2_test.g5); |
| 44 expect$.Expect.equals(2, compile_time_constant2_test.g6); |
| 45 expect$.Expect.equals(4, compile_time_constant2_test.g7); |
| 46 expect$.Expect.equals(-19, compile_time_constant2_test.g8); |
| 47 expect$.Expect.equals(false, compile_time_constant2_test.g9); |
| 48 expect$.Expect.equals(false, compile_time_constant2_test.g10); |
| 49 expect$.Expect.equals(true, compile_time_constant2_test.g11); |
| 50 expect$.Expect.equals(true, compile_time_constant2_test.g12); |
| 51 expect$.Expect.equals(true, compile_time_constant2_test.g13); |
| 52 expect$.Expect.equals(true, compile_time_constant2_test.g14); |
| 53 expect$.Expect.equals(false, compile_time_constant2_test.g15); |
| 54 expect$.Expect.equals(true, compile_time_constant2_test.g16); |
| 55 expect$.Expect.equals(true, compile_time_constant2_test.g17); |
| 56 expect$.Expect.equals(false, compile_time_constant2_test.g18); |
| 57 expect$.Expect.equals(19, compile_time_constant2_test.g19); |
| 58 expect$.Expect.equals(3, compile_time_constant2_test.g20); |
| 59 expect$.Expect.equals(16, compile_time_constant2_test.g21); |
| 60 expect$.Expect.equals(224, compile_time_constant2_test.g22); |
| 61 expect$.Expect.equals(1, compile_time_constant2_test.g23); |
| 62 }; |
| 63 dart.fn(compile_time_constant2_test.main, VoidTodynamic()); |
| 64 // Exports: |
| 65 exports.compile_time_constant2_test = compile_time_constant2_test; |
| 66 }); |
OLD | NEW |