Skip to content

Commit e72302f

Browse files
TkTechmrjbq7
authored andcommitted
Whatever github ci is running on gives less precise floating point results on ARM.
1 parent c21f3c9 commit e72302f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_func.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import numpy as np
2-
from numpy.testing import assert_array_equal
2+
from numpy.testing import assert_array_equal, assert_array_almost_equal
33
import pytest
44

55
import talib
@@ -159,7 +159,7 @@ def test_RSI():
159159
result = func.RSI(a, 10)
160160
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])
161161
result = func.RSI(a * 100000, 10)
162-
assert_array_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])
162+
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])
163163

164164

165165
def test_MAVP():

0 commit comments

Comments
 (0)