diff --git a/NDTensors/test/test_diag.jl b/NDTensors/test/test_diag.jl index b5fa998b9e..cb8adc367a 100644 --- a/NDTensors/test/test_diag.jl +++ b/NDTensors/test/test_diag.jl @@ -63,7 +63,7 @@ using .NDTensorsTestUtils: devices_list, is_supported_eltype @test x == dev(diagm(0 => vr)) @test x == D end - @test sqrt(contract(D, (-1, -2), D, (-1, -2))[]) ≈ norm(D) + @test sqrt(contract(D, (-1, -2), conj(D), (-1, -2))[]) ≈ norm(D) # This if statement corresponds to the reported bug: # https://github.com/JuliaGPU/Metal.jl/issues/364 if !(dev == NDTensors.mtl && elt === ComplexF32)