Skip to content

Commit 03107f9

Browse files
committed
fix test
1 parent 1a2a376 commit 03107f9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/matrix_operators_test.jl

+3-3
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ if VERSION >= v"1.9"
132132
D = function_space_operator(basis_functions, x_min, x_max, nodes, source)
133133

134134
@test grid(D) nodes
135-
@test (D * ones(N), zeros(N); atol = 1e-13)
135+
@test all(isapprox.(D * ones(N), zeros(N); atol = 1e-13))
136136
@test D * nodes ones(N)
137137
@test D * (nodes .^ 2) 2 * nodes
138138
@test D * (nodes .^ 3) 3 * (nodes .^ 2)
@@ -144,7 +144,7 @@ if VERSION >= v"1.9"
144144
D = function_space_operator(basis_functions, x_min, x_max, nodes, source)
145145

146146
@test grid(D) nodes
147-
@test (D * ones(N), zeros(N); atol = 1e-13)
147+
@test all(isapprox.(D * ones(N), zeros(N); atol = 1e-13))
148148
@test D * nodes ones(N)
149149
@test D * exp.(nodes) exp.(nodes)
150150
M = mass_matrix(D)
@@ -163,7 +163,7 @@ if VERSION >= v"1.9"
163163
D = function_space_operator(basis_functions, first(nodes), last(nodes), nodes, source)
164164

165165
@test grid(D) nodes
166-
@test (D * ones(N), zeros(N); atol = 5e-13)
166+
@test all(isapprox.(D * ones(N), zeros(N); atol = 1e-11))
167167
@test D * nodes ones(N)
168168
@test D * exp.(nodes) exp.(nodes)
169169
M = mass_matrix(D)

0 commit comments

Comments
 (0)