Skip to content

Commit

Permalink
update tests for 0.6.2 behavior with "small numbers"
Browse files Browse the repository at this point in the history
  • Loading branch information
mrjbq7 committed Jan 1, 2025
1 parent eb9b796 commit 65d0d64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_func.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ def test_RSI():
0.00000024, 0.00000024, 0.00000023,
0.00000023, 0.00000023], dtype='float64')
result = func.RSI(a, 10)
assert_array_equal(result, [np.nan,np.nan,np.nan,np.nan,np.nan,np.nan,np.nan,np.nan,np.nan,np.nan,0,0,0,0,0,0,0,0,0,0])
assert_array_almost_equal(result, [np.nan,np.nan,np.nan,np.nan,np.nan,np.nan,np.nan,np.nan,np.nan,np.nan,33.333333333333329,51.351351351351347,39.491916859122398,51.84807024709005,42.25953803191981,52.101824405061215,52.101824405061215,43.043664867691085,43.043664867691085,43.043664867691085])
result = func.RSI(a * 100000, 10)
assert_array_almost_equal(result, [np.nan,np.nan,np.nan,np.nan,np.nan,np.nan,np.nan,np.nan,np.nan,np.nan,33.333333333333329,51.351351351351347,39.491916859122398,51.84807024709005,42.25953803191981,52.101824405061215,52.101824405061215,43.043664867691085,43.043664867691085,43.043664867691085])

Expand Down

0 comments on commit 65d0d64

Please sign in to comment.