Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaLampert committed Jun 14, 2024
1 parent 1a2a376 commit 03107f9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/matrix_operators_test.jl
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ if VERSION >= v"1.9"
D = function_space_operator(basis_functions, x_min, x_max, nodes, source)

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

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

@test grid(D) nodes
@test (D * ones(N), zeros(N); atol = 5e-13)
@test all(isapprox.(D * ones(N), zeros(N); atol = 1e-11))
@test D * nodes ones(N)
@test D * exp.(nodes) exp.(nodes)
M = mass_matrix(D)
Expand Down

0 comments on commit 03107f9

Please sign in to comment.