Skip to content

Commit

Permalink
Update particula/next/particles/properties/tests/special_functions_te…
Browse files Browse the repository at this point in the history
…st.py

Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com>
  • Loading branch information
Gorkowski and sourcery-ai[bot] authored Oct 4, 2024
1 parent 514e9a8 commit 3689fd4
Showing 1 changed file with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,13 @@


def test_debye_function_single_float():
"""Test the Debye function for a single float value."""
result = debye_function(1.0)
assert np.isclose(result, 0.7765038970390566)

result = debye_function(1.0, n=2)
assert np.isclose(result, 0.7078773477535959)
"""Test the Debye function for single float values, including extremes."""
assert np.isclose(debye_function(1.0), 0.7765038970390566)
assert np.isclose(debye_function(1.0, n=2), 0.7078773477535959)
assert np.isclose(debye_function(1e-10), 1.0)
assert np.isclose(debye_function(1e10), 0.0)
assert np.isclose(debye_function(1e-10, n=2), 1.0)
assert np.isclose(debye_function(1e10, n=2), 0.0)


def test_debye_function_numpy_array():
Expand Down

0 comments on commit 3689fd4

Please sign in to comment.