mirror of
https://github.com/hanzoai/core-js.git
synced 2026-09-24 16:58:15 +00:00
8 lines
263 B
JavaScript
8 lines
263 B
JavaScript
import EPSILON from 'core-js-pure/es/number/epsilon';
|
|
|
|
QUnit.test('Number.EPSILON', assert => {
|
|
assert.same(EPSILON, 2 ** -52, 'Is 2^-52');
|
|
assert.notSame(1 + EPSILON, 1, '1 is not 1 + EPSILON');
|
|
assert.same(1 + EPSILON / 2, 1, '1 is 1 + EPSILON / 2');
|
|
});
|