From 0fd8da8789332d7996feed2f9c913bb02c02f2a5 Mon Sep 17 00:00:00 2001 From: Benoit Chevallier-Mames Date: Fri, 19 Nov 2021 11:33:48 +0100 Subject: [PATCH] chore: fix a test refs #885 --- tests/numpy/test_compile.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/tests/numpy/test_compile.py b/tests/numpy/test_compile.py index d3019ef2f..176aeeadf 100644 --- a/tests/numpy/test_compile.py +++ b/tests/numpy/test_compile.py @@ -1831,12 +1831,11 @@ def test_wrong_inputs(default_compilation_configuration): [ pytest.param(lambda x: (x + (-27)) + 32, ((0, 10),), ["x"]), pytest.param(lambda x: ((-3) * x) + (100 - (x + 1)), ((0, 10),), ["x"]), - # FIXME: doesn't work for now, #885 - # pytest.param( - # lambda x: (50 * (numpy.cos(x + 33.0))).astype(numpy.uint32), - # ((0, 31),), - # ["x"], - # ), + pytest.param( + lambda x: (20 + 10 * numpy.tanh(50 * (numpy.cos(x + 33.0)))).astype(numpy.uint32), + ((0, 31),), + ["x"], + ), pytest.param( lambda x: (20 * (numpy.cos(x + 33.0)) + 30).astype(numpy.uint32), ((0, 31),),