]> gerrit.simantics Code Review - simantics/district.git/blob - shim.js
15f0e796ce565b986c2931e7f21e920b56910d05
[simantics/district.git] / shim.js
1 'use strict';
2
3 module.exports = function (t, a) {
4         a(t({}), NaN, "NaN");
5         a(t(0), 0, "Zero");
6         a(t(Infinity), Infinity, "Infinity");
7         a(t(-Infinity), -1, "-Infinity");
8         a(t(1).toFixed(15), '1.718281828459045', "1");
9 };