chore: ignore freqz in the doc test for the time being (see #2988)

This commit is contained in:
Jos de Jong 2023-07-13 16:48:04 +02:00
parent 6169f0a8a5
commit ab409dffeb

View File

@ -99,7 +99,7 @@ const knownProblems = new Set([
'mod', 'invmod', 'floor', 'fix', 'expm1', 'exp', 'dotPow', 'dotMultiply',
'dotDivide', 'divide', 'ceil', 'cbrt', 'add', 'usolveAll', 'usolve', 'slu',
'rationalize', 'qr', 'lusolve', 'lup', 'lsolveAll', 'lsolve', 'derivative',
'symbolicEqual', 'map', 'schur', 'sylvester'
'symbolicEqual', 'map', 'schur', 'sylvester', 'freqz'
])
function maybeCheckExpectation (name, expected, expectedFrom, got, gotFrom) {
@ -132,8 +132,9 @@ function checkExpectation (want, got) {
if (typeof want === 'number' && typeof got === 'number' && want !== got) {
console.log(` Note: return value ${got} not exactly as expected: ${want}`)
return approx.equal(got, want, 1e-9)
} if (typeof want !== 'undefined') {
approx.deepEqual(got, want)
}
if (typeof want !== 'undefined') {
return approx.deepEqual(got, want)
} else {
// don't check if we don't know what the result is supposed to be
}