Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffjennings committed Aug 12, 2024
1 parent 3e9eb31 commit 40fd291
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 19 deletions.
19 changes: 0 additions & 19 deletions test/test_example_module.py

This file was deleted.

14 changes: 14 additions & 0 deletions test/tests.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import numpy as np

from repo_stats.utilities import rolling_average

def test_rolling_average():
x = np.arange(10)

np.testing.assert_allclose(
actual=rolling_average(x, window=3)[0],
desired=[1, 2, 3, 4, 5, 6, 7, 8],
rtol=1e0,
)


0 comments on commit 40fd291

Please sign in to comment.