@@ -132,7 +132,7 @@ if VERSION >= v"1.9"
132
132
D = function_space_operator (basis_functions, x_min, x_max, nodes, source)
133
133
134
134
@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 ) )
136
136
@test D * nodes ≈ ones (N)
137
137
@test D * (nodes .^ 2 ) ≈ 2 * nodes
138
138
@test D * (nodes .^ 3 ) ≈ 3 * (nodes .^ 2 )
@@ -144,7 +144,7 @@ if VERSION >= v"1.9"
144
144
D = function_space_operator (basis_functions, x_min, x_max, nodes, source)
145
145
146
146
@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 ) )
148
148
@test D * nodes ≈ ones (N)
149
149
@test D * exp .(nodes) ≈ exp .(nodes)
150
150
M = mass_matrix (D)
@@ -163,7 +163,7 @@ if VERSION >= v"1.9"
163
163
D = function_space_operator (basis_functions, first (nodes), last (nodes), nodes, source)
164
164
165
165
@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 ) )
167
167
@test D * nodes ≈ ones (N)
168
168
@test D * exp .(nodes) ≈ exp .(nodes)
169
169
M = mass_matrix (D)
0 commit comments