import pytest from ..helpers import Suite @pytest.mark.integration_test @pytest.mark.parametrize('type_', ['f32', 'f64']) def test_builtins_sqrt(type_): code_py = f""" @exported def testEntry() -> {type_}: return sqrt(25.0) """ result = Suite(code_py).run_code() assert 5 == result.returned_value assert isinstance(result.returned_value, float)