Skip to content

Commit cf8300c

Browse files
committed
modified test
1 parent 3708601 commit cf8300c

File tree

1 file changed

+8
-12
lines changed

1 file changed

+8
-12
lines changed

test/test_block.jl

+8-12
Original file line numberDiff line numberDiff line change
@@ -72,18 +72,14 @@ blockaxpy!(yb,xb,2,x2b)
7272
@test y == x .+ 2.*x2
7373
@test yb == (xb[1] .+ 2.*x2b[1], xb[2] .+ 2.*x2b[2], xb[3] .+ 2.*x2b[3])
7474

75-
x = rand(Float64, 5)
76-
y = (x, x)
77-
@test blockiszero(x) == blockiszero(y) == false
75+
x = (ones(Float64, 5), zeros(Float64, 2, 3))
76+
@test blockiszero(x) == false
7877

79-
x = rand(Complex{Float64}, 5)
80-
y = (x, x)
81-
@test blockiszero(x) == blockiszero(y) == false
78+
y = (zeros(Complex{Float64}, 3, 2), ones(Complex{Float64}, 5))
79+
@test blockiszero(x) == false
8280

83-
x = zeros(Float64, 5)
84-
y = (x, x)
85-
@test blockiszero(x) == blockiszero(y) == true
81+
x = (zeros(Float64, 5), zeros(Complex{Float64}, 2, 3))
82+
@test blockiszero(x) == true
8683

87-
x = zeros(Complex{Float64}, 5)
88-
y = (x, x)
89-
@test blockiszero(x) == blockiszero(y) == true
84+
y = (zeros(Float64, 2, 3), zeros(Complex{Float64}, 5))
85+
@test blockiszero(x) == true

0 commit comments

Comments
 (0)