Skip to content

Commit 4512c62

Browse files
committed
Add testcase
1 parent 5d6b2e5 commit 4512c62

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

test/tensors.jl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -668,6 +668,13 @@ for V in spacelist
668668
t8 = coth(t)
669669
@test coth(@constinferred acoth(t8)) t8
670670
end
671+
672+
t = randn(T, W, V1) # not square
673+
for f in
674+
(cos, sin, tan, cot, cosh, sinh, tanh, coth, atan, acot, asinh, sqrt,
675+
log, asin, acos, acosh, atanh, acoth)
676+
@test_throws SpaceMismatch f(t)
677+
end
671678
end
672679
end
673680
@timedtestset "Sylvester equation" begin

0 commit comments

Comments
 (0)