Skip to content

Commit 419c448

Browse files
Update linearalgebra.jl
1 parent 5e73e09 commit 419c448

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

test/linearalgebra.jl

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,18 @@
22
@test issquare(reshape(rand(Double32,3*3), 3, 3))
33

44
# issue #77
5-
M = Double64.([1 0; 1 1])
6-
@test_throws ErrorException exp(M)
7-
M = Complex{Double64}.([1 0; 1 1])
8-
@test_throws ErrorException exp(M)
9-
5+
if VERSION < v"1.1"
6+
M = Double64.([1 0; 1 1])
7+
@test_throws AssertionError exp(M)
8+
M = Complex{Double64}.([1 0; 1 1])
9+
@test_throws AssertionError exp(M)
10+
else
11+
M = Double64.([1 0; 1 1])
12+
@test_throws ErrorException exp(M)
13+
M = Complex{Double64}.([1 0; 1 1])
14+
@test_throws ErrorException exp(M)
15+
end
16+
1017
t=[Complex{Double64}(1.0,0.0) Complex{Double64}(0.0,1.0);
1118
Complex{Double64}(0.0,-1.0) Complex{Double64}(1.0,0.0)]
1219
@test ishermitian(t)

0 commit comments

Comments
 (0)