Skip to content

Commit

Permalink
Whatever github ci is running on gives less precise floating point re…
Browse files Browse the repository at this point in the history
…sults on ARM.
  • Loading branch information
TkTech authored and mrjbq7 committed Apr 13, 2023
1 parent c21f3c9 commit e72302f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_func.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import numpy as np
from numpy.testing import assert_array_equal
from numpy.testing import assert_array_equal, assert_array_almost_equal
import pytest

import talib
Expand Down Expand Up @@ -159,7 +159,7 @@ def test_RSI():
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])
result = func.RSI(a * 100000, 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,33.333333333333329,51.351351351351347,39.491916859122398,51.84807024709005,42.25953803191981,52.101824405061215,52.101824405061215,43.043664867691085,43.043664867691085,43.043664867691085])
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])


def test_MAVP():
Expand Down

0 comments on commit e72302f

Please sign in to comment.