Skip to content

Commit 65d0d64

Browse files
committed
update tests for 0.6.2 behavior with "small numbers"
1 parent eb9b796 commit 65d0d64

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_func.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ def test_RSI():
164164
0.00000024, 0.00000024, 0.00000023,
165165
0.00000023, 0.00000023], dtype='float64')
166166
result = func.RSI(a, 10)
167-
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])
167+
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])
168168
result = func.RSI(a * 100000, 10)
169169
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])
170170

0 commit comments

Comments
 (0)