OLD | NEW |
(Empty) | |
| 1 dart_library.library('corelib/int_floor_test', null, /* Imports */[ |
| 2 'dart_sdk', |
| 3 'expect' |
| 4 ], function load__int_floor_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 int_floor_test = Object.create(null); |
| 11 let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionT
ype(dart.dynamic, [])))(); |
| 12 int_floor_test.main = function() { |
| 13 expect$.Expect.equals(0, (0)[dartx.floor]()); |
| 14 expect$.Expect.equals(1, (1)[dartx.floor]()); |
| 15 expect$.Expect.equals(4660, (4660)[dartx.floor]()); |
| 16 expect$.Expect.equals(305419896, (305419896)[dartx.floor]()); |
| 17 expect$.Expect.equals(1250999896491, (1250999896491)[dartx.floor]()); |
| 18 expect$.Expect.equals(81985529216486895, (81985529216486895)[dartx.floor]())
; |
| 19 expect$.Expect.equals(278982299350519141429689838319219341354010270362194283
35, (27898229935051914142968983831921934135401027036219428335)[dartx.floor]()); |
| 20 expect$.Expect.equals(-1, -dart.notNull((1)[dartx.floor]())); |
| 21 expect$.Expect.equals(-4660, -dart.notNull((4660)[dartx.floor]())); |
| 22 expect$.Expect.equals(-305419896, -dart.notNull((305419896)[dartx.floor]()))
; |
| 23 expect$.Expect.equals(-1250999896491, -dart.notNull((1250999896491)[dartx.fl
oor]())); |
| 24 expect$.Expect.equals(-81985529216486895, -dart.notNull((81985529216486895)[
dartx.floor]())); |
| 25 expect$.Expect.equals(-27898229935051914142968983831921934135401027036219428
335, -dart.notNull((27898229935051914142968983831921934135401027036219428335)[da
rtx.floor]())); |
| 26 expect$.Expect.isTrue(typeof (0)[dartx.floor]() == 'number'); |
| 27 expect$.Expect.isTrue(typeof (1)[dartx.floor]() == 'number'); |
| 28 expect$.Expect.isTrue(typeof (4660)[dartx.floor]() == 'number'); |
| 29 expect$.Expect.isTrue(typeof (305419896)[dartx.floor]() == 'number'); |
| 30 expect$.Expect.isTrue(typeof (1250999896491)[dartx.floor]() == 'number'); |
| 31 expect$.Expect.isTrue(typeof (81985529216486895)[dartx.floor]() == 'number')
; |
| 32 expect$.Expect.isTrue(typeof (2789822993505191414296898383192193413540102703
6219428335)[dartx.floor]() == 'number'); |
| 33 expect$.Expect.isTrue(typeof -dart.notNull((1)[dartx.floor]()) == 'number'); |
| 34 expect$.Expect.isTrue(typeof -dart.notNull((4660)[dartx.floor]()) == 'number
'); |
| 35 expect$.Expect.isTrue(typeof -dart.notNull((305419896)[dartx.floor]()) == 'n
umber'); |
| 36 expect$.Expect.isTrue(typeof -dart.notNull((1250999896491)[dartx.floor]()) =
= 'number'); |
| 37 expect$.Expect.isTrue(typeof -dart.notNull((81985529216486895)[dartx.floor](
)) == 'number'); |
| 38 expect$.Expect.isTrue(typeof -dart.notNull((27898229935051914142968983831921
934135401027036219428335)[dartx.floor]()) == 'number'); |
| 39 }; |
| 40 dart.fn(int_floor_test.main, VoidTodynamic()); |
| 41 // Exports: |
| 42 exports.int_floor_test = int_floor_test; |
| 43 }); |
OLD | NEW |