Skip to content

Commit 2331978

Browse files
committed
more testing
1 parent c15327d commit 2331978

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

test/mooncake/indexmanipulations.jl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
using Test, TestExtras
22
using TensorKit
33
using TensorOperations
4+
using VectorInterface: Zero, One
45
using Mooncake
56
using Random
67

@@ -78,7 +79,13 @@ eltypes = (Float64, ComplexF64)
7879
for _ in 1:5
7980
p = randcircshift(numout(A), numin(A))
8081
C = randn!(transpose(A, p))
82+
Mooncake.TestUtils.test_rule(rng, TensorKit.add_transpose!, C, A, p, One(), Zero(); atol, rtol, mode)
8183
Mooncake.TestUtils.test_rule(rng, TensorKit.add_transpose!, C, A, p, α, β; atol, rtol, mode)
84+
if !(T <: Real)
85+
Mooncake.TestUtils.test_rule(rng, TensorKit.add_transpose!, C, real(A), p, α, β; atol, rtol, mode)
86+
Mooncake.TestUtils.test_rule(rng, TensorKit.add_transpose!, C, A, p, real(α), β; atol, rtol, mode)
87+
Mooncake.TestUtils.test_rule(rng, TensorKit.add_transpose!, C, real(A), p, real(α), β; atol, rtol, mode)
88+
end
8289
A = C
8390
end
8491
end

0 commit comments

Comments
 (0)