Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions integration_tests/run_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
]


Expand Down
3 changes: 0 additions & 3 deletions integration_tests/test_c_interop_01.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down