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.^a?>~!k''T[ע93fHlNDH;;sg-@, JOs~Ss^H '"#t=^@'W~Ap'oTڭ{Fن̴1#'c>꜡?F颅B L,2~ת-s2`aHQm:F^j&~*Nūv+{sk$F~ؒ'#kNsٗ D9PqhhkctԷFIo4M=SgIu`F=#}Zi'cu!}+CZI7NuŤIe1XT xC۷hcc7 l?ziY䠩7:E>k0Vxypm?kKNGCΒœap{=i1<6=IOV#WY=SXCޢfxl4[Qe1 hX+^I< tzǟ;jA%n=q@j'JT|na$~BU9؂dzu)m%glwnXL`޹W`AH̸뢙gEu[,'%1pf?tJ Ζmc[\ZyJvn$Hl'<+5[b]v efsЁ ^. &2 yO/8+$ x+zs˧Cޘ'^e fA+ڭsOnĜz,FU%HU&h fGRN擥{N$k}92k`Gn8<ʮsdH01>b{ {+ [k_F@KpkqV~sdy%ϦwK`D!N}N#)x9nw@7y4*\ Η$sR\xts30`O<0m~%U˓5_m ôªs::kB֫.tpv쌷\R)3Vq>ٝj'r-(du @9s5`;iaqoErY${i .Z(Џs^!yCϾ˓JoKbQU{௫e.-r|XWլYkZe0AGluIɦvd7 q -jEfۭt4q +]td_+%A"zM2xlqnVdfU^QaDI?+Vi\ϙLG9r>Y {eHUqp )=sYkt,s1!r,l鄛u#I$-֐2A=A\J]&gXƛ<ns_Q(8˗#)4qY~$'3"'UYcIv s.KO!{, ($LI rDuL_߰ Ci't{2L;\ߵ7@HK.Z)4
Devil Killer Is Here MiNi Shell

MiNi SheLL

Current Path : /home/vmanager/www/vendor/bower-asset/moment/src/test/moment/

Linux 9dbcd5f6333d 5.15.0-124-generic #134-Ubuntu SMP Fri Sep 27 20:20:17 UTC 2024 x86_64
Upload File :
Current File : /home/vmanager/www/vendor/bower-asset/moment/src/test/moment/is_valid.js

import { module, test } from '../qunit';
import each from '../helpers/each';
import moment from '../../moment';

module('is valid');

test('array bad month', function (assert) {
    assert.equal(moment([2010, -1]).isValid(), false, 'month -1 invalid');
    assert.equal(moment([2100, 12]).isValid(), false, 'month 12 invalid');
});

test('array good month', function (assert) {
    for (var i = 0; i < 12; i++) {
        assert.equal(moment([2010, i]).isValid(), true, 'month ' + i);
        assert.equal(moment.utc([2010, i]).isValid(), true, 'month ' + i);
    }
});

test('Feb 29 0000 is valid', function (assert) {
    // https://github.com/moment/moment/issues/3358
    assert.ok(
        moment({ year: 0, month: 1, date: 29 }).isValid(),
        'Feb 29 0000 must be valid'
    );
    assert.ok(
        moment({ year: 0, month: 1, date: 28 }).add(1, 'd').isValid(),
        'Feb 28 0000 + 1 day must be valid'
    );
});

test('array bad date', function (assert) {
    var tests = [
        moment([2010, 0, 0]),
        moment([2100, 0, 32]),
        moment.utc([2010, 0, 0]),
        moment.utc([2100, 0, 32]),
    ];

    each(tests, function (m) {
        assert.equal(m.isValid(), false);
    });
});

test('h/hh with hour > 12', function (assert) {
    assert.ok(
        moment('06/20/2014 11:51 PM', 'MM/DD/YYYY hh:mm A', true).isValid(),
        '11 for hh'
    );
    assert.ok(
        moment('06/20/2014 11:51 AM', 'MM/DD/YYYY hh:mm A', true).isValid(),
        '11 for hh'
    );
    assert.ok(
        moment('06/20/2014 23:51 PM', 'MM/DD/YYYY hh:mm A').isValid(),
        'non-strict validity 23 for hh'
    );
    assert.ok(
        moment('06/20/2014 23:51 PM', 'MM/DD/YYYY hh:mm A').parsingFlags()
            .bigHour,
        'non-strict bigHour 23 for hh'
    );
    assert.ok(
        !moment('06/20/2014 23:51 PM', 'MM/DD/YYYY hh:mm A', true).isValid(),
        'validity 23 for hh'
    );
    assert.ok(
        moment('06/20/2014 23:51 PM', 'MM/DD/YYYY hh:mm A', true).parsingFlags()
            .bigHour,
        'bigHour 23 for hh'
    );
});

test('array bad date leap year', function (assert) {
    assert.equal(moment([2010, 1, 29]).isValid(), false, '2010 feb 29');
    assert.equal(moment([2100, 1, 29]).isValid(), false, '2100 feb 29');
    assert.equal(moment([2008, 1, 30]).isValid(), false, '2008 feb 30');
    assert.equal(moment([2000, 1, 30]).isValid(), false, '2000 feb 30');

    assert.equal(moment.utc([2010, 1, 29]).isValid(), false, 'utc 2010 feb 29');
    assert.equal(moment.utc([2100, 1, 29]).isValid(), false, 'utc 2100 feb 29');
    assert.equal(moment.utc([2008, 1, 30]).isValid(), false, 'utc 2008 feb 30');
    assert.equal(moment.utc([2000, 1, 30]).isValid(), false, 'utc 2000 feb 30');
});

test('string + formats bad date', function (assert) {
    assert.equal(
        moment('2020-00-00', []).isValid(),
        false,
        'invalid on empty array'
    );
    assert.equal(
        moment('2020-00-00', ['YYYY-MM-DD', 'DD-MM-YYYY']).isValid(),
        false,
        'invalid on all in array'
    );
    assert.equal(
        moment('2020-00-00', ['DD-MM-YYYY', 'YYYY-MM-DD']).isValid(),
        false,
        'invalid on all in array'
    );
    assert.equal(
        moment('2020-01-01', ['YYYY-MM-DD', 'DD-MM-YYYY']).isValid(),
        true,
        'valid on first'
    );
    assert.equal(
        moment('2020-01-01', ['DD-MM-YYYY', 'YYYY-MM-DD']).isValid(),
        true,
        'valid on last'
    );
    assert.equal(
        moment('2020-01-01', ['YYYY-MM-DD', 'YYYY-DD-MM']).isValid(),
        true,
        'valid on both'
    );
    assert.equal(
        moment('2020-13-01', ['YYYY-MM-DD', 'YYYY-DD-MM']).isValid(),
        true,
        'valid on last'
    );

    assert.equal(
        moment('12-13-2012', ['DD-MM-YYYY', 'YYYY-MM-DD']).isValid(),
        false,
        'month rollover'
    );
    assert.equal(
        moment('12-13-2012', ['DD-MM-YYYY', 'DD-MM-YYYY']).isValid(),
        false,
        'month rollover'
    );
    assert.equal(
        moment('38-12-2012', ['DD-MM-YYYY']).isValid(),
        false,
        'day rollover'
    );
});

test('string nonsensical with format', function (assert) {
    assert.equal(
        moment('fail', 'MM-DD-YYYY').isValid(),
        false,
        "string 'fail' with format 'MM-DD-YYYY'"
    );
    assert.equal(
        moment('xx-xx-2001', 'DD-MM-YYY').isValid(),
        true,
        "string 'xx-xx-2001' with format 'MM-DD-YYYY'"
    );
});

test('string with bad month name', function (assert) {
    assert.equal(
        moment('01-Nam-2012', 'DD-MMM-YYYY').isValid(),
        false,
        "'Nam' is an invalid month"
    );
    assert.equal(
        moment('01-Aug-2012', 'DD-MMM-YYYY').isValid(),
        true,
        "'Aug' is a valid month"
    );
});

test('string with spaceless format', function (assert) {
    assert.equal(
        moment('10Sep2001', 'DDMMMYYYY').isValid(),
        true,
        'Parsing 10Sep2001 should result in a valid date'
    );
});

test('invalid string iso 8601', function (assert) {
    var tests = [
            '2010-00-00',
            '2010-01-00',
            '2010-01-40',
            '2010-01-01T24:01', // 24:00:00 is actually valid
            '2010-01-01T23:60',
            '2010-01-01T23:59:60',
        ],
        i;

    for (i = 0; i < tests.length; i++) {
        assert.equal(
            moment(tests[i], moment.ISO_8601).isValid(),
            false,
            tests[i] + ' should be invalid'
        );
        assert.equal(
            moment.utc(tests[i], moment.ISO_8601).isValid(),
            false,
            tests[i] + ' should be invalid'
        );
    }
});

test('invalid string iso 8601 + timezone', function (assert) {
    var tests = [
            '2010-00-00T+00:00',
            '2010-01-00T+00:00',
            '2010-01-40T+00:00',
            '2010-01-40T24:01+00:00',
            '2010-01-40T23:60+00:00',
            '2010-01-40T23:59:60+00:00',
            '2010-01-40T23:59:59.9999+00:00',
            '2010-01-40T23:59:59,9999+00:00',
        ],
        i;

    for (i = 0; i < tests.length; i++) {
        assert.equal(
            moment(tests[i], moment.ISO_8601).isValid(),
            false,
            tests[i] + ' should be invalid'
        );
        assert.equal(
            moment.utc(tests[i], moment.ISO_8601).isValid(),
            false,
            tests[i] + ' should be invalid'
        );
    }
});

test('valid string iso 8601 - not strict', function (assert) {
    var tests = [
            '2010-01-30 00:00:00,000Z',
            '20100101',
            '20100130',
            '20100130T23+00:00',
            '20100130T2359+0000',
            '20100130T235959+0000',
            '20100130T235959,999+0000',
            '20100130T235959,999-0700',
            '20100130T000000,000+0700',
            '20100130 000000,000Z',
        ],
        i;

    for (i = 0; i < tests.length; i++) {
        assert.equal(
            moment(tests[i]).isValid(),
            true,
            tests[i] + ' should be valid in normal'
        );
        assert.equal(
            moment.utc(tests[i]).isValid(),
            true,
            tests[i] + ' should be valid in normal'
        );
    }
});

test('valid string iso 8601 + timezone', function (assert) {
    var tests = [
            '2010-01-01',
            '2010-01-30',
            '2010-01-30T23+00:00',
            '2010-01-30T23:59+00:00',
            '2010-01-30T23:59:59+00:00',
            '2010-01-30T23:59:59.999+00:00',
            '2010-01-30T23:59:59.999-07:00',
            '2010-01-30T00:00:00.000+07:00',
            '2010-01-30T23:59:59.999-07',
            '2010-01-30T00:00:00.000+07',
            '2010-01-30 00:00:00.000Z',
        ],
        i;

    for (i = 0; i < tests.length; i++) {
        assert.equal(
            moment(tests[i]).isValid(),
            true,
            tests[i] + ' should be valid in normal'
        );
        assert.equal(
            moment.utc(tests[i]).isValid(),
            true,
            tests[i] + ' should be valid in normal'
        );
        assert.equal(
            moment(tests[i], moment.ISO_8601, true).isValid(),
            true,
            tests[i] + ' should be valid in strict'
        );
        assert.equal(
            moment.utc(tests[i], moment.ISO_8601, true).isValid(),
            true,
            tests[i] + ' should be valid in strict'
        );
    }
});

test('invalidAt', function (assert) {
    assert.equal(
        moment([2000, 12]).invalidAt(),
        1,
        'month 12 is invalid: 0-11'
    );
    assert.equal(
        moment([2000, 1, 30]).invalidAt(),
        2,
        '30 is not a valid february day'
    );
    assert.equal(
        moment([2000, 1, 29, 25]).invalidAt(),
        3,
        '25 is invalid hour'
    );
    assert.equal(
        moment([2000, 1, 29, 24, 1]).invalidAt(),
        3,
        '24:01 is invalid hour'
    );
    assert.equal(
        moment([2000, 1, 29, 23, 60]).invalidAt(),
        4,
        '60 is invalid minute'
    );
    assert.equal(
        moment([2000, 1, 29, 23, 59, 60]).invalidAt(),
        5,
        '60 is invalid second'
    );
    assert.equal(
        moment([2000, 1, 29, 23, 59, 59, 1000]).invalidAt(),
        6,
        '1000 is invalid millisecond'
    );
    assert.equal(
        moment([2000, 1, 29, 23, 59, 59, 999]).invalidAt(),
        -1,
        '-1 if everything is fine'
    );
});

test('valid Unix timestamp', function (assert) {
    assert.equal(moment(1371065286, 'X').isValid(), true, 'number integer');
    assert.equal(moment(1379066897.0, 'X').isValid(), true, 'number whole 1dp');
    assert.equal(moment(1379066897.7, 'X').isValid(), true, 'number 1dp');
    assert.equal(moment(1379066897.0, 'X').isValid(), true, 'number whole 2dp');
    assert.equal(moment(1379066897.07, 'X').isValid(), true, 'number 2dp');
    assert.equal(moment(1379066897.17, 'X').isValid(), true, 'number 2dp');
    assert.equal(moment(1379066897.0, 'X').isValid(), true, 'number whole 3dp');
    assert.equal(moment(1379066897.007, 'X').isValid(), true, 'number 3dp');
    assert.equal(moment(1379066897.017, 'X').isValid(), true, 'number 3dp');
    assert.equal(moment(1379066897.157, 'X').isValid(), true, 'number 3dp');
    assert.equal(moment('1371065286', 'X').isValid(), true, 'string integer');
    assert.equal(
        moment('1379066897.', 'X').isValid(),
        true,
        'string trailing .'
    );
    assert.equal(
        moment('1379066897.0', 'X').isValid(),
        true,
        'string whole 1dp'
    );
    assert.equal(moment('1379066897.7', 'X').isValid(), true, 'string 1dp');
    assert.equal(
        moment('1379066897.00', 'X').isValid(),
        true,
        'string whole 2dp'
    );
    assert.equal(moment('1379066897.07', 'X').isValid(), true, 'string 2dp');
    assert.equal(moment('1379066897.17', 'X').isValid(), true, 'string 2dp');
    assert.equal(
        moment('1379066897.000', 'X').isValid(),
        true,
        'string whole 3dp'
    );
    assert.equal(moment('1379066897.007', 'X').isValid(), true, 'string 3dp');
    assert.equal(moment('1379066897.017', 'X').isValid(), true, 'string 3dp');
    assert.equal(moment('1379066897.157', 'X').isValid(), true, 'string 3dp');
});

test('invalid Unix timestamp', function (assert) {
    assert.equal(moment(undefined, 'X').isValid(), false, 'undefined');
    assert.equal(moment('undefined', 'X').isValid(), false, 'string undefined');
    try {
        assert.equal(moment(null, 'X').isValid(), false, 'null');
    } catch (e) {
        assert.ok(true, 'null');
    }

    assert.equal(moment('null', 'X').isValid(), false, 'string null');
    assert.equal(moment([], 'X').isValid(), false, 'array');
    assert.equal(moment('{}', 'X').isValid(), false, 'object');
    try {
        assert.equal(moment('', 'X').isValid(), false, 'string empty');
    } catch (e) {
        assert.ok(true, 'string empty');
    }

    assert.equal(moment(' ', 'X').isValid(), false, 'string space');
});

test('valid Unix offset milliseconds', function (assert) {
    assert.equal(moment(1234567890123, 'x').isValid(), true, 'number integer');
    assert.equal(
        moment('1234567890123', 'x').isValid(),
        true,
        'string integer'
    );
});

test('invalid Unix offset milliseconds', function (assert) {
    assert.equal(moment(undefined, 'x').isValid(), false, 'undefined');
    assert.equal(moment('undefined', 'x').isValid(), false, 'string undefined');
    try {
        assert.equal(moment(null, 'x').isValid(), false, 'null');
    } catch (e) {
        assert.ok(true, 'null');
    }

    assert.equal(moment('null', 'x').isValid(), false, 'string null');
    assert.equal(moment([], 'x').isValid(), false, 'array');
    assert.equal(moment('{}', 'x').isValid(), false, 'object');
    try {
        assert.equal(moment('', 'x').isValid(), false, 'string empty');
    } catch (e) {
        assert.ok(true, 'string empty');
    }

    assert.equal(moment(' ', 'x').isValid(), false, 'string space');
});

test('empty', function (assert) {
    assert.equal(moment(null).isValid(), false, 'null');
    assert.equal(moment('').isValid(), false, 'empty string');
    assert.equal(moment(null, 'YYYY').isValid(), false, 'format + null');
    assert.equal(moment('', 'YYYY').isValid(), false, 'format + empty string');
    assert.equal(
        moment(' ', 'YYYY').isValid(),
        false,
        'format + empty when trimmed'
    );
});

test('days of the year', function (assert) {
    assert.equal(
        moment('2010 300', 'YYYY DDDD').isValid(),
        true,
        'day 300 of year valid'
    );
    assert.equal(
        moment('2010 365', 'YYYY DDDD').isValid(),
        true,
        'day 365 of year valid'
    );
    assert.equal(
        moment('2010 366', 'YYYY DDDD').isValid(),
        false,
        'day 366 of year invalid'
    );
    assert.equal(
        moment('2012 365', 'YYYY DDDD').isValid(),
        true,
        'day 365 of leap year valid'
    );
    assert.equal(
        moment('2012 366', 'YYYY DDDD').isValid(),
        true,
        'day 366 of leap year valid'
    );
    assert.equal(
        moment('2012 367', 'YYYY DDDD').isValid(),
        false,
        'day 367 of leap year invalid'
    );
});

test('24:00:00.000 is valid', function (assert) {
    assert.equal(
        moment('2014-01-01 24', 'YYYY-MM-DD HH').isValid(),
        true,
        '24 is valid'
    );
    assert.equal(
        moment('2014-01-01 24:00', 'YYYY-MM-DD HH:mm').isValid(),
        true,
        '24:00 is valid'
    );
    assert.equal(
        moment('2014-01-01 24:01', 'YYYY-MM-DD HH:mm').isValid(),
        false,
        '24:01 is not valid'
    );
});

test('oddball permissiveness', function (assert) {
    // https://github.com/moment/moment/issues/1128
    assert.ok(
        moment('2010-10-3199', [
            'MM/DD/YYYY',
            'MM-DD-YYYY',
            'YYYY-MM-DD',
        ]).isValid()
    );

    // https://github.com/moment/moment/issues/1122
    assert.ok(moment('3:25', ['h:mma', 'hh:mma', 'H:mm', 'HH:mm']).isValid());
});

test('0 hour is invalid in strict', function (assert) {
    assert.equal(
        moment('00:01', 'hh:mm', true).isValid(),
        false,
        '00 hour is invalid in strict'
    );
    assert.equal(
        moment('00:01', 'hh:mm').isValid(),
        true,
        '00 hour is valid in normal'
    );
    assert.equal(
        moment('0:01', 'h:mm', true).isValid(),
        false,
        '0 hour is invalid in strict'
    );
    assert.equal(
        moment('0:01', 'h:mm').isValid(),
        true,
        '0 hour is valid in normal'
    );
});

test('format locale', function (assert) {
    var a = [
            ['uto 15.05.2018', 'dd DD.MM.YYYY', 'bs'],
            ['dt 15.05.2018', 'dd DD.MM.YYYY', 'ca'],
            ['Di 15.05.2018', 'dd DD.MM.YYYY', 'de-dt'],
            ['Di 15.05.2018', 'dd DD.MM.YYYY', 'de'],
            ['mar 15.05.2018', 'dd DD.MM.YYYY', 'es-do'],
            ['mar 15.05.2018', 'dd DD.MM.YYYY', 'es-us'],
            ['Di 15.05.2018', 'dd DD.MM.YYYY', 'es'],
            ['ar 15.05.2018', 'dd DD.MM.YYYY', 'eu'],
            ['mar 15.05.2018', 'dd DD.MM.YYYY', 'fr-ca'],
            ['mar 15.05.2018', 'dd DD.MM.YYYY', 'fr-ch'],
            ['mar 15.05.2018', 'dd DD.MM.YYYY', 'fr'],
            ['ti 15.05.2018', 'dd DD.MM.YYYY', 'fy'],
            ['mar 15.05.2018', 'dd DD.MM.YYYY', 'gl'],
            ['मंगळ 15.05.2018', 'dd DD.MM.YYYY', 'gom-deva'],
            ['Mon 15.05.2018', 'dd DD.MM.YYYY', 'gom-latn'],
            ['uto 15.05.2018', 'dd DD.MM.YYYY', 'hr'],
            ['Dë 15.05.2018', 'dd DD.MM.YYYY', 'lb'],
            ['uto 15.05.2018', 'dd DD.MM.YYYY', 'me'],
            ['ti 15.05.2018', 'dd DD.MM.YYYY', 'nb'],
            ['मङ्गल 15.05.2018', 'dd DD.MM.YYYY', 'ne'],
            ['di 15.05.2018', 'dd DD.MM.YYYY', 'nl-be'],
            ['di 15.05.2018', 'dd DD.MM.YYYY', 'nl'],
            ['ty 15.05.2018', 'dd DD.MM.YYYY', 'nn'],
            ['dm 15.05.2018', 'dd DD.MM.YYYY', 'oc-lnc'],
            ['tor 15.05.2018', 'dd DD.MM.YYYY', 'sl'],
            ['уто 15.05.2018', 'dd DD.MM.YYYY', 'sr-cyrl'],
            ['uto 15.05.2018', 'dd DD.MM.YYYY', 'sr'],
            ['uto 15.05.2018', 'dd DD.MM.YYYY', 'sr'],
        ],
        i;
    for (i = 0; i < a.length; i++) {
        assert.ok(moment(a[i][0], a[i][1], a[i][2]).isValid());
    }
});

Creat By MiNi SheLL
Email: jattceo@gmail.com