%PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
Server IP : 49.231.201.246 / Your IP : 216.73.216.149 Web Server : Apache/2.4.18 (Ubuntu) System : Linux 246 4.4.0-210-generic #242-Ubuntu SMP Fri Apr 16 09:57:56 UTC 2021 x86_64 User : root ( 0) PHP Version : 7.0.33-0ubuntu0.16.04.16 Disable Function : exec,passthru,shell_exec,system,proc_open,popen,pcntl_exec MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /proc/11585/cwd/html/ppaobm/vendor/bower-asset/moment/src/test/moment/ |
Upload File : |
import { module, test } from '../qunit'; import moment from '../../moment'; module('min max'); test('min', function (assert) { var now = moment(), future = now.clone().add(1, 'month'), past = now.clone().subtract(1, 'month'), invalid = moment.invalid(); assert.equal(moment.min(now, future, past), past, 'min(now, future, past)'); assert.equal(moment.min(future, now, past), past, 'min(future, now, past)'); assert.equal(moment.min(future, past, now), past, 'min(future, past, now)'); assert.equal(moment.min(past, future, now), past, 'min(past, future, now)'); assert.equal(moment.min(now, past), past, 'min(now, past)'); assert.equal(moment.min(past, now), past, 'min(past, now)'); assert.equal(moment.min(now), now, 'min(now, past)'); assert.equal(moment.min([now, future, past]), past, 'min([now, future, past])'); assert.equal(moment.min([now, past]), past, 'min(now, past)'); assert.equal(moment.min([now]), now, 'min(now)'); assert.equal(moment.min([now, invalid]), invalid, 'min(now, invalid)'); assert.equal(moment.min([invalid, now]), invalid, 'min(invalid, now)'); }); test('max', function (assert) { var now = moment(), future = now.clone().add(1, 'month'), past = now.clone().subtract(1, 'month'), invalid = moment.invalid(); assert.equal(moment.max(now, future, past), future, 'max(now, future, past)'); assert.equal(moment.max(future, now, past), future, 'max(future, now, past)'); assert.equal(moment.max(future, past, now), future, 'max(future, past, now)'); assert.equal(moment.max(past, future, now), future, 'max(past, future, now)'); assert.equal(moment.max(now, past), now, 'max(now, past)'); assert.equal(moment.max(past, now), now, 'max(past, now)'); assert.equal(moment.max(now), now, 'max(now, past)'); assert.equal(moment.max([now, future, past]), future, 'max([now, future, past])'); assert.equal(moment.max([now, past]), now, 'max(now, past)'); assert.equal(moment.max([now]), now, 'max(now)'); assert.equal(moment.max([now, invalid]), invalid, 'max(now, invalid)'); assert.equal(moment.max([invalid, now]), invalid, 'max(invalid, now)'); });