From d6eb9ca6095303e8490c64dc3fb00335115e97cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20=C4=8Cert=C3=ADk?= Date: Sun, 27 Feb 2022 12:02:32 -0700 Subject: [PATCH 1/2] Make the test work --- integration_tests/test_c_interop_01.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/integration_tests/test_c_interop_01.py b/integration_tests/test_c_interop_01.py index 2b5f856d8f..6582f58a40 100644 --- a/integration_tests/test_c_interop_01.py +++ b/integration_tests/test_c_interop_01.py @@ -23,13 +23,10 @@ def _lfortran_random_number(n: i64, v: f64[:]): def test_c_callbacks(): pi: f64 = 3.141592653589793238462643383279502884197 - pi32: f32 = 3.141592653589793238462643383279502884197 assert abs(_lfortran_dsin(pi) - 0) < 1e-12 assert abs(_lfortran_dsin(pi/2) - 1) < 1e-12 #assert abs(_lfortran_ssin(pi) - 0) < 1e-6 #assert abs(_lfortran_ssin(pi/2) - 1) < 1e-6 - assert abs(_lfortran_ssin(pi32) - 0) < 1e-6 - assert abs(_lfortran_ssin(pi32/2) - 1) < 1e-6 assert _lfortran_bgt32(3, 4) == 0 assert _lfortran_bgt32(4, 3) == 1 From 5866bd627b9cbb75c5120ebe16f95f0b88e7f58d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20=C4=8Cert=C3=ADk?= Date: Sun, 27 Feb 2022 12:03:06 -0700 Subject: [PATCH 2/2] Enable the test_c_interop_01 test for LPython --- integration_tests/run_tests.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/integration_tests/run_tests.py b/integration_tests/run_tests.py index 301e15d217..9f1e1276b5 100755 --- a/integration_tests/run_tests.py +++ b/integration_tests/run_tests.py @@ -20,13 +20,13 @@ "test_builtin_pow.py", "test_builtin_int.py", "test_builtin_float.py", - "test_math1.py" + "test_math1.py", + "test_c_interop_01.py", ] # CPython tests only test_cpython = [ "test_generics_01.py", - "test_c_interop_01.py" ]