]> git.r.bdr.sh - rbdr/dotfiles/blob
77e066747117954ec37f9942d51bfa55ac230e1b
[rbdr/dotfiles] /
1 'use strict';
2
3 module.exports = function (t, a) {
4 a(t(2), true, "Number");
5 a(t(2.34), false, "Float");
6 a(t(Math.pow(2, 53)), false, "Too large");
7 a(t(Math.pow(2, 53) - 1), true, "Maximum");
8 a(t('23'), false, "Not numeric");
9 a(t(NaN), false, "NaN");
10 a(t(Infinity), false, "Infinity");
11 };