added whole system from ola4doc

This commit is contained in:
Bachir Soussi Chiadmi
2017-12-14 17:06:06 +01:00
parent 9646c74be1
commit 0611418f7a
8725 changed files with 817688 additions and 2 deletions
+7
View File
@@ -0,0 +1,7 @@
'use strict';
module.exports = function (t, a) {
a(t.call(78, 4), '0078');
a(t.call(65.12323, 4, 3), '0065.123', "Precision");
a(t.call(65, 4, 3), '0065.000', "Precision integer");
};
+5
View File
@@ -0,0 +1,5 @@
'use strict';
var isImplemented = require('../../../number/epsilon/is-implemented');
module.exports = function (a) { a(isImplemented(), true); };
+5
View File
@@ -0,0 +1,5 @@
'use strict';
module.exports = function (t, a) {
a(typeof t, 'number');
};
+3
View File
@@ -0,0 +1,3 @@
'use strict';
module.exports = function (t, a) { a(typeof t(), 'boolean'); };
+5
View File
@@ -0,0 +1,5 @@
'use strict';
var isImplemented = require('../../../number/is-finite/is-implemented');
module.exports = function (a) { a(isImplemented(), true); };
+3
View File
@@ -0,0 +1,3 @@
'use strict';
module.exports = require('./shim');
+3
View File
@@ -0,0 +1,3 @@
'use strict';
module.exports = function (t, a) { a(typeof t(), 'boolean'); };
+8
View File
@@ -0,0 +1,8 @@
'use strict';
module.exports = function (t, a) {
a(t(2), true, "Number");
a(t('23'), false, "Not numeric");
a(t(NaN), false, "NaN");
a(t(Infinity), false, "Infinity");
};
+5
View File
@@ -0,0 +1,5 @@
'use strict';
var isImplemented = require('../../../number/is-integer/is-implemented');
module.exports = function (a) { a(isImplemented(), true); };
+3
View File
@@ -0,0 +1,3 @@
'use strict';
module.exports = require('./shim');
+3
View File
@@ -0,0 +1,3 @@
'use strict';
module.exports = function (t, a) { a(typeof t(), 'boolean'); };
+9
View File
@@ -0,0 +1,9 @@
'use strict';
module.exports = function (t, a) {
a(t(2), true, "Number");
a(t(2.34), false, "Float");
a(t('23'), false, "Not numeric");
a(t(NaN), false, "NaN");
a(t(Infinity), false, "Infinity");
};
+5
View File
@@ -0,0 +1,5 @@
'use strict';
var isImplemented = require('../../../number/is-nan/is-implemented');
module.exports = function (a) { a(isImplemented(), true); };
+3
View File
@@ -0,0 +1,3 @@
'use strict';
module.exports = require('./shim');
+3
View File
@@ -0,0 +1,3 @@
'use strict';
module.exports = function (t, a) { a(typeof t(), 'boolean'); };
+7
View File
@@ -0,0 +1,7 @@
'use strict';
module.exports = function (t, a) {
a(t(2), false, "Number");
a(t({}), false, "Not numeric");
a(t(NaN), true, "NaN");
};
+10
View File
@@ -0,0 +1,10 @@
'use strict';
module.exports = function (t, a) {
a(t(2), true, "Number");
a(t(-2), false, "Negative");
a(t(2.34), false, "Float");
a(t('23'), false, "Not numeric");
a(t(NaN), false, "NaN");
a(t(Infinity), false, "Infinity");
};
+13
View File
@@ -0,0 +1,13 @@
'use strict';
module.exports = function (t, a) {
a(t(0), true, "Zero");
a(t(NaN), true, "NaN");
a(t(Infinity), true, "Infinity");
a(t(12), true, "Number");
a(t(false), false, "Boolean");
a(t(new Date()), false, "Date");
a(t(new Number(2)), true, "Number object");
a(t('asdfaf'), false, "String");
a(t(''), false, "Empty String");
};
+5
View File
@@ -0,0 +1,5 @@
'use strict';
var isImplemented = require('../../../number/is-safe-integer/is-implemented');
module.exports = function (a) { a(isImplemented(), true); };
+3
View File
@@ -0,0 +1,3 @@
'use strict';
module.exports = require('./shim');
@@ -0,0 +1,3 @@
'use strict';
module.exports = function (t, a) { a(typeof t(), 'boolean'); };
+11
View File
@@ -0,0 +1,11 @@
'use strict';
module.exports = function (t, a) {
a(t(2), true, "Number");
a(t(2.34), false, "Float");
a(t(Math.pow(2, 53)), false, "Too large");
a(t(Math.pow(2, 53) - 1), true, "Maximum");
a(t('23'), false, "Not numeric");
a(t(NaN), false, "NaN");
a(t(Infinity), false, "Infinity");
};
+5
View File
@@ -0,0 +1,5 @@
'use strict';
var isImplemented = require('../../../number/max-safe-integer/is-implemented');
module.exports = function (a) { a(isImplemented(), true); };
+5
View File
@@ -0,0 +1,5 @@
'use strict';
module.exports = function (t, a) {
a(typeof t, 'number');
};
@@ -0,0 +1,3 @@
'use strict';
module.exports = function (t, a) { a(typeof t(), 'boolean'); };
+5
View File
@@ -0,0 +1,5 @@
'use strict';
var isImplemented = require('../../../number/min-safe-integer/is-implemented');
module.exports = function (a) { a(isImplemented(), true); };
+5
View File
@@ -0,0 +1,5 @@
'use strict';
module.exports = function (t, a) {
a(typeof t, 'number');
};
@@ -0,0 +1,3 @@
'use strict';
module.exports = function (t, a) { a(typeof t(), 'boolean'); };
+10
View File
@@ -0,0 +1,10 @@
'use strict';
module.exports = function (t, a) {
a(t({}), 0, "NaN");
a(t(20), 20, "Positive integer");
a(t('-20'), -20, "String negative integer");
a(t(Infinity), Infinity, "Infinity");
a(t(15.343), 15, "Float");
a(t(-15.343), -15, "Negative float");
};
+10
View File
@@ -0,0 +1,10 @@
'use strict';
module.exports = function (t, a) {
a(t({}), 0, "NaN");
a(t(20), 20, "Positive integer");
a(t(-20), 0, "Negative integer");
a(t(Infinity), Infinity, "Infinity");
a(t(15.343), 15, "Float");
a(t(-15.343), 0, "Negative float");
};
+8
View File
@@ -0,0 +1,8 @@
'use strict';
module.exports = function (t, a) {
a(t({}), 0, "Not numeric");
a(t(-4), 4294967292, "Negative");
a(t(133432), 133432, "Positive");
a(t(8589934592), 0, "Greater than maximum");
};