3 module.exports = function (t, a) {
4 a.throws(function () { t(undefined); }, TypeError, "Undefined");
5 a.throws(function () { t(null); }, TypeError, "Null");
7 a.throws(function () { t(-2); }, TypeError, "Negative");
8 a.throws(function () { t(2.34); }, TypeError, "Float");
9 a(t('23'), 23, "Numeric string");
10 a.throws(function () { t(NaN); }, TypeError, "NaN");
11 a.throws(function () { t(Infinity); }, TypeError, "Infinity");