]> gerrit.simantics Code Review - simantics/district.git/blob - shim.js
5fa0d5be3af861cd35fd8bf6248e0bdc45128531
[simantics/district.git] / shim.js
1 'use strict';
2
3 module.exports = function (t, a) {
4         a(t({}), NaN, "NaN");
5         a(t(-0.5), NaN, "Less than 0");
6         a(t(0), -Infinity, "0");
7         a(t(1), 0, "1");
8         a(t(Infinity), Infinity, "Infinity");
9         a(t(2), 0.3010299956639812, "Other");
10 };