]> git.r.bdr.sh - rbdr/dotfiles/blob
9e5eed7910e13c1d3d49a1e9530c14de449e419d
[rbdr/dotfiles] /
1 'use strict';
2
3 var is = require('../../../object/is');
4
5 module.exports = function (t, a) {
6 a(t({}), NaN, "NaN");
7 a(t(0), 0, "Zero");
8 a(t(Infinity), Infinity, "Infinity");
9 a(t(-Infinity), -Infinity, "-Infinity");
10 a(is(t(0.234), 0), true, "0");
11 a(is(t(-0.234), -0), true, "-0");
12 a(t(13.7), 13, "Positive #1");
13 a(t(12.3), 12, "Positive #2");
14 a(t(-12.3), -12, "Negative #1");
15 a(t(-14.7), -14, "Negative #2");
16 };