attempt to fix test regression in older julia versions

This commit is contained in:
Thomas (Tom) C. Gorordo 2026-01-27 13:57:52 -08:00
parent e21df477fc
commit 8c99826160
Signed by: tgorordo
GPG key ID: 0CBED22BB0D94490
2 changed files with 2 additions and 2 deletions

View file

@ -286,7 +286,7 @@ function _wigner9j(T::Type{<:Real}, j₁::HalfInteger, j₂::HalfInteger, j₃::
return m * _convert(T, s) * convert(T, signedroot(r)) return m * _convert(T, s) * convert(T, signedroot(r))
end end
# canonicalized entries # canonicalized entries (m is a restoring sign factor)
j₁c, j₂c, j₃c, j₄c, j₅c, j₆c, j₇c, j₈c, j₉c = k j₁c, j₂c, j₃c, j₄c, j₅c, j₆c, j₇c, j₈c, j₉c = k
# order irrelevant: product remains the same # order irrelevant: product remains the same

View file

@ -216,7 +216,7 @@ end
js = rand(smalljlist, 9) js = rand(smalljlist, 9)
debug |= !(@test(wigner9j(js...) sum(largejlist) do x # lazy choice for range of this sum, but good enough debug |= !(@test(wigner9j(js...) sum(largejlist) do x # lazy choice for range of this sum, but good enough
(iseven(2x) ? (2x + 1) : -(2x + 1)) * (iseven(Int(2x)) ? (2x + 1) : -(2x + 1)) *
wigner6j(js[1], js[4], js[7], wigner6j(js[1], js[4], js[7],
js[8], js[9], x ) * js[8], js[9], x ) *
wigner6j(js[2], js[5], js[8], wigner6j(js[2], js[5], js[8],