eq.js 319 B

123456789101112
  1. 'use strict';
  2. module.exports = function (t, a) {
  3. var o = {};
  4. a(t(o, {}), false, "Different objects");
  5. a(t(o, o), true, "Same objects");
  6. a(t('1', '1'), true, "Same primitive");
  7. a(t('1', 1), false, "Different primitive types");
  8. a(t(NaN, NaN), true, "NaN");
  9. a(t(0, 0), true, "0,0");
  10. a(t(0, -0), true, "0,-0");
  11. };