����JFIF��H�H����Exif��MM�*���� ��3����V�����3������3�(��������������������3�����
Server IP : 74.208.127.88 / Your IP : 216.73.216.236 Web Server : Apache/2.4.41 (Ubuntu) System : Linux ubuntu 5.4.0-163-generic #180-Ubuntu SMP Tue Sep 5 13:21:23 UTC 2023 x86_64 User : www-data ( 33) PHP Version : 7.4.3-4ubuntu2.29 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /proc/self/root/var/www/html/app6/node_modules/object-inspect/test/ |
Upload File : |
var test = require('tape'); var v = require('es-value-fixtures'); var forEach = require('for-each'); var inspect = require('../'); test('negative zero', function (t) { t.equal(inspect(0), '0', 'inspect(0) === "0"'); t.equal(inspect(Object(0)), 'Object(0)', 'inspect(Object(0)) === "Object(0)"'); t.equal(inspect(-0), '-0', 'inspect(-0) === "-0"'); t.equal(inspect(Object(-0)), 'Object(-0)', 'inspect(Object(-0)) === "Object(-0)"'); t.end(); }); test('numericSeparator', function (t) { forEach(v.nonBooleans, function (nonBoolean) { t['throws']( function () { inspect(true, { numericSeparator: nonBoolean }); }, TypeError, inspect(nonBoolean) + ' is not a boolean' ); }); t.test('3 digit numbers', function (st) { var failed = false; for (var i = -999; i < 1000; i += 1) { var actual = inspect(i); var actualSepNo = inspect(i, { numericSeparator: false }); var actualSepYes = inspect(i, { numericSeparator: true }); var expected = String(i); if (actual !== expected || actualSepNo !== expected || actualSepYes !== expected) { failed = true; t.equal(actual, expected); t.equal(actualSepNo, expected); t.equal(actualSepYes, expected); } } st.notOk(failed, 'all 3 digit numbers passed'); st.end(); }); t.equal(inspect(1e3), '1000', '1000'); t.equal(inspect(1e3, { numericSeparator: false }), '1000', '1000, numericSeparator false'); t.equal(inspect(1e3, { numericSeparator: true }), '1_000', '1000, numericSeparator true'); t.equal(inspect(-1e3), '-1000', '-1000'); t.equal(inspect(-1e3, { numericSeparator: false }), '-1000', '-1000, numericSeparator false'); t.equal(inspect(-1e3, { numericSeparator: true }), '-1_000', '-1000, numericSeparator true'); t.equal(inspect(1234.5678, { numericSeparator: true }), '1_234.567_8', 'fractional numbers get separators'); t.equal(inspect(1234.56789, { numericSeparator: true }), '1_234.567_89', 'fractional numbers get separators'); t.equal(inspect(1234.567891, { numericSeparator: true }), '1_234.567_891', 'fractional numbers get separators'); t.end(); });