/usr/share/doc/node-bignumber/test/every-test.js is in node-bignumber 1.3.0+dfsg-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 | var arr,
passed = 0,
total = 0,
start = +new Date();
console.log( '\n STARTING TESTS...\n' );
[
'abs',
'base-in',
'base-out',
'ceil',
'cmp',
'config',
'div',
'floor',
'minus',
'mod',
'neg',
'others',
'plus',
'pow',
'round',
'sqrt',
'times',
'toExponential',
'toFixed',
'toFraction',
'toPrecision',
'toString'
]
.forEach( function (method) {
arr = require('./' + method);
passed += arr[0];
total += arr[1];
});
console.log( '\n IN TOTAL: ' + passed + ' of ' + total + ' tests passed in ' +
( (+new Date() - start) / 1000 ) + ' secs.\n' );
|