import { describe, expect, it } from '@jest/globals'; import { ddDiffDd, ddMultDouble1 as ddMultD, twoSum } from "double-double"; import { ddPerturb } from '../../src/error-analysis/dd-perturb.js'; import { γ1, γγ } from '../../src/error-analysis/gamma.js'; import { random } from '../../src/error-analysis/random.js'; import { randomIntInRange } from '../../src/error-analysis/random-int-in-range.js'; describe('`ddPerturb`', function() { it('should return a value within the expected error bound', function() { { const N = 100; const shift = 1; const MIN_E = 1; const maxEs = [20, 2**53, 2**60, 2**500]; for (let j=0; j