Skip to content

Commit

Permalink
🔧 fix strange test bug
Browse files Browse the repository at this point in the history
  • Loading branch information
shroominic committed Jun 18, 2024
1 parent 101f065 commit 669c17b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/parametric_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ def assert_function_1(_, files):


def assert_function_2(output, _):
# np.float64(5.179525402166653)\n
if "np.float64" in output.content:
return 4.0 <= float(output.content.split("(")[1].split(")")[0]) <= 7.0
return 4.0 <= float(output.content) <= 7.0


Expand Down

0 comments on commit 669c17b

Please sign in to comment.