Skip to content

Commit 16dcabe

Browse files
committed
add tests for sqrt
I forgot it...
1 parent cd11f04 commit 16dcabe

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

stdlib/LinearAlgebra/test/uniformscaling.jl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,14 @@ Random.seed!(123)
2323
@test opnorm(UniformScaling(1+im)) sqrt(2)
2424
end
2525

26-
@testset "exp, log, and trigonometric functions" begin
26+
@testset "sqrt, exp, log, and trigonometric functions" begin
2727
# convert to a dense matrix with random size
2828
M(J) = (N = rand(1:0x678); Matrix(J, N, N))
2929

3030
# on complex plane
3131
J = UniformScaling(randn(ComplexF64))
3232
for f in ( exp, log,
33+
sqrt,
3334
sin, cos, tan,
3435
asin, acos, atan,
3536
csc, sec, cot,
@@ -55,7 +56,7 @@ end
5556
end
5657
# functions defined for x ≥ 0
5758
J = UniformScaling(abs(randn(Float64)))
58-
for f in ( log, )
59+
for f in ( log, sqrt )
5960
@test f(J) f(M(J))
6061
end
6162
# functions defined for -1 ≤ x ≤ 1

0 commit comments

Comments
 (0)