Skip to content

Commit 6eb15f5

Browse files
committed
Fix tests
1 parent 4c390cc commit 6eb15f5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

test/testNormalOp.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ N = 512
55
Random.seed!(1234)
66
x = rand(N)
77
A = rand(N,N)
8-
W = WeightingOp(Float64, weights=rand(N))
8+
W = WeightingOp(rand(N))
99

1010
y1 = adjoint(A)*W*A*x
1111
y = normalOperator(A,W)*x

test/testOperators.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,14 +86,14 @@ function testWeighting(N=512)
8686
Random.seed!(1234)
8787
x1 = rand(N)
8888
weights = rand(N)
89-
W = WeightingOp(Float64; weights)
89+
W = WeightingOp(weights)
9090
y1 = W*x1
9191
y = weights .* x1
9292

9393
@test norm(y1 - y) / norm(y) 0 atol=0.01
9494

9595
x2 = rand(2*N)
96-
W2 = WeightingOp(Float64; weights, rep=2)
96+
W2 = WeightingOp(weights, 2)
9797
y2 = W2*x2
9898
y = repeat(weights,2) .* x2
9999

0 commit comments

Comments
 (0)