UNPKG

charlike

Version:

Small, fast, simple and streaming project scaffolder for myself, but not only. Supports hundreds of template engines through the @JSTransformers API or if you want custom `render` function passed through options

13 lines (11 loc) 320 B
'use strict'; module.exports = function (t, a) { var o = {}; a(t(o, {}), false, "Different objects"); a(t(o, o), true, "Same objects"); a(t('1', '1'), true, "Same primitive"); a(t('1', 1), false, "Different primitive types"); a(t(NaN, NaN), true, "NaN"); a(t(0, 0), true, "0,0"); a(t(0, -0), false, "0,-0"); };