Sha256: 3a539a71a70aa343452e05d40a5c4d4070261c7d7a39def1636b05739451440d
Contents?: true
Size: 376 Bytes
Versions: 40
Compression:
Stored size: 376 Bytes
Contents
getJasmineRequireObj().toBeCloseTo = function() { function toBeCloseTo() { return { compare: function(actual, expected, precision) { if (precision !== 0) { precision = precision || 2; } return { pass: Math.abs(expected - actual) < (Math.pow(10, -precision) / 2) }; } }; } return toBeCloseTo; };
Version data entries
40 entries across 40 versions & 2 rubygems