Skip to content

Commit

Permalink
Update test/test_unit.jl
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
JoshuaLampert and github-actions[bot] authored Dec 30, 2024
1 parent 96ed571 commit 400caf1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/test_unit.jl
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,8 @@ end
@test isapprox(wave_speed(disp_rel, equations, k), wave_speeds[i])
# Add test for correct broadcasting
@test isapprox(disp_rel.(equations, [k, k]), [frequencies[i], frequencies[i]])
@test isapprox(wave_speed.(disp_rel, equations, [k, k]), [wave_speeds[i], wave_speeds[i]])
@test isapprox(wave_speed.(disp_rel, equations, [k, k]),
[wave_speeds[i], wave_speeds[i]])
# For the normalized wave speed we expect c(0) = 1. Use eps() to avoid division by zero in c = omega / k
@test isapprox(wave_speed(disp_rel, equations, eps(), normalize = true), 1.0)
end
Expand Down

0 comments on commit 400caf1

Please sign in to comment.